ingress

package
v0.0.0-...-5785f03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

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

Apply applies the ingress artifacts

func (*IngressTargetProvider) Get

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL