providerclient

package
v0.0.0-...-99ac84a Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const KubernetesAnnotationsNLBValue = "nlb"
View Source
const ServiceAnnotationLoadBalancerType = "service.beta.kubernetes.io/aws-load-balancer-type"

ServiceAnnotationLoadBalancerType is the annotation used on the service to indicate what type of Load Balancer we want. Right now, the only accepted value is "nlb" COPIED FROM https://github.com/kubernetes/kubernetes/blob/d7103187a37dcfff79077c80a151e98571487628/pkg/cloudprovider/providers/aws/aws.go

Variables

View Source
var ErrLoadBalancerNotFound = errors.New("load balancer not found")

ErrLoadBalancerNotFound Load Balancer Not Found.

View Source
var ErrNoTagsFound = errors.New("no tags found on load balancer")

ErrNoTagsFound No tags found error.

Functions

This section is empty.

Types

type AWSProviderClient

type AWSProviderClient struct {
	// contains filtered or unexported fields
}

AWSProviderClient Aws Provider client.

func (*AWSProviderClient) AddTagsFromPersistentVolume

func (apr *AWSProviderClient) AddTagsFromPersistentVolume(pv *v1.PersistentVolume, tagsList []*tags.Tag) error

AddTagsFromPersistentVolume Add Tags from persistent volume.

func (*AWSProviderClient) AddTagsFromService

func (apr *AWSProviderClient) AddTagsFromService(svc *v1.Service, tagsList []*tags.Tag) error

AddTagsFromService Add tags from service.

func (*AWSProviderClient) DeleteTagsFromPersistentVolume

func (apr *AWSProviderClient) DeleteTagsFromPersistentVolume(pv *v1.PersistentVolume, tagsList []*tags.Tag) error

DeleteTagsFromPersistentVolume Delete tags from persistent volume.

func (*AWSProviderClient) DeleteTagsFromService

func (apr *AWSProviderClient) DeleteTagsFromService(svc *v1.Service, tagsList []*tags.Tag) error

DeleteTagsFromService Delete tags from service.

func (*AWSProviderClient) GetActualTagsFromPersistentVolume

func (apr *AWSProviderClient) GetActualTagsFromPersistentVolume(pv *v1.PersistentVolume) ([]*tags.Tag, error)

GetActualTagsFromPersistentVolume Get actual tags from persistent volume.

func (*AWSProviderClient) GetActualTagsFromService

func (apr *AWSProviderClient) GetActualTagsFromService(svc *v1.Service) ([]*tags.Tag, error)

GetActualTagsFromService Get actual tags from service.

type ProviderClient

type ProviderClient interface {
	GetActualTagsFromPersistentVolume(pv *v1.PersistentVolume) ([]*tags.Tag, error)
	GetActualTagsFromService(svc *v1.Service) ([]*tags.Tag, error)
	AddTagsFromPersistentVolume(pv *v1.PersistentVolume, tagsList []*tags.Tag) error
	DeleteTagsFromPersistentVolume(pv *v1.PersistentVolume, tagsList []*tags.Tag) error
	AddTagsFromService(svc *v1.Service, tagsList []*tags.Tag) error
	DeleteTagsFromService(svc *v1.Service, tagsList []*tags.Tag) error
}

ProviderClient Provider Client.

func NewProviderClient

func NewProviderClient(cfg *config.Configuration) (ProviderClient, error)

NewProviderClient New Provider client.

Jump to

Keyboard shortcuts

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