Documentation ¶
Overview ¶
Package remote defines a remote audit log processor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option is the option to set up a remote audit log processor.
func WithDefaultAuth ¶
func WithDefaultAuth() Option
WithDefaultAuth sets up the processor to connect to remote with the default auth setting.
func WithGRPCDialOptions ¶
func WithGRPCDialOptions(opts ...grpc.DialOption) Option
WithGRPCDialOptions allows provide raw grpc.DialOption for the underlying connection.
func WithIDTokenAuth ¶
WithIDTokenAuth sets up the processor to do auth with ID token. TODO(b/201541513): It's not clear how to unit test this functionality. We can at least cover it in the integration test.
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor is the remote audit log processor.
func NewProcessor ¶
NewProcessor creates a new remote audit log processor.
E.g.
p, err := NewProcessor("localhost:8080", WithDefaultAuth()) if err != nil { ... } defer p.Close()
Click to show internal directories.
Click to hide internal directories.