instanceprofile

package
v0.36.8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultProvider added in v0.36.0

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

func NewProvider

func NewProvider(region string, iamapi iamiface.IAMAPI, cache *cache.Cache) *DefaultProvider

func (*DefaultProvider) Create added in v0.36.0

func (p *DefaultProvider) Create(ctx context.Context, nodeClass *v1beta1.EC2NodeClass) (string, error)

func (*DefaultProvider) Delete added in v0.36.0

func (p *DefaultProvider) Delete(ctx context.Context, nodeClass *v1beta1.EC2NodeClass) error

func (*DefaultProvider) GetProfileName added in v0.36.0

func (p *DefaultProvider) GetProfileName(ctx context.Context, region, nodeClassName string) string

GetProfileName gets the string for the profile name based on the cluster name and the NodeClass UUID. The length of this string can never exceed the maximum instance profile name limit of 128 characters.

type Provider

type Provider interface {
	Create(context.Context, *v1beta1.EC2NodeClass) (string, error)
	Delete(context.Context, *v1beta1.EC2NodeClass) error
	GetProfileName(ctx context.Context, region, nodeClassName string) string
}

Jump to

Keyboard shortcuts

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