Documentation ¶
Index ¶
- Constants
- Variables
- func AggregateResponses(templateName string, parent *types.Responses, child *types.Responses)
- func AggregateStats(templateName string, parent *types.Responses, child *types.Responses)
- func OverrideEnforcementAction(action string, resps *types.Responses)
- func ValidateTemplate(template *expansionunversioned.ExpansionTemplate) error
- type IDSet
- type Resultant
- type System
- type TemplateID
Constants ¶
View Source
const (
ChildStatLabel = "Implied by"
)
Variables ¶
View Source
var (
ExpansionEnabled *bool
)
Functions ¶
func AggregateResponses ¶
AggregateResponses aggregates all responses from children into the parent. Child result messages will be prefixed with a string to indicate the msg is implied by a ExpansionTemplate.
func AggregateStats ¶
AggregateStats aggregates all stats from the child Responses.StatsEntry into the parent Responses.StatsEntry. Child Stats will have a label to indicate that they come from an ExpansionTemplate usage.
func ValidateTemplate ¶
func ValidateTemplate(template *expansionunversioned.ExpansionTemplate) error
Types ¶
type IDSet ¶
type IDSet map[TemplateID]bool
type Resultant ¶
type Resultant struct { Obj *unstructured.Unstructured TemplateName string EnforcementAction string }
type System ¶
type System struct {
// contains filtered or unexported fields
}
func (*System) Expand ¶
func (s *System) Expand(base *mutationtypes.Mutable) ([]*Resultant, error)
Expand expands `base` into resultant resources, and applies any applicable mutators. If no ExpansionTemplates match `base`, an empty slice will be returned. If `s.mutationSystem` is nil, no mutations will be applied.
func (*System) GetConflicts ¶
func (*System) RemoveTemplate ¶
func (s *System) RemoveTemplate(template *expansionunversioned.ExpansionTemplate) error
func (*System) UpsertTemplate ¶
func (s *System) UpsertTemplate(template *expansionunversioned.ExpansionTemplate) error
type TemplateID ¶
type TemplateID string
Click to show internal directories.
Click to hide internal directories.