Skip to content

Commit 2993d84

Browse files
committed
all: add .api files necessary for public API presubmit check
Change-Id: I022a2e5d19d751545402d0f10d5a4aea83b41e5a
1 parent ebb4a81 commit 2993d84

File tree

10 files changed

+223
-0
lines changed

10 files changed

+223
-0
lines changed

buildinfo/.api

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pkg buildinfo, func Info() *T
2+
pkg buildinfo, method (*T) String() string
3+
pkg buildinfo, type T struct
4+
pkg buildinfo, type T struct, BuildPlatform string
5+
pkg buildinfo, type T struct, BuildTimestamp string
6+
pkg buildinfo, type T struct, BuildUser string
7+
pkg buildinfo, type T struct, GoVersion string

cmdline/.api

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
pkg cmdline, const ErrUsage ErrExitCode
2+
pkg cmdline, func HideGlobalFlagsExcept(...*regexp.Regexp)
3+
pkg cmdline, method (*Command) Execute([]string) error
4+
pkg cmdline, method (*Command) Init(*Command, io.Writer, io.Writer)
5+
pkg cmdline, method (*Command) Main() int
6+
pkg cmdline, method (*Command) Stderr() io.Writer
7+
pkg cmdline, method (*Command) Stdout() io.Writer
8+
pkg cmdline, method (*Command) UsageErrorf(string, ...interface{}) error
9+
pkg cmdline, method (ErrExitCode) Error() string
10+
pkg cmdline, type Command struct
11+
pkg cmdline, type Command struct, ArgsLong string
12+
pkg cmdline, type Command struct, ArgsName string
13+
pkg cmdline, type Command struct, Children []*Command
14+
pkg cmdline, type Command struct, Flags flag.FlagSet
15+
pkg cmdline, type Command struct, Long string
16+
pkg cmdline, type Command struct, Name string
17+
pkg cmdline, type Command struct, Run Runner
18+
pkg cmdline, type Command struct, Short string
19+
pkg cmdline, type Command struct, Topics []Topic
20+
pkg cmdline, type ErrExitCode int
21+
pkg cmdline, type Runner func(cmd *Command, args []string) error
22+
pkg cmdline, type Topic struct
23+
pkg cmdline, type Topic struct, Long string
24+
pkg cmdline, type Topic struct, Name string
25+
pkg cmdline, type Topic struct, Short string

cmdline/testdata/.api

Whitespace-only changes.

dbutil/.api

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
pkg dbutil, const SqlConfigFileDescription ideal-string
2+
pkg dbutil, const SqlCreateTableSuffix ideal-string
3+
pkg dbutil, func ActivateSqlConfigFromFile(string) (*ActiveSqlConfig, error)
4+
pkg dbutil, func NewSqlDBConnFromFile(string, string) (*sql.DB, error)
5+
pkg dbutil, func ParseSqlConfigFromFile(string) (*SqlConfig, error)
6+
pkg dbutil, method (*ActiveSqlConfig) NewSqlDBConn(string) (*sql.DB, error)
7+
pkg dbutil, method (*SqlConfig) Activate(string) (*ActiveSqlConfig, error)
8+
pkg dbutil, type ActiveSqlConfig struct
9+
pkg dbutil, type SqlConfig struct
10+
pkg dbutil, type SqlConfig struct, ClientCertPath string
11+
pkg dbutil, type SqlConfig struct, ClientKeyPath string
12+
pkg dbutil, type SqlConfig struct, DataSourceName string
13+
pkg dbutil, type SqlConfig struct, RootCertPath string
14+
pkg dbutil, type SqlConfig struct, TLSDisable bool
15+
pkg dbutil, type SqlConfig struct, TLSServerName string

host/.api

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pkg host, func Arch() (string, error)

netconfig/.api

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pkg netconfig, const GROUPS C.RTMGRP_LINK
2+
pkg netconfig, func GetIPRoutes(bool) []*IPRoute
3+
pkg netconfig, func IsDefaultIPRoute(*IPRoute) bool
4+
pkg netconfig, func IsDefaultIPv4Route(*IPRoute) bool
5+
pkg netconfig, func IsDefaultIPv6Route(*IPRoute) bool
6+
pkg netconfig, func NewNetConfigWatcher() (NetConfigWatcher, error)
7+
pkg netconfig, type IPRoute struct
8+
pkg netconfig, type IPRoute struct, Gateway net.IP
9+
pkg netconfig, type IPRoute struct, IfcIndex int
10+
pkg netconfig, type IPRoute struct, Net net.IPNet
11+
pkg netconfig, type IPRoute struct, PreferredSource net.IP
12+
pkg netconfig, type NetConfigWatcher interface { Channel, Stop }
13+
pkg netconfig, type NetConfigWatcher interface, Channel() chan struct{}
14+
pkg netconfig, type NetConfigWatcher interface, Stop()

netstate/.api

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
pkg netstate, func AsIP(net.Addr) net.IP
2+
pkg netstate, func AsIPAddr(net.Addr) *net.IPAddr
3+
pkg netstate, func ConvertAccessibleIPHost(rpc.Address) rpc.Address
4+
pkg netstate, func ConvertToIPHost(rpc.Address) rpc.Address
5+
pkg netstate, func FindAdded(AddrList, AddrList) AddrList
6+
pkg netstate, func FindRemoved(AddrList, AddrList) AddrList
7+
pkg netstate, func GetAccessibleIPs() (AddrList, error)
8+
pkg netstate, func GetAll() (AddrList, error)
9+
pkg netstate, func GetInterfaces() (InterfaceList, error)
10+
pkg netstate, func GetRoutes() IPRouteList
11+
pkg netstate, func IsAccessibleIP(rpc.Address) bool
12+
pkg netstate, func IsDefaultRoute(*netconfig.IPRoute) bool
13+
pkg netstate, func IsGloballyRoutableIP(net.IP) bool
14+
pkg netstate, func IsIPProtocol(string) bool
15+
pkg netstate, func IsLoopbackIP(rpc.Address) bool
16+
pkg netstate, func IsOnDefaultRoute(rpc.Address) bool
17+
pkg netstate, func IsPublicUnicastIP(rpc.Address) bool
18+
pkg netstate, func IsPublicUnicastIPv4(rpc.Address) bool
19+
pkg netstate, func IsPublicUnicastIPv6(rpc.Address) bool
20+
pkg netstate, func IsUnicastIP(rpc.Address) bool
21+
pkg netstate, func IsUnicastIPv4(rpc.Address) bool
22+
pkg netstate, func IsUnicastIPv6(rpc.Address) bool
23+
pkg netstate, func IsUnspecifiedIP(rpc.Address) bool
24+
pkg netstate, func SameMachine(net.Addr) (bool, error)
25+
pkg netstate, method (*AddrIfc) Address() net.Addr
26+
pkg netstate, method (*AddrIfc) InterfaceIndex() int
27+
pkg netstate, method (*AddrIfc) InterfaceName() string
28+
pkg netstate, method (*AddrIfc) Networks() []net.Addr
29+
pkg netstate, method (*AddrIfc) String() string
30+
pkg netstate, method (AddrList) Filter(AddressPredicate) AddrList
31+
pkg netstate, method (AddrList) Map(Mapper) AddrList
32+
pkg netstate, method (AddrList) String() string
33+
pkg netstate, method (IPRouteList) Filter(RoutePredicate) IPRouteList
34+
pkg netstate, method (IPRouteList) String() string
35+
pkg netstate, method (InterfaceList) String() string
36+
pkg netstate, type AddrIfc struct
37+
pkg netstate, type AddrIfc struct, Addr net.Addr
38+
pkg netstate, type AddrIfc struct, IPRoutes []*netconfig.IPRoute
39+
pkg netstate, type AddrIfc struct, Name string
40+
pkg netstate, type AddrList []rpc.Address
41+
pkg netstate, type AddressPredicate func(a rpc.Address) bool
42+
pkg netstate, type IPRouteList []*netconfig.IPRoute
43+
pkg netstate, type Interface struct
44+
pkg netstate, type Interface struct, Index int
45+
pkg netstate, type Interface struct, Name string
46+
pkg netstate, type InterfaceList []*Interface
47+
pkg netstate, type Mapper func(a rpc.Address) rpc.Address
48+
pkg netstate, type RoutePredicate func(r *netconfig.IPRoute) bool

textutil/.api

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
pkg textutil, const EOF rune
2+
pkg textutil, const LineSeparator ideal-char
3+
pkg textutil, const ParagraphSeparator ideal-char
4+
pkg textutil, func ByteReplaceWriter(io.Writer, byte, string) io.Writer
5+
pkg textutil, func NewLineWriter(io.Writer, int, RuneChunkDecoder, RuneEncoder) *LineWriter
6+
pkg textutil, func NewUTF8LineWriter(io.Writer, int) *LineWriter
7+
pkg textutil, func PrefixWriter(io.Writer, string) io.Writer
8+
pkg textutil, func RuneChunkFlush(RuneChunkDecoder, func(rune) error) error
9+
pkg textutil, func RuneChunkWrite(RuneChunkDecoder, func(rune) error, []byte) (int, error)
10+
pkg textutil, func TerminalSize() (int, int, error)
11+
pkg textutil, method (*LineWriter) Flush() error
12+
pkg textutil, method (*LineWriter) SetIndents(...string) error
13+
pkg textutil, method (*LineWriter) SetLineTerminator(string) error
14+
pkg textutil, method (*LineWriter) SetParagraphSeparator(string) error
15+
pkg textutil, method (*LineWriter) Width() int
16+
pkg textutil, method (*LineWriter) Write([]byte) (int, error)
17+
pkg textutil, method (*UTF8ChunkDecoder) Decode([]byte) RuneStreamDecoder
18+
pkg textutil, method (*UTF8ChunkDecoder) DecodeLeftover() RuneStreamDecoder
19+
pkg textutil, method (UTF8Encoder) Encode(rune, *bytes.Buffer)
20+
pkg textutil, type LineWriter struct
21+
pkg textutil, type RuneChunkDecoder interface { Decode, DecodeLeftover }
22+
pkg textutil, type RuneChunkDecoder interface, Decode([]byte) RuneStreamDecoder
23+
pkg textutil, type RuneChunkDecoder interface, DecodeLeftover() RuneStreamDecoder
24+
pkg textutil, type RuneEncoder interface { Encode }
25+
pkg textutil, type RuneEncoder interface, Encode(rune, *bytes.Buffer)
26+
pkg textutil, type RuneStreamDecoder interface { BytePos, Next }
27+
pkg textutil, type RuneStreamDecoder interface, BytePos() int
28+
pkg textutil, type RuneStreamDecoder interface, Next() rune
29+
pkg textutil, type UTF8ChunkDecoder struct
30+
pkg textutil, type UTF8Encoder struct

toposort/.api

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pkg toposort, func DumpCycles([][]interface{}, func(interface{}) string) string
2+
pkg toposort, method (*Sorter) AddEdge(interface{}, interface{})
3+
pkg toposort, method (*Sorter) AddNode(interface{})
4+
pkg toposort, method (*Sorter) Sort() ([]interface{}, [][]interface{})
5+
pkg toposort, type Sorter struct

vlog/.api

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
pkg vlog, func Configure(...LoggingOpts) error
2+
pkg vlog, func ConfigureLibraryLoggerFromFlags() error
3+
pkg vlog, func ConfigureLoggerFromFlags(Logger) error
4+
pkg vlog, func Error(...interface{})
5+
pkg vlog, func Errorf(string, ...interface{})
6+
pkg vlog, func Fatal(...interface{})
7+
pkg vlog, func Fatalf(string, ...interface{})
8+
pkg vlog, func FlushLog()
9+
pkg vlog, func Info(...interface{})
10+
pkg vlog, func InfoStack(bool)
11+
pkg vlog, func Infof(string, ...interface{})
12+
pkg vlog, func LogCall(...interface{}) func(...interface{})
13+
pkg vlog, func LogCallf(string, ...interface{}) func(string, ...interface{})
14+
pkg vlog, func NewLogger(string) Logger
15+
pkg vlog, func Panic(...interface{})
16+
pkg vlog, func Panicf(string, ...interface{})
17+
pkg vlog, func Stats() LevelStats
18+
pkg vlog, func V(Level) bool
19+
pkg vlog, func VI(Level) InfoLog
20+
pkg vlog, method (*Level) Get(string) interface{}
21+
pkg vlog, method (*Level) Set(string) error
22+
pkg vlog, method (*Level) String() string
23+
pkg vlog, method (*StderrThreshold) Get(string) interface{}
24+
pkg vlog, method (*StderrThreshold) Set(string) error
25+
pkg vlog, method (*StderrThreshold) String() string
26+
pkg vlog, method (AlsoLogToStderr) LoggingOpt()
27+
pkg vlog, method (AutoFlush) LoggingOpt()
28+
pkg vlog, method (Level) LoggingOpt()
29+
pkg vlog, method (LogDir) LoggingOpt()
30+
pkg vlog, method (LogToStderr) LoggingOpt()
31+
pkg vlog, method (MaxStackBufSize) LoggingOpt()
32+
pkg vlog, method (ModuleSpec) LoggingOpt()
33+
pkg vlog, method (OverridePriorConfiguration) LoggingOpt()
34+
pkg vlog, method (StderrThreshold) LoggingOpt()
35+
pkg vlog, method (TraceLocation) LoggingOpt()
36+
pkg vlog, type AlsoLogToStderr bool
37+
pkg vlog, type AutoFlush bool
38+
pkg vlog, type InfoLog interface { Info, InfoStack, Infof }
39+
pkg vlog, type InfoLog interface, Info(...interface{})
40+
pkg vlog, type InfoLog interface, InfoStack(bool)
41+
pkg vlog, type InfoLog interface, Infof(string, ...interface{})
42+
pkg vlog, type Level llog.Level
43+
pkg vlog, type LevelStats llog.Stats
44+
pkg vlog, type LogDir string
45+
pkg vlog, type LogToStderr bool
46+
pkg vlog, type Logger interface { Configure, Error, Errorf, Fatal, Fatalf, FlushLog, Info, InfoStack, Infof, LogDir, Panic, Panicf, Stats, V, VI }
47+
pkg vlog, type Logger interface, Configure(...LoggingOpts) error
48+
pkg vlog, type Logger interface, Error(...interface{})
49+
pkg vlog, type Logger interface, Errorf(string, ...interface{})
50+
pkg vlog, type Logger interface, Fatal(...interface{})
51+
pkg vlog, type Logger interface, Fatalf(string, ...interface{})
52+
pkg vlog, type Logger interface, FlushLog()
53+
pkg vlog, type Logger interface, Info(...interface{})
54+
pkg vlog, type Logger interface, InfoStack(bool)
55+
pkg vlog, type Logger interface, Infof(string, ...interface{})
56+
pkg vlog, type Logger interface, LogDir() string
57+
pkg vlog, type Logger interface, Panic(...interface{})
58+
pkg vlog, type Logger interface, Panicf(string, ...interface{})
59+
pkg vlog, type Logger interface, Stats() LevelStats
60+
pkg vlog, type Logger interface, V(Level) bool
61+
pkg vlog, type Logger interface, VI(Level) InfoLog
62+
pkg vlog, type LoggingOpts interface { LoggingOpt }
63+
pkg vlog, type LoggingOpts interface, LoggingOpt()
64+
pkg vlog, type MaxStackBufSize int
65+
pkg vlog, type ModuleSpec struct
66+
pkg vlog, type ModuleSpec struct, embedded llog.ModuleSpec
67+
pkg vlog, type OverridePriorConfiguration bool
68+
pkg vlog, type Runtime interface { Logger, NewLogger }
69+
pkg vlog, type Runtime interface, Logger() Logger
70+
pkg vlog, type Runtime interface, NewLogger(string, ...LoggingOpts) (Logger, error)
71+
pkg vlog, type StderrThreshold llog.Severity
72+
pkg vlog, type TraceLocation struct
73+
pkg vlog, type TraceLocation struct, embedded llog.TraceLocation
74+
pkg vlog, type Verbosity interface { V, VI }
75+
pkg vlog, type Verbosity interface, V(Level) bool
76+
pkg vlog, type Verbosity interface, VI(Level) InfoLog
77+
pkg vlog, var Configured error
78+
pkg vlog, var Log *logger

0 commit comments

Comments
 (0)