Documentation ¶
Index ¶
- func NewCmdStepE2E(commonOpts *opts.CommonOptions) *cobra.Command
- func NewCmdStepE2EGC(commonOpts *opts.CommonOptions) *cobra.Command
- func NewCmdStepE2ELabel(commonOpts *opts.CommonOptions) *cobra.Command
- type StepE2EGCOptions
- func (o *StepE2EGCOptions) GetBuildNumberFromCluster(cluster *gke.Cluster) (int, error)
- func (o *StepE2EGCOptions) GetBuildNumberFromClusterEKS(cluster *cluster.Cluster) (int, error)
- func (o *StepE2EGCOptions) Run() error
- func (o *StepE2EGCOptions) ShouldDeleteDueToNewerRun(cluster *gke.Cluster, clusters []gke.Cluster) bool
- func (o *StepE2EGCOptions) ShouldDeleteDueToNewerRunEKS(cluster *cluster.Cluster, clusters []*cluster.Cluster) bool
- func (o *StepE2EGCOptions) ShouldDeleteMarkedCluster(cluster *gke.Cluster) bool
- func (o *StepE2EGCOptions) ShouldDeleteMarkedEKSCluster(cluster *cluster.Cluster) bool
- func (o *StepE2EGCOptions) ShouldDeleteOlderThanDuration(cluster *gke.Cluster) bool
- func (o *StepE2EGCOptions) ShouldDeleteOlderThanDurationEKS(cluster *cluster.Cluster) bool
- type StepE2ELabelOptions
- type StepE2EOptions
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) 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
type StepE2EOptions ¶
type StepE2EOptions struct {
step.StepOptions
}
StepE2EOptions contains the command line flags