types

package
v0.20.6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InsecureRegistry = EKSACliContextKey("insecure-registry")

InsecureRegistry can be used to bypass https registry certification check when push/pull images or artifacts.

Functions

This section is empty.

Types

type CAPICluster

type CAPICluster struct {
	Metadata Metadata
	Status   ClusterStatus
}

type ChangeDiff added in v0.6.0

type ChangeDiff struct {
	ComponentReports []ComponentChangeDiff `json:"components"`
}

func NewChangeDiff added in v0.6.0

func NewChangeDiff(componentReports ...*ComponentChangeDiff) *ChangeDiff

func (*ChangeDiff) Append added in v0.6.0

func (c *ChangeDiff) Append(changeDiffs ...*ChangeDiff)

func (*ChangeDiff) Changed added in v0.6.0

func (c *ChangeDiff) Changed() bool

type Closer added in v0.7.0

type Closer interface {
	Close(ctx context.Context) error
}

type Cluster

type Cluster struct {
	Name           string
	KubeconfigFile string
}

func (*Cluster) DeepCopy added in v0.17.2

func (c *Cluster) DeepCopy() *Cluster

DeepCopy creates a new in-memory copy of c.

type ClusterStatus

type ClusterStatus struct {
	Phase      string
	Conditions Conditions
}

type ComponentChangeDiff added in v0.6.0

type ComponentChangeDiff struct {
	ComponentName string `json:"name"`
	OldVersion    string `json:"oldVersion"`
	NewVersion    string `json:"newVersion"`
}

type Condition

type Condition struct {
	Type   ConditionType   `json:"type"`
	Status ConditionStatus `json:"status"`
}

type ConditionStatus

type ConditionStatus string

type ConditionType

type ConditionType string

type Conditions

type Conditions []Condition

type Datastores

type Datastores struct {
	Info Info `json:"Info"`
}

type Deployment

type Deployment struct {
	Namespace string
	Name      string
	Container string
}

type DockerCredentials added in v0.8.0

type DockerCredentials struct {
	Username string
	Password string
}

type EKSACliContextKey added in v0.16.2

type EKSACliContextKey string

EKSACliContextKey is defined to avoid conflict with other packages.

type Info

type Info struct {
	FreeSpace float64 `json:"FreeSpace"`
}

type InfrastructureBundle

type InfrastructureBundle struct {
	FolderName string
	Manifests  []v1alpha1.Manifest
}

type Lookup

type Lookup map[string]struct{}

func SliceToLookup

func SliceToLookup(slice []string) Lookup

func (Lookup) IsPresent

func (l Lookup) IsPresent(v string) bool

func (Lookup) ToSlice added in v0.9.0

func (l Lookup) ToSlice() []string

type Machine

type Machine struct {
	Metadata MachineMetadata `json:"metadata"`
	Status   MachineStatus   `json:"status"`
}

func (*Machine) HasAnyLabel added in v0.6.0

func (m *Machine) HasAnyLabel(labels []string) bool

type MachineMetadata

type MachineMetadata struct {
	Name   string            `json:"name,omitempty"`
	Labels map[string]string `json:"labels,omitempty"`
}

type MachineStatus

type MachineStatus struct {
	NodeRef    *ResourceRef `json:"nodeRef,omitempty"`
	Conditions Conditions
}

type Metadata

type Metadata struct {
	Name string
}

type NodeReadyChecker

type NodeReadyChecker func(status MachineStatus) bool

func WithNodeHealthy

func WithNodeHealthy() NodeReadyChecker

func WithNodeRef

func WithNodeRef() NodeReadyChecker

type NowFunc

type NowFunc func() time.Time

type ResourceRef

type ResourceRef struct {
	APIVersion string `json:"apiVersion"`
	Kind       string `json:"kind"`
	Name       string `json:"Name"`
}

Jump to

Keyboard shortcuts

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