capability

package
v0.223.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeIAMRoleStackName

func MakeIAMRoleStackName(clusterName string, capability *api.Capability) string

func MakeStackName

func MakeStackName(clusterName string, capability api.Capability) string

Types

type Creator

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

func NewCreator

func NewCreator(clusterName string, stackCreator StackCreator, eksAPI awsapi.EKS, cmd *cmdutils.Cmd) *Creator

func (*Creator) Create

func (c *Creator) Create(ctx context.Context, capabilities []api.Capability) error

func (*Creator) CreateTasks

func (c *Creator) CreateTasks(ctx context.Context, capabilities []api.Capability) *tasks.TaskTree

type CreatorInterface

type CreatorInterface interface {
	Create(ctx context.Context, capabilities []api.Capability) error
	CreateTasks(ctx context.Context, capabilities []api.Capability) *tasks.TaskTree
}

type Getter

type Getter struct {
	ClusterName string
	EKSAPI      awsapi.EKS
}

func NewGetter

func NewGetter(clusterName string, eksAPI awsapi.EKS) *Getter

func (*Getter) Get

func (g *Getter) Get(ctx context.Context, capabilityName string) ([]Summary, error)

type GetterInterface

type GetterInterface interface {
	Get(ctx context.Context, capabilityName string) ([]Summary, error)
}

type Remover

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

func NewRemover

func NewRemover(clusterName string, stackRemover StackRemover) *Remover

func (*Remover) Delete

func (r *Remover) Delete(ctx context.Context, capabilities []Summary) error

func (*Remover) DeleteTasks

func (r *Remover) DeleteTasks(ctx context.Context, capabilities []Summary) (*tasks.TaskTree, error)

type RemoverInterface

type RemoverInterface interface {
	Delete(ctx context.Context, capabilities []Summary) error
	DeleteTasks(ctx context.Context, capabilities []Summary) *tasks.TaskTree
}

type StackCreator

type StackCreator interface {
	CreateStack(ctx context.Context, stackName string, resourceSet builder.ResourceSetReader, tags, parameters map[string]string, errs chan error) error
}

type StackRemover

type StackRemover interface {
	DescribeStack(ctx context.Context, s *cfntypes.Stack) (*cfntypes.Stack, error)
	DeleteStackSync(ctx context.Context, s *cfntypes.Stack) error
	ListCapabilityStacks(ctx context.Context) ([]*cfntypes.Stack, error)
	ListCapabilitiesIAMStacks(ctx context.Context) ([]*cfntypes.Stack, error)
}

type Summary

type Summary struct {
	api.Capability
	Status  string
	Version string
}

type Updater

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

func NewUpdater

func NewUpdater(clusterName string, eksAPI awsapi.EKS) *Updater

func (*Updater) Update

func (u *Updater) Update(ctx context.Context, capabilities []api.Capability) error

func (*Updater) UpdateTasks

func (u *Updater) UpdateTasks(ctx context.Context, capabilities []api.Capability) *tasks.TaskTree

type UpdaterInterface

type UpdaterInterface interface {
	Update(ctx context.Context, capabilities []api.Capability) error
	UpdateTasks(ctx context.Context, capabilities []api.Capability) *tasks.TaskTree
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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