choreoclient

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 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 ApplyOption

type ApplyOption interface {
	// ApplyToGet applies this configuration to the given get options.
	ApplyToApply(*ApplyOptions)
}

type ApplyOptions

type ApplyOptions struct {
	Proxy types.NamespacedName
}

func (*ApplyOptions) ApplyOptions

func (o *ApplyOptions) ApplyOptions(opts []ApplyOption) *ApplyOptions

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

func (*ApplyOptions) ApplyToApply

func (o *ApplyOptions) ApplyToApply(lo *ApplyOptions)

type ChoreoClient

type ChoreoClient interface {
	choreopb.ChoreoClient
	Close() error
}

func NewChoreoClient

func NewChoreoClient(config *config.Config) (ChoreoClient, error)

type Client

type Client interface {
	Get(ctx context.Context, opts ...GetOption) (*choreopb.Get_Response, error)
	Apply(ctx context.Context, choreoCtx *choreopb.ChoreoContext, opts ...ApplyOption) error
	Start(ctx context.Context, opts ...StartOption) error
	Stop(ctx context.Context, opts ...StopOption) error
	Once(ctx context.Context, opts ...OnceOption) (*choreopb.Once_Response, error)
	Load(ctx context.Context, opts ...LoadOption) error
	Close() error
}

func NewClient

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

type GetOption

type GetOption interface {
	// ApplyToGet applies this configuration to the given get options.
	ApplyToGet(*GetOptions)
}

type GetOptions

type GetOptions struct {
	Proxy types.NamespacedName
}

func (*GetOptions) ApplyOptions

func (o *GetOptions) ApplyOptions(opts []GetOption) *GetOptions

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

func (*GetOptions) ApplyToGet

func (o *GetOptions) ApplyToGet(lo *GetOptions)

type LoadOption

type LoadOption interface {
	ApplyToLoad(*LoadOptions)
}

type LoadOptions

type LoadOptions struct {
	Proxy types.NamespacedName
}

func (*LoadOptions) ApplyOptions

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

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

type OnceOption

type OnceOption interface {
	ApplyToOnce(*OnceOptions)
}

type OnceOptions

type OnceOptions struct {
	Proxy types.NamespacedName
}

func (*OnceOptions) ApplyOptions

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

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

type StartOption

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

type StartOptions

type StartOptions struct {
	Proxy types.NamespacedName
}

func (*StartOptions) ApplyOptions

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

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

type StopOption

type StopOption interface {
	ApplyToStop(*StopOptions)
}

type StopOptions

type StopOptions struct {
	Proxy types.NamespacedName
}

func (*StopOptions) ApplyOptions

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

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

Jump to

Keyboard shortcuts

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