Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Destroyer ¶
func Destroyer() loki.DestroyerFunc
Destroyer parses the destroy section i.e. exclusion and scenario for kubernetes system.
Types ¶
type Killer ¶
type Killer struct { // System is the kubernetes system on which the killer acts on. *System }
Killer provides functionality to delete kubernetes resources.
type ResourceIdentifier ¶
type ResourceIdentifier struct { // GroupVersionKind identifies the type of kubernetes resource. schema.GroupVersionKind // Name represents the name of kubernetes resource. Name string // Namespace represents the namespace in which kubernetes resources lies. It should be empty for cluster scoped resoruces. Namespace string }
ResourceIdentifier implements loki.Identifier for kubernetes resources.
func (*ResourceIdentifier) ID ¶
func (r *ResourceIdentifier) ID() loki.ID
ID returns the unique identifier of kubernetes resource.
type System ¶
type System struct {
// contains filtered or unexported fields
}
System represents a kubernetes system comprising of resources as defined in input configuration.
func (*System) AsJSON ¶
AsJSON returns the json representation of the state of the kubernetes system. If `reload` is set to `true`, state of the system will be reloaded before preparing json representation of system.
func (*System) Identifiers ¶
func (s *System) Identifiers() loki.Identifiers
Identifiers return Identifier values of all resources in the kubernetes system.
func (*System) Load ¶
Load loads all the kubernetes resources defined in system of input configuration and stores it in memory. This will be used in validation during chaos testing.