Documentation ¶
Overview ¶
Package logadmin contains mockable logadmin client wrappers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Close: https://godoc.org/cloud.google.com/go/logging/logadmin#Client.Close Close() error // CreateSink: https://godoc.org/cloud.google.com/go/logging/logadmin#Client.CreateSink CreateSink(ctx context.Context, sink *logadmin.Sink) (*logadmin.Sink, error) // CreateSinkOpt: https://godoc.org/cloud.google.com/go/logging/logadmin#Client.CreateSinkOpt CreateSinkOpt(ctx context.Context, sink *logadmin.Sink, opts logadmin.SinkOptions) (*logadmin.Sink, error) // DeleteSink: https://godoc.org/cloud.google.com/go/logging/logadmin#Client.DeleteSink DeleteSink(ctx context.Context, sinkID string) error // Sink: https://godoc.org/cloud.google.com/go/logging/logadmin#Client.Sink Sink(ctx context.Context, sinkID string) (*logadmin.Sink, error) }
Client matches the interface exposed by logadmin.Client see https://godoc.org/cloud.google.com/go/logging/logadmin#Client
type CreateFn ¶
CreateFn is a factory function to create a logadmin client. Matches the signature of https://godoc.org/cloud.google.com/go/logging/logadmin#NewClient.
Click to show internal directories.
Click to hide internal directories.