Documentation
¶
Index ¶
- Constants
- type BackoffOptions
- type Config
- type ContainerdRuntime
- type DockerRuntime
- type FileTransport
- type GRPCTransport
- type NATSTransport
- type Options
- type Proxy
- type Registry
- type Runtime
- type RuntimeExecutor
- type RuntimeType
- type Transport
- type TransportReader
- type TransportType
- type TransportWriter
Constants ¶
View Source
const ( GRPCTransportType TransportType = "grpc" FileTransportType TransportType = "file" NATSTransportType TransportType = "nats" DockerRuntimeType RuntimeType = "docker" ContainerdRuntimeType RuntimeType = "containerd" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackoffOptions ¶ added in v0.20.0
type BackoffOptions struct {
// MaxInterval is the maximum interval between retries.
MaxInterval time.Duration
}
BackoffOptions holds the configuration for the backoff strategy.
type Config ¶
type Config struct {
TransportReader TransportReader
RuntimeExecutor RuntimeExecutor
TransportWriter TransportWriter
Backoff *backoff.ExponentialBackOff
}
type ContainerdRuntime ¶
type DockerRuntime ¶
type DockerRuntime struct {
SocketPath string
}
type FileTransport ¶
type FileTransport struct {
WorkflowPath string
}
type GRPCTransport ¶
type NATSTransport ¶
type Options ¶
type Options struct {
Transport Transport
Runtime Runtime
Registry Registry
Proxy Proxy
TransportSelected TransportType
RuntimeSelected RuntimeType
AttributeDetectionEnabled bool
BackoffOptions BackoffOptions
}
type Runtime ¶
type Runtime struct {
Docker DockerRuntime
Containerd ContainerdRuntime
}
type RuntimeExecutor ¶
type RuntimeExecutor interface {
// Execute blocks until the action is completed or an error occurs
Execute(ctx context.Context, action spec.Action) error
}
RuntimeExecutor provides a method to execute an action.
type RuntimeType ¶
type RuntimeType string
func (*RuntimeType) Set ¶
func (r *RuntimeType) Set(s string) error
func (RuntimeType) String ¶
func (r RuntimeType) String() string
func (*RuntimeType) Type ¶
func (r *RuntimeType) Type() string
type Transport ¶
type Transport struct {
GRPC GRPCTransport
File FileTransport
NATS NATSTransport
}
type TransportReader ¶
type TransportReader interface {
// Read blocks until an action is available or an error occurs
Read(ctx context.Context) (spec.Action, error)
}
TransportReader provides a method to read an action.
type TransportType ¶
type TransportType string
func (*TransportType) Set ¶
func (t *TransportType) Set(s string) error
func (TransportType) String ¶
func (t TransportType) String() string
func (*TransportType) Type ¶
func (t *TransportType) Type() string
Click to show internal directories.
Click to hide internal directories.