Documentation ¶
Index ¶
- type Context
- type FailMode
- type Resource
- type ResourceState
- type Spec
- type State
- func (s *State) BumpFailuresCount()
- func (s *State) FailedReason() string
- func (s *State) FailuresCount() int
- func (s *State) LastPrintedStatus() *generic.ResourceStatus
- func (s *State) LastStatus() *generic.ResourceStatus
- func (s *State) ResourceState() ResourceState
- func (s *State) SetFailedReason(reason string)
- func (s *State) SetLastPrintedStatus(status *generic.ResourceStatus)
- func (s *State) SetLastStatus(status *generic.ResourceStatus)
- func (s *State) SetResourceState(status ResourceState)
- type TrackTerminationMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
func NewResource ¶
func NewResource( ctx context.Context, spec *Spec, client kubernetes.Interface, dynClient dynamic.Interface, discClient discovery.CachedDiscoveryInterface, mapper meta.RESTMapper, ) *Resource
type ResourceState ¶
type ResourceState string
const ( ResourceStateActive ResourceState = "ResourceStateActive" ResourceStateSucceeded ResourceState = "ResourceStateSucceeded" ResourceStateFailed ResourceState = "ResourceStateFailed" ResourceStateHoping ResourceState = "ResourceStateHoping" ResourceStateActiveAfterHoping ResourceState = "ResourceStateActiveAfterHoping" )
type Spec ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) BumpFailuresCount ¶
func (s *State) BumpFailuresCount()
func (*State) FailedReason ¶
func (*State) FailuresCount ¶
func (*State) LastPrintedStatus ¶
func (s *State) LastPrintedStatus() *generic.ResourceStatus
func (*State) LastStatus ¶
func (s *State) LastStatus() *generic.ResourceStatus
func (*State) ResourceState ¶
func (s *State) ResourceState() ResourceState
func (*State) SetFailedReason ¶
func (*State) SetLastPrintedStatus ¶
func (s *State) SetLastPrintedStatus(status *generic.ResourceStatus)
func (*State) SetLastStatus ¶
func (s *State) SetLastStatus(status *generic.ResourceStatus)
func (*State) SetResourceState ¶
func (s *State) SetResourceState(status ResourceState)
type TrackTerminationMode ¶
type TrackTerminationMode string
const ( WaitUntilResourceReady TrackTerminationMode = "WaitUntilResourceReady" NonBlocking TrackTerminationMode = "NonBlocking" )
Click to show internal directories.
Click to hide internal directories.