Documentation ¶
Index ¶
- type InstancesIdentifier
- type InstancesState
- type NamespacesState
- func (ns *NamespacesState) Delete(namespace string, identifier InstancesIdentifier) error
- func (ns *NamespacesState) Get(namespace string, identifier InstancesIdentifier) (*InstancesState, bool)
- func (ns *NamespacesState) Set(namespace string, identifier InstancesIdentifier, instances *InstancesState)
- type ResourceTypeIdentifier
- type ResourcesVersionsState
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstancesIdentifier ¶
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 NamespacesState ¶
type NamespacesState struct {
// contains filtered or unexported fields
}
NamespacesState represents state of all used namespaces.
func (*NamespacesState) Delete ¶
func (ns *NamespacesState) Delete(namespace string, identifier InstancesIdentifier) error
Delete removes information about given instances. It there is no information for given object it is assumed that there are no object replicas.
func (*NamespacesState) Get ¶
func (ns *NamespacesState) Get(namespace string, identifier InstancesIdentifier) (*InstancesState, bool)
Get returns state of object instances - number of existing replicas and its configuration.
func (*NamespacesState) Set ¶
func (ns *NamespacesState) Set(namespace string, identifier InstancesIdentifier, instances *InstancesState)
Set stores information about object instances state to test state.
type ResourceTypeIdentifier ¶
ResourceTypeIdentifier is a unique identifier for a resource type.
type ResourcesVersionsState ¶
type ResourcesVersionsState struct {
// contains filtered or unexported fields
}
ResourcesVersionsState represents most recent resources versions for a given object types. These versions are available only for resource types of objects that were create/updated by the clusterloader.
func (*ResourcesVersionsState) Get ¶
func (rs *ResourcesVersionsState) Get(identifier ResourceTypeIdentifier) (string, bool)
Get returns state of current resource version.
func (*ResourcesVersionsState) Set ¶
func (rs *ResourcesVersionsState) Set(identifier ResourceTypeIdentifier, resourceVersion string) error
Set stores information about current resource version.
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 (*State) GetNamespacesState ¶
func (s *State) GetNamespacesState() *NamespacesState
GetNamespacesState returns namespaces state.
func (*State) GetResourcesVersionState ¶
func (s *State) GetResourcesVersionState() *ResourcesVersionsState
GetResourcesVersionState returns resources versions state.