Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRetryable ¶
IsRetryable reports whether err is worth retrying against the same plugin. ExecError is never retryable; it carries an exit code from user code.
func StatusCode ¶
StatusCode walks the wrap chain and returns the first gRPC status code, or codes.Unknown if none is present.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
NewClient connects to a BackendPlugin: a plugin that owns the whole execution environment and every container operation within it.
func (*Client) Capabilities ¶
func (c *Client) Capabilities() *pluginv1alpha.CapabilitiesResponse
func (*Client) NewEnvironment ¶
func (c *Client) NewEnvironment(input *container.NewContainerInput, backendOpts map[string]string, labelArg string, timeout time.Duration) container.ExecutionsEnvironment
type ClientOption ¶
type ClientOption func(*clientOptions)
func WithAllowPlainTCP ¶
func WithAllowPlainTCP() ClientOption
WithAllowPlainTCP allows TCP without TLS, for trusted localhost or tests.
func WithDialTimeout ¶
func WithDialTimeout(d time.Duration) ClientOption
func WithKeepalive ¶
func WithKeepalive(interval, timeout time.Duration) ClientOption
WithKeepalive sets the gRPC keepalive ping interval and ack timeout.
func WithMaxMessageSize ¶
func WithMaxMessageSize(bytes int) ClientOption
WithMaxMessageSize sets the per-call send/recv size limit in bytes.
func WithTLS ¶
func WithTLS(cfg *tls.Config) ClientOption
Click to show internal directories.
Click to hide internal directories.