cloudcmd

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: AGPL-3.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

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

Creator creates cloud resources.

func NewCreator

func NewCreator(out io.Writer) *Creator

NewCreator creates a new creator.

func (*Creator) Create

func (c *Creator) Create(ctx context.Context, provider cloudprovider.Provider, config *config.Config, name, insType string, controlPlaneCount, workerCount int,
) (clusterid.File, error)

Create creates the handed amount of instances and all the needed resources.

type Terminator

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

Terminator deletes cloud provider resources.

func NewTerminator

func NewTerminator() *Terminator

NewTerminator create a new cloud terminator.

func (*Terminator) Terminate

func (t *Terminator) Terminate(ctx context.Context) (retErr error)

Terminate deletes the could provider resources.

type Upgrader

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

Upgrader handles upgrading the cluster's components using the CLI.

func NewUpgrader

func NewUpgrader(writer io.Writer) (*Upgrader, error)

NewUpgrader returns a new Upgrader.

func (*Upgrader) GetCurrentImage

func (u *Upgrader) GetCurrentImage(ctx context.Context) (*unstructured.Unstructured, string, error)

GetCurrentImage returns the currently used image of the cluster.

func (*Upgrader) Upgrade

func (u *Upgrader) Upgrade(ctx context.Context, image string, measurements map[uint32][]byte) error

Upgrade upgrades the cluster to the given measurements and image.

type Validator

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

func NewValidator

func NewValidator(provider cloudprovider.Provider, conf *config.Config) (*Validator, error)

func (*Validator) PCRS

func (v *Validator) PCRS() map[uint32][]byte

PCRS returns the validator's PCR map.

func (*Validator) UpdateInitPCRs

func (v *Validator) UpdateInitPCRs(ownerID, clusterID string) error

func (*Validator) V

func (v *Validator) V(cmd *cobra.Command) atls.Validator

V returns the validator as atls.Validator.

Jump to

Keyboard shortcuts

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