fargate

package
v0.178.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 18 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 awsapi.EKS, 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(ctx context.Context, profile *api.FargateProfile, waitForCreation bool) error

CreateProfile creates the provided Fargate profile.

func (*Client) DeleteProfile

func (c *Client) DeleteProfile(ctx context.Context, name string, waitForDeletion bool) error

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

func (*Client) ListProfiles

func (c *Client) ListProfiles(ctx context.Context) (fargateProfileNames []string, err error)

ListProfiles lists all existing Fargate profiles.

func (*Client) ReadProfile

func (c *Client) ReadProfile(ctx context.Context, 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(ctx context.Context) ([]*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