Documentation ¶
Index ¶
- Constants
- func SharedCredentialsFileFromSecret(secret *corev1.Secret) (string, error)
- type Client
- func (ac *Client) DeleteAdminAPIDNS(ctx context.Context, kclient k8s.Client, ...) error
- func (ac *Client) EnsureAdminAPIDNS(ctx context.Context, kclient k8s.Client, ...) error
- func (ac *Client) GetTags(clusterName string) []*elbv2.Tag
- func (ac *Client) Healthcheck(ctx context.Context, kclient k8s.Client) error
- func (ac *Client) SetDefaultAPIPrivate(ctx context.Context, kclient k8s.Client, ...) error
- func (ac *Client) SetDefaultAPIPublic(ctx context.Context, kclient k8s.Client, ...) error
Constants ¶
View Source
const ClientIdentifier configv1.PlatformType = configv1.AWSPlatformType
ClientIdentifier is what kind of cloud this implement supports
Variables ¶
This section is empty.
Functions ¶
func SharedCredentialsFileFromSecret ¶
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 (*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) Healthcheck ¶
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
Click to show internal directories.
Click to hide internal directories.