Documentation ¶
Index ¶
- type EventClient
- type ObjectClient
- func (c *ObjectClient) Close() error
- func (c *ObjectClient) Get(ctx context.Context, in *stategate.ObjectRef) (*stategate.Object, error)
- func (c *ObjectClient) Search(ctx context.Context, in *stategate.SearchObjectOpts) (*stategate.Objects, error)
- func (c *ObjectClient) Set(ctx context.Context, in *stategate.Object) error
- type Opt
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventClient ¶ added in v0.4.0
type EventClient struct {
// contains filtered or unexported fields
}
EventClient is a stategate EventService gRPC client
func NewEventClient ¶ added in v0.4.0
NewEventClient creates a new stategate client
func (*EventClient) Close ¶ added in v0.4.0
func (c *EventClient) Close() error
Close closes the gRPC client connection
type ObjectClient ¶ added in v0.4.0
type ObjectClient struct {
// contains filtered or unexported fields
}
ObjectClient is a stategate ObjectService gRPC client
func NewObjectClient ¶ added in v0.4.0
NewObjectClient creates a new stategate object client
func (*ObjectClient) Close ¶ added in v0.4.0
func (c *ObjectClient) Close() error
Close closes the gRPC client connection
func (*ObjectClient) Get ¶ added in v0.4.0
func (c *ObjectClient) Get(ctx context.Context, in *stategate.ObjectRef) (*stategate.Object, error)
Get gets an object's current state values
type Opt ¶
type Opt func(o *Options)
Opt is a single configuration option
func WithIDToken ¶
WithIDToken makes the client use the oauth id token(if it exists) instead of the oauth access token
func WithLogging ¶
WithLogging registers a logging middleware
func WithTokenSource ¶
func WithTokenSource(tokenSource oauth2.TokenSource) Opt
WithTokenSource uses oauth token add an authorization header to every outbound request
func WithTransportCreds ¶
func WithTransportCreds(creds credentials.TransportCredentials) Opt
WithTransportCreds adds transport credentials to the client