runnerclient

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Start(ctx context.Context, opts ...StartOption) error
	Stop(ctx context.Context, opts ...StopOption) error
	Once(ctx context.Context, opts ...OnceOption) (runnerpb.Runner_OnceClient, error)
	Load(ctx context.Context, opts ...LoadOption) error
	Close() error
}

func NewClient

func NewClient(config *config.Config) (Client, error)

type LoadOption added in v0.0.11

type LoadOption interface {
	ApplyToLoad(*LoadOptions)
}

type LoadOptions added in v0.0.11

type LoadOptions struct {
	Proxy types.NamespacedName
}

func (*LoadOptions) ApplyOptions added in v0.0.11

func (o *LoadOptions) ApplyOptions(opts []LoadOption) *LoadOptions

ApplyOptions applies the given get options on these options, and then returns itself (for convenient chaining).

func (*LoadOptions) ApplyToLoad added in v0.0.11

func (o *LoadOptions) ApplyToLoad(lo *LoadOptions)

type OnceOption added in v0.0.11

type OnceOption interface {
	ApplyToOnce(*OnceOptions)
}

type OnceOptions added in v0.0.11

type OnceOptions struct {
	Proxy types.NamespacedName
}

func (*OnceOptions) ApplyOptions added in v0.0.11

func (o *OnceOptions) ApplyOptions(opts []OnceOption) *OnceOptions

ApplyOptions applies the given get options on these options, and then returns itself (for convenient chaining).

func (*OnceOptions) ApplyToOnce added in v0.0.11

func (o *OnceOptions) ApplyToOnce(lo *OnceOptions)

type RunnerClient added in v0.0.11

type RunnerClient interface {
	runnerpb.RunnerClient
	Close() error
}

func NewRunnerClient added in v0.0.12

func NewRunnerClient(config *config.Config) (RunnerClient, error)

type StartOption added in v0.0.11

type StartOption interface {
	// ApplyToGet applies this configuration to the given get options.
	ApplyToStart(*StartOptions)
}

type StartOptions added in v0.0.11

type StartOptions struct {
	Proxy types.NamespacedName
}

func (*StartOptions) ApplyOptions added in v0.0.11

func (o *StartOptions) ApplyOptions(opts []StartOption) *StartOptions

ApplyOptions applies the given get options on these options, and then returns itself (for convenient chaining).

func (*StartOptions) ApplyToStart added in v0.0.11

func (o *StartOptions) ApplyToStart(lo *StartOptions)

type StopOption added in v0.0.11

type StopOption interface {
	ApplyToStop(*StopOptions)
}

type StopOptions added in v0.0.11

type StopOptions struct {
	Proxy types.NamespacedName
}

func (*StopOptions) ApplyOptions added in v0.0.11

func (o *StopOptions) ApplyOptions(opts []StopOption) *StopOptions

ApplyOptions applies the given get options on these options, and then returns itself (for convenient chaining).

func (*StopOptions) ApplyToStop added in v0.0.11

func (o *StopOptions) ApplyToStop(lo *StopOptions)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL