clusterapply

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SplitChangesRestFunc func(ctldiff.Change) bool = nil // does not match any changes as it may be placed in the middle

Functions

This section is empty.

Types

type AddOrUpdateChange

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

func (AddOrUpdateChange) Apply

func (c AddOrUpdateChange) Apply() error

func (AddOrUpdateChange) IsDoneApplying

func (c AddOrUpdateChange) IsDoneApplying() (ctlresm.DoneApplyState, error)

type AddOrUpdateChangeOpts

type AddOrUpdateChangeOpts struct {
	DefaultUpdateStrategy string
}

type ApplyOp

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

func (ApplyOp) Execute

func (op ApplyOp) Execute() error

func (ApplyOp) IsNoop

func (op ApplyOp) IsNoop() bool

type ClusterChange

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

func NewClusterChange

func NewClusterChange(change ctldiff.Change, opts ClusterChangeOpts,
	identifiedResources ctlres.IdentifiedResources, changeFactory ctldiff.ChangeFactory, ui UI) ClusterChange

func (ClusterChange) ApplyDescription

func (c ClusterChange) ApplyDescription() string

func (ClusterChange) ApplyOp

func (c ClusterChange) ApplyOp() ApplyOp

func (ClusterChange) IsDoneApplyingOp

func (c ClusterChange) IsDoneApplyingOp() DoneWaitingOp

func (ClusterChange) WaitDescription

func (c ClusterChange) WaitDescription() string

type ClusterChangeFactory

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

func NewClusterChangeFactory

func NewClusterChangeFactory(
	opts ClusterChangeOpts,
	identifiedResources ctlres.IdentifiedResources,
	changeFactory ctldiff.ChangeFactory,
	ui UI,
) ClusterChangeFactory

func (ClusterChangeFactory) NewClusterChange

func (f ClusterChangeFactory) NewClusterChange(change ctldiff.Change) ClusterChange

type ClusterChangeOpts

type ClusterChangeOpts struct {
	ApplyIgnored bool
	Wait         bool
	WaitIgnored  bool

	AddOrUpdateChangeOpts
}

type ClusterChangeSet

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

func NewClusterChangeSet

func NewClusterChangeSet(changes []ctldiff.Change, opts ClusterChangeSetOpts, clusterChangeFactory ClusterChangeFactory, ui UI) ClusterChangeSet

func (ClusterChangeSet) Apply

func (c ClusterChangeSet) Apply() error

type ClusterChangeSetOpts added in v0.8.0

type ClusterChangeSetOpts struct {
	WaitTimeout       time.Duration
	WaitCheckInterval time.Duration
}

type DeleteChange

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

func (DeleteChange) Apply

func (c DeleteChange) Apply() error

func (DeleteChange) IsDoneApplying

func (c DeleteChange) IsDoneApplying() (ctlresm.DoneApplyState, error)

type DoneWaitingOp

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

func (DoneWaitingOp) Execute

func (op DoneWaitingOp) Execute() (ctlresm.DoneApplyState, error)

func (DoneWaitingOp) IsNoop

func (op DoneWaitingOp) IsNoop() bool

type SpecificResource

type SpecificResource interface {
	IsDoneApplying() ctlresm.DoneApplyState
}

type SplitChanges

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

func (SplitChanges) ChangesByFunc

func (r SplitChanges) ChangesByFunc() [][]ctldiff.Change

type UI

type UI interface {
	Notify(msg string, args ...interface{})
	NotifyBegin(msg string, args ...interface{})
	NotifyEnd(msg string, args ...interface{})
}

Jump to

Keyboard shortcuts

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