choreoclient

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Nov 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
	Commit(ctx context.Context, msg string, opts ...CommitOption) error
	Push(ctx context.Context, opts ...PushOption) error
	Close() error
}

func NewClient

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

type CommitOption added in v0.0.12

type CommitOption interface {
	// ApplyToGet applies this configuration to the given get options.
	ApplyToCommit(*CommitOptions)
}

type CommitOptions added in v0.0.12

type CommitOptions struct {
	Proxy types.NamespacedName
	Push  bool
}

func (*CommitOptions) ApplyOptions added in v0.0.12

func (o *CommitOptions) ApplyOptions(opts []CommitOption) *CommitOptions

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

func (*CommitOptions) ApplyToCommit added in v0.0.12

func (o *CommitOptions) ApplyToCommit(lo *CommitOptions)

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 PushOption added in v0.0.12

type PushOption interface {
	// ApplyToGet applies this configuration to the given get options.
	ApplyToPush(*PushOptions)
}

type PushOptions added in v0.0.12

type PushOptions struct {
	Proxy types.NamespacedName
}

func (*PushOptions) ApplyOptions added in v0.0.12

func (o *PushOptions) ApplyOptions(opts []PushOption) *PushOptions

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

func (*PushOptions) ApplyToPush added in v0.0.12

func (o *PushOptions) ApplyToPush(lo *PushOptions)

Jump to

Keyboard shortcuts

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