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 {
Trace string
Origin string
DryRun []string
FieldManager string
Force bool
}
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 CreateOption ¶
type CreateOption interface {
// ApplyToGet applies this configuration to the given get options.
ApplyToCreate(*CreateOptions)
}
type CreateOptions ¶
func (*CreateOptions) ApplyOptions ¶
func (o *CreateOptions) ApplyOptions(opts []CreateOption) *CreateOptions
ApplyOptions applies the given get options on these options, and then returns itself (for convenient chaining).
func (*CreateOptions) ApplyToCreate ¶
func (o *CreateOptions) ApplyToCreate(lo *CreateOptions)
type CreateStrategy ¶
type DeleteOption ¶
type DeleteOption interface {
// ApplyToGet applies this configuration to the given get options.
ApplyToDelete(*DeleteOptions)
}
type DeleteOptions ¶
func (*DeleteOptions) ApplyOptions ¶
func (o *DeleteOptions) ApplyOptions(opts []DeleteOption) *DeleteOptions
ApplyOptions applies the given get options on these options, and then returns itself (for convenient chaining).
func (*DeleteOptions) ApplyToDelete ¶
func (o *DeleteOptions) ApplyToDelete(lo *DeleteOptions)
type DeleteStrategy ¶
type GetOption ¶
type GetOption interface {
// ApplyToGet applies this configuration to the given get options.
ApplyToGet(*GetOptions)
}
type GetOptions ¶
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 ListOption ¶
type ListOption interface {
// ApplyToGet applies this configuration to the given get options.
ApplyToList(*ListOptions)
}
type ListOptions ¶
type ListOptions struct {
Commit *object.Commit
ShowManagedFields bool
Trace string
Origin string
// A selector based on expressions
Selector selector.Selector
Watch bool
}
func (*ListOptions) ApplyOptions ¶
func (o *ListOptions) ApplyOptions(opts []ListOption) *ListOptions
ApplyOptions applies the given get options on these options, and then returns itself (for convenient chaining).
func (*ListOptions) ApplyToList ¶
func (o *ListOptions) ApplyToList(lo *ListOptions)
type Storage ¶
type Storage interface {
Get(ctx context.Context, key string, opts ...GetOption) (runtime.Unstructured, error)
List(ctx context.Context, opts ...ListOption) (runtime.Unstructured, error)
Apply(ctx context.Context, obj runtime.Unstructured, opts ...ApplyOption) (runtime.Unstructured, error)
Create(ctx context.Context, obj runtime.Unstructured, opts ...CreateOption) (runtime.Unstructured, error)
Update(ctx context.Context, obj runtime.Unstructured, opts ...UpdateOption) (runtime.Unstructured, error)
Delete(ctx context.Context, key string, opts ...DeleteOption) (runtime.Unstructured, error)
Watch(ctx context.Context, opts ...ListOption) (watch.Interface, error)
}
type Strategy ¶
type Strategy interface {
CreateStrategy
UpdateStrategy
DeleteStrategy
}
type UpdateOption ¶
type UpdateOption interface {
// ApplyToGet applies this configuration to the given get options.
ApplyToUpdate(*UpdateOptions)
}
type UpdateOptions ¶
func (*UpdateOptions) ApplyOptions ¶
func (o *UpdateOptions) ApplyOptions(opts []UpdateOption) *UpdateOptions
ApplyOptions applies the given get options on these options, and then returns itself (for convenient chaining).
func (*UpdateOptions) ApplyToUpdate ¶
func (o *UpdateOptions) ApplyToUpdate(lo *UpdateOptions)