aws

package
v0.0.0-...-3420c2a Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

ClientIdentifier is what kind of cloud this implement supports

Variables

This section is empty.

Functions

func SharedCredentialsFileFromSecret

func SharedCredentialsFileFromSecret(secret *corev1.Secret) (string, error)

SharedCredentialsFileFromSecret returns a path to the shared creds file created using provided secret configure the aws session using file to use credentials eg sharedCredentialsFile, err := SharedCredentialsFileFromSecret(secret)

if err != nil {
	// handle error
}

options := session.Options{
	SharedConfigState: session.SharedConfigEnable,
	SharedConfigFiles: []string{sharedCredentialsFile},
}

sess := session.Must(session.NewSessionWithOptions(options))

Types

type Client

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

Client represents an AWS Client

func NewClient

func NewClient(kclient k8s.Client) (*Client, error)

NewClient creates a new CloudClient for use with AWS.

func (*Client) DeleteAdminAPIDNS

func (ac *Client) DeleteAdminAPIDNS(ctx context.Context, kclient k8s.Client, instance *cloudingressv1alpha1.APIScheme, svc *corev1.Service) error

DeleteAdminAPIDNS implements cloudclient.CloudClient

func (*Client) EnsureAdminAPIDNS

func (ac *Client) EnsureAdminAPIDNS(ctx context.Context, kclient k8s.Client, instance *cloudingressv1alpha1.APIScheme, svc *corev1.Service) error

EnsureAdminAPIDNS implements cloudclient.CloudClient

func (*Client) GetTags

func (ac *Client) GetTags(clusterName string) []*elbv2.Tag

func (*Client) Healthcheck

func (ac *Client) Healthcheck(ctx context.Context, kclient k8s.Client) error

Healthcheck performs basic calls to make sure client is healthy

func (*Client) SetDefaultAPIPrivate

func (ac *Client) SetDefaultAPIPrivate(ctx context.Context, kclient k8s.Client, instance *cloudingressv1alpha1.PublishingStrategy) error

SetDefaultAPIPrivate implements cloudclient.CloudClient

func (*Client) SetDefaultAPIPublic

func (ac *Client) SetDefaultAPIPublic(ctx context.Context, kclient k8s.Client, instance *cloudingressv1alpha1.PublishingStrategy) error

SetDefaultAPIPublic implements cloudclient.CloudClient

Jump to

Keyboard shortcuts

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