fargate

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: Apache-2.0 Imports: 17 Imported by: 14

Documentation

Index

Constants

View Source
const (
	// MinPlatformVersion is the minimum platform version which supports
	// Fargate, i.e. represents "eks.5":
	MinPlatformVersion = 5

	// MinKubernetesVersion is the minimum Kubernetes version which supports
	// Fargate.
	MinKubernetesVersion = api.Version1_14
)

Variables

This section is empty.

Functions

func IsUnauthorizedError

func IsUnauthorizedError(err error) bool

IsUnauthorizedError reports whether the error is an authorization error Unauthorized errors are of the form:

AccessDeniedException: Account <account> is not authorized to use this service

func PrintProfiles

func PrintProfiles(profiles []*api.FargateProfile, writer io.Writer, printerType printers.Type) error

PrintProfiles formats the provided profiles in the provided printer type ("table", "json", "yaml") and prints them to the provided writer.

Types

type Client

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

Client wraps around an EKS API client to expose high-level methods.

func NewFromProvider

func NewFromProvider(clusterName string, provider api.ClusterProvider, stackManager manager.StackManager) Client

func NewWithRetryPolicy

func NewWithRetryPolicy(clusterName string, api eksiface.EKSAPI, retryPolicy retry.Policy, stackManager manager.StackManager) Client

NewWithRetryPolicy returns a new Fargate client configured with the provided retry policy for blocking/waiting operations.

func (*Client) CreateProfile

func (c *Client) CreateProfile(profile *api.FargateProfile, waitForCreation bool) error

CreateProfile creates the provided Fargate profile.

func (*Client) DeleteProfile

func (c *Client) DeleteProfile(name string, waitForDeletion bool) error

DeleteProfile drains and delete the Fargate profile with the provided name.

func (*Client) ListProfiles

func (c *Client) ListProfiles() ([]*string, error)

ListProfiles lists all existing Fargate profiles.

func (*Client) ReadProfile

func (c *Client) ReadProfile(name string) (*api.FargateProfile, error)

ReadProfile reads the Fargate profile corresponding to the provided name if it exists.

func (*Client) ReadProfiles

func (c *Client) ReadProfiles() ([]*api.FargateProfile, error)

ReadProfiles reads all existing Fargate profiles.

type CreateOptions

type CreateOptions struct {
	ProfileName              string
	ProfileSelectorNamespace string
	// +optional
	ProfileSelectorLabels map[string]string
	// +optional
	Tags map[string]string
}

CreateOptions groups the parameters required to create a Fargate profile.

func (CreateOptions) ToFargateProfile

func (o CreateOptions) ToFargateProfile() *api.FargateProfile

ToFargateProfile creates a FargateProfile object from this Options object.

func (*CreateOptions) Validate

func (o *CreateOptions) Validate() error

Validate validates this Options object's fields.

type Options

type Options struct {
	ProfileName string
}

Options groups the parameters required to interact with Fargate.

func (*Options) Validate

func (o *Options) Validate() error

Validate validates this Options object's fields.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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