Documentation
¶
Index ¶
- func AddScenarioToContext(ctx context.Context, scen *godog.Scenario) context.Context
- func AddToContext(ctx context.Context, client *Client) context.Context
- func AppendCleanup(ctx context.Context, fn Cleanup) context.Context
- func AuthnUnaryInterceptor(next connect.UnaryFunc) connect.UnaryFunc
- func RunCleanups(ctx context.Context) error
- func ScenarioFromContext(ctx context.Context) (string, bool)
- func ScenarioUnaryInterceptor(next connect.UnaryFunc) connect.UnaryFunc
- func ValidateUnaryInterceptor(next connect.UnaryFunc) connect.UnaryFunc
- type Cleanup
- type Client
- func (c *Client) CreateResource(ctx context.Context, name string) (*examplev1.Resource, Cleanup, error)
- func (c *Client) DeleteResource(ctx context.Context, id string) error
- func (c *Client) GetResource(ctx context.Context, id string) (*examplev1.Resource, error)
- func (c *Client) UpdateResource(ctx context.Context, id, name string) (*examplev1.Resource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddScenarioToContext ¶
...
func AddToContext ¶
AddToContext returns a child context with the Client within.
func AuthnUnaryInterceptor ¶ added in v0.0.94
...
func ScenarioUnaryInterceptor ¶
...
func ValidateUnaryInterceptor ¶
ValidateUnaryInterceptor validates that responses are valid according to Protobuf annotations. Invalid responses result in an Internal error code with the validation failures as a message. Requests are not validated to prevent obscuring the validation implemented by the server.
Server validation does not currently include response validation. See connectrpc/validate-go#28 for details.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
...
func FromContext ¶
FromContext retrieves a Client from the given context.
func (*Client) CreateResource ¶
func (c *Client) CreateResource(ctx context.Context, name string) (*examplev1.Resource, Cleanup, error)
...
func (*Client) DeleteResource ¶
...
func (*Client) GetResource ¶
...
Click to show internal directories.
Click to hide internal directories.