e2e

package
v2.1.123 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdStepE2E

func NewCmdStepE2E(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepE2E Steps a command object for the "e2e" command

func NewCmdStepE2EGC

func NewCmdStepE2EGC(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepE2EGC creates the CLI command

func NewCmdStepE2ELabel

func NewCmdStepE2ELabel(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepE2ELabel creates the CLI command

Types

type StepE2EGCOptions

type StepE2EGCOptions struct {
	step.StepOptions
	ProjectID string
	Providers []string
	Region    string
	Duration  int
}

StepE2EGCOptions contains the command line flags

func (*StepE2EGCOptions) GetBuildNumberFromCluster

func (o *StepE2EGCOptions) GetBuildNumberFromCluster(cluster *gke.Cluster) (int, error)

GetBuildNumberFromCluster gets the build number from the cluster labels

func (*StepE2EGCOptions) GetBuildNumberFromClusterEKS

func (o *StepE2EGCOptions) GetBuildNumberFromClusterEKS(cluster *cluster.Cluster) (int, error)

GetBuildNumberFromClusterEKS gets the build number from the cluster labels

func (*StepE2EGCOptions) Run

func (o *StepE2EGCOptions) Run() error

Run runs the command

func (*StepE2EGCOptions) ShouldDeleteDueToNewerRun

func (o *StepE2EGCOptions) ShouldDeleteDueToNewerRun(cluster *gke.Cluster, clusters []gke.Cluster) bool

ShouldDeleteDueToNewerRun returns true if a cluster with a higher build number exists

func (*StepE2EGCOptions) ShouldDeleteDueToNewerRunEKS

func (o *StepE2EGCOptions) ShouldDeleteDueToNewerRunEKS(cluster *cluster.Cluster, clusters []*cluster.Cluster) bool

ShouldDeleteDueToNewerRunEKS returns true if a cluster with a higher build number exists

func (*StepE2EGCOptions) ShouldDeleteMarkedCluster

func (o *StepE2EGCOptions) ShouldDeleteMarkedCluster(cluster *gke.Cluster) bool

ShouldDeleteMarkedCluster returns true if the cluster has a delete label

func (*StepE2EGCOptions) ShouldDeleteMarkedEKSCluster

func (o *StepE2EGCOptions) ShouldDeleteMarkedEKSCluster(cluster *cluster.Cluster) bool

ShouldDeleteMarkedEKSCluster returns true if the cluster has a delete label

func (*StepE2EGCOptions) ShouldDeleteOlderThanDuration

func (o *StepE2EGCOptions) ShouldDeleteOlderThanDuration(cluster *gke.Cluster) bool

ShouldDeleteOlderThanDuration returns true if the cluster is older than the delete duration and does not have a keep label

func (*StepE2EGCOptions) ShouldDeleteOlderThanDurationEKS

func (o *StepE2EGCOptions) ShouldDeleteOlderThanDurationEKS(cluster *cluster.Cluster) bool

ShouldDeleteOlderThanDurationEKS returns true if the cluster is older than the delete duration and does not have a keep label

type StepE2ELabelOptions

type StepE2ELabelOptions struct {
	step.StepOptions
	ProjectID string
	Region    string
	Keep      bool
	Delete    bool
}

StepE2ELabelOptions contains the command line flags

func (*StepE2ELabelOptions) Run

func (o *StepE2ELabelOptions) Run() error

Run runs the command

type StepE2EOptions

type StepE2EOptions struct {
	step.StepOptions
}

StepE2EOptions contains the command line flags

func (*StepE2EOptions) Run

func (o *StepE2EOptions) Run() error

Run implements this command

Jump to

Keyboard shortcuts

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