client

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applier

type Applier struct {
	// contains filtered or unexported fields
}

Applier can be used for appling a list of resources to a remote api-server

func (*Applier) Run

func (a *Applier) Run(ctx context.Context, objects []*unstructured.Unstructured, options ApplierOptions) <-chan event.Event

Run will apply the passed objects to a remote api-server

type ApplierOptions

type ApplierOptions struct {
	DryRun       bool
	Timeout      time.Duration
	FieldManager string
}

ApplierOptions options for the apply step

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder is used to correctly instantiate an Applier client with the correct properties

func NewBuilder

func NewBuilder() *Builder

NewBuilder return a new Builder instance with configured defaults

func (*Builder) Build

func (b *Builder) Build() (*Applier, error)

Build use default values and configured builder porperty for correctly setup an Applier

func (*Builder) WithCustomStatusChecker added in v0.4.0

func (b *Builder) WithCustomStatusChecker(customResourceCheck poller.CustomStatusCheckers) *Builder

func (*Builder) WithFactory

func (b *Builder) WithFactory(factory util.ClientFactory) *Builder

WithFactory assing a ClientFactory to the builder

func (*Builder) WithFilters added in v0.3.0

func (b *Builder) WithFilters(filters ...filter.Interface) *Builder

WithFilters assing one or more generators to the Builder

func (*Builder) WithGenerators

func (b *Builder) WithGenerators(generators ...generator.Interface) *Builder

WithGenerators assing one or more generators to the Builder

func (*Builder) WithInventory

func (b *Builder) WithInventory(inventory inventory.Store) *Builder

WithInventory assing an inventory.Store to the Builder

func (*Builder) WithMutator added in v0.3.0

func (b *Builder) WithMutator(mutators ...mutator.Interface) *Builder

WithMutator assing one or more generators to the Builder

func (*Builder) WithStatusPoller added in v0.4.0

func (b *Builder) WithStatusPoller(poller poller.StatusPoller) *Builder

type QueueBuilder

type QueueBuilder struct {
	Manager      *inventory.Manager
	Client       dynamic.Interface
	Mapper       meta.RESTMapper
	Filters      []filter.Interface
	InfoFetcher  task.InfoFetcher
	RemoteGetter cache.RemoteResourceGetter
	Poller       poller.StatusPoller
	// contains filtered or unexported fields
}

func (*QueueBuilder) Build

func (b *QueueBuilder) Build(options QueueOptions) (<-chan runner.Task, error)

func (*QueueBuilder) WithObjects

func (b *QueueBuilder) WithObjects(objs []*unstructured.Unstructured) *QueueBuilder

func (*QueueBuilder) WithPruneObjects

func (b *QueueBuilder) WithPruneObjects(objs []*unstructured.Unstructured) *QueueBuilder

type QueueOptions

type QueueOptions struct {
	DryRun       bool
	Prune        bool
	FieldManager string
}

type RunnerState

type RunnerState struct {
	// contains filtered or unexported fields
}

func (*RunnerState) GetContext

func (s *RunnerState) GetContext() context.Context

func (*RunnerState) SendEvent

func (s *RunnerState) SendEvent(e event.Event)

func (*RunnerState) SkipWaitCurrentStatus added in v0.3.0

func (s *RunnerState) SkipWaitCurrentStatus(obj *unstructured.Unstructured) bool

Directories

Path Synopsis
cache package contains a RemoteResourceGetter interface for retrieving remote resource state without exposing the underline clients implementation.
cache package contains a RemoteResourceGetter interface for retrieving remote resource state without exposing the underline clients implementation.

Jump to

Keyboard shortcuts

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