Documentation ¶
Index ¶
- type IngressTargetProvider
- func (i *IngressTargetProvider) Apply(ctx context.Context, deployment model.DeploymentSpec, ...) (map[string]model.ComponentResultSpec, error)
- func (i *IngressTargetProvider) Get(ctx context.Context, deployment model.DeploymentSpec, ...) ([]model.ComponentSpec, error)
- func (*IngressTargetProvider) GetValidationRule(ctx context.Context) model.ValidationRule
- func (i *IngressTargetProvider) Init(config providers.IProviderConfig) error
- func (i *IngressTargetProvider) InitWithMap(properties map[string]string) error
- func (s *IngressTargetProvider) SetContext(ctx *contexts.ManagerContext)
- type IngressTargetProviderConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IngressTargetProvider ¶
type IngressTargetProvider struct { Config IngressTargetProviderConfig Context *contexts.ManagerContext Client kubernetes.Interface DynamicClient dynamic.Interface DiscoveryClient *discovery.DiscoveryClient Mapper *restmapper.DeferredDiscoveryRESTMapper RESTConfig *rest.Config }
IngressTargetProvider is the kubectl target provider
func (*IngressTargetProvider) Apply ¶
func (i *IngressTargetProvider) Apply(ctx context.Context, deployment model.DeploymentSpec, step model.DeploymentStep, isDryRun bool) (map[string]model.ComponentResultSpec, error)
Apply applies the ingress artifacts
func (*IngressTargetProvider) Get ¶
func (i *IngressTargetProvider) Get(ctx context.Context, deployment model.DeploymentSpec, references []model.ComponentStep) ([]model.ComponentSpec, error)
Get gets the artifacts for a ingress
func (*IngressTargetProvider) GetValidationRule ¶
func (*IngressTargetProvider) GetValidationRule(ctx context.Context) model.ValidationRule
GetValidationRule returns validation rule for the provider
func (*IngressTargetProvider) Init ¶
func (i *IngressTargetProvider) Init(config providers.IProviderConfig) error
Init initializes the ingress target provider
func (*IngressTargetProvider) InitWithMap ¶
func (i *IngressTargetProvider) InitWithMap(properties map[string]string) error
InitWithMap initializes the ingress target provider with a map
func (*IngressTargetProvider) SetContext ¶
func (s *IngressTargetProvider) SetContext(ctx *contexts.ManagerContext)
type IngressTargetProviderConfig ¶
type IngressTargetProviderConfig struct { Name string `json:"name,omitempty"` ConfigType string `json:"configType,omitempty"` ConfigData string `json:"configData,omitempty"` Context string `json:"context,omitempty"` InCluster bool `json:"inCluster"` }
IngressTargetProviderConfig is the configuration for the ingress target provider
func IngressTargetProviderConfigFromMap ¶
func IngressTargetProviderConfigFromMap(properties map[string]string) (IngressTargetProviderConfig, error)
IngressTargetProviderConfigFromMap converts a map to a IngressTargetProviderConfig
Click to show internal directories.
Click to hide internal directories.