Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromStrategy ¶
func FromStrategy(strategy *Strategy, providers map[string]StrategyProvider) interface{}
Types ¶
type Strategy ¶
type Strategy struct { Provider string `json:"provider"` Configuration map[string]string `json:"configuration,omitempty"` }
+kubebuilder:object:generate=true
func (*Strategy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Strategy.
func (*Strategy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StrategyProvider ¶
func NewProviderForType ¶
func NewProviderForType(template interface{}) StrategyProvider
func NewProviderFunction ¶
func NewProviderFunction(new func(map[string]string) interface{}) StrategyProvider
type StrategyProviderForType ¶
type StrategyProviderForType struct {
// contains filtered or unexported fields
}
StrategyProviderForType is a StrategyProvider implementation that creates a strategy by creating an instance of the same type of the template object
func (*StrategyProviderForType) New ¶
func (p *StrategyProviderForType) New(_ map[string]string) interface{}
type StrategyProviderFunction ¶
type StrategyProviderFunction struct {
// contains filtered or unexported fields
}
StrategyProviderFuncion is a Strategy provider implementation that delegates the strategy construction into a `new` function.
func (*StrategyProviderFunction) New ¶
func (p *StrategyProviderFunction) New(configuration map[string]string) interface{}
Click to show internal directories.
Click to hide internal directories.