state

package
v0.0.0-...-392b1d9 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstancesIdentifier

type InstancesIdentifier struct {
	Basename   string
	ObjectKind string
	ApiGroup   string
}

InstancesIdentifier is a unique identifier for object replicas group

type InstancesState

type InstancesState struct {
	DesiredReplicaCount int32
	CurrentReplicaCount int32
	Object              api.Object
}

InstancesState represents state of object replicas.

type ResourceTypeIdentifier

type ResourceTypeIdentifier struct {
	ObjectKind string
	ApiGroup   string
}

ResourceTypeIdentifier is a unique identifier for a resource type.

type State

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

State is a state of the cluster. It is composed of namespaces state and resources versions state.

func NewState

func NewState() *State

NewState creates new State instance.

func (*State) GetNamespacesState

func (s *State) GetNamespacesState() *namespacesState

GetNamespacesState returns namespaces state.

func (*State) GetResourcesVersionState

func (s *State) GetResourcesVersionState() *resourcesVersionsState

GetResourcesVersionState returns resources versions state.

Jump to

Keyboard shortcuts

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