Documentation ¶
Index ¶
- func GetFlowSchemaRemoveCandidate(client flowcontrolclient.FlowSchemaInterface, ...) ([]string, error)
- func GetPriorityLevelRemoveCandidate(client flowcontrolclient.PriorityLevelConfigurationInterface, ...) ([]string, error)
- type FlowSchemaEnsurer
- type FlowSchemaRemover
- type PriorityLevelEnsurer
- type PriorityLevelRemover
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFlowSchemaRemoveCandidate ¶
func GetFlowSchemaRemoveCandidate(client flowcontrolclient.FlowSchemaInterface, bootstrap []*flowcontrolv1beta1.FlowSchema) ([]string, error)
GetFlowSchemaRemoveCandidate returns a list of FlowSchema object names that are candidates for deletion from the cluster. bootstrap: a set of hard coded FlowSchema configuration objects kube-apiserver maintains in-memory.
func GetPriorityLevelRemoveCandidate ¶
func GetPriorityLevelRemoveCandidate(client flowcontrolclient.PriorityLevelConfigurationInterface, bootstrap []*flowcontrolv1beta1.PriorityLevelConfiguration) ([]string, error)
GetPriorityLevelRemoveCandidate returns a list of PriorityLevelConfiguration names that are candidates for removal from the cluster. bootstrap: a set of hard coded PriorityLevelConfiguration configuration objects kube-apiserver maintains in-memory.
Types ¶
type FlowSchemaEnsurer ¶
type FlowSchemaEnsurer interface {
Ensure([]*flowcontrolv1beta1.FlowSchema) error
}
FlowSchemaEnsurer ensures the specified bootstrap configuration objects
func NewMandatoryFlowSchemaEnsurer ¶
func NewMandatoryFlowSchemaEnsurer(client flowcontrolclient.FlowSchemaInterface) FlowSchemaEnsurer
NewMandatoryFlowSchemaEnsurer returns a FlowSchemaEnsurer instance that can be used to ensure a set of mandatory FlowSchema configuration objects.
func NewSuggestedFlowSchemaEnsurer ¶
func NewSuggestedFlowSchemaEnsurer(client flowcontrolclient.FlowSchemaInterface) FlowSchemaEnsurer
NewSuggestedFlowSchemaEnsurer returns a FlowSchemaEnsurer instance that can be used to ensure a set of suggested FlowSchema configuration objects.
type FlowSchemaRemover ¶
FlowSchemaRemover removes the specified bootstrap configuration objects
func NewFlowSchemaRemover ¶
func NewFlowSchemaRemover(client flowcontrolclient.FlowSchemaInterface) FlowSchemaRemover
NewFlowSchemaRemover returns a FlowSchemaRemover instance that can be used to remove a set of FlowSchema configuration objects.
type PriorityLevelEnsurer ¶
type PriorityLevelEnsurer interface {
Ensure([]*flowcontrolv1beta1.PriorityLevelConfiguration) error
}
PriorityLevelEnsurer ensures the specified bootstrap configuration objects
func NewMandatoryPriorityLevelEnsurer ¶
func NewMandatoryPriorityLevelEnsurer(client flowcontrolclient.PriorityLevelConfigurationInterface) PriorityLevelEnsurer
NewMandatoryPriorityLevelEnsurer returns a PriorityLevelEnsurer instance that can be used to ensure a set of mandatory PriorityLevelConfiguration configuration objects.
func NewSuggestedPriorityLevelEnsurerEnsurer ¶
func NewSuggestedPriorityLevelEnsurerEnsurer(client flowcontrolclient.PriorityLevelConfigurationInterface) PriorityLevelEnsurer
NewSuggestedPriorityLevelEnsurerEnsurer returns a PriorityLevelEnsurer instance that can be used to ensure a set of suggested PriorityLevelConfiguration configuration objects.
type PriorityLevelRemover ¶
PriorityLevelRemover removes the specified bootstrap configuration objects
func NewPriorityLevelRemover ¶
func NewPriorityLevelRemover(client flowcontrolclient.PriorityLevelConfigurationInterface) PriorityLevelRemover
NewPriorityLevelRemover returns a PriorityLevelRemover instance that can be used to remove a set of PriorityLevelConfiguration configuration objects.