types

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMIStatus

type AMIStatus int

AMIStatus represents the status of a nodegroup's AMI

const (
	AMILatest AMIStatus = iota
	AMIOutdated
	AMIUpdating
	AMIUnknown
)

func (AMIStatus) String

func (s AMIStatus) String() string

type DryRunAction

type DryRunAction int

DryRunAction represents what action would be taken in dry run mode

const (
	ActionUpdate DryRunAction = iota
	ActionSkipUpdating
	ActionSkipLatest
	ActionForceUpdate
)

func (DryRunAction) String

func (a DryRunAction) String() string

type MonitorConfig

type MonitorConfig struct {
	PollInterval    time.Duration
	MaxRetries      int
	BackoffMultiple float64
	Quiet           bool
	NoWait          bool
	Timeout         time.Duration
}

type NodegroupInfo

type NodegroupInfo struct {
	Name         string
	Status       string
	InstanceType string
	Desired      int32
	CurrentAmi   string
	AmiStatus    AMIStatus
}

type ProgressMonitor

type ProgressMonitor struct {
	Updates     []UpdateProgress
	StartTime   time.Time
	Quiet       bool
	NoWait      bool
	Timeout     time.Duration
	LastPrinted int // Track lines printed in last update
}

type UpdateProgress

type UpdateProgress struct {
	NodegroupName string
	UpdateID      string
	ClusterName   string
	Status        types.UpdateStatus
	StartTime     time.Time
	LastChecked   time.Time
	ErrorMessage  string
}

type VersionInfo

type VersionInfo struct {
	Version   string `json:"version"`
	Commit    string `json:"commit,omitempty"`
	BuildDate string `json:"build_date,omitempty"`
}

Jump to

Keyboard shortcuts

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