types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAPICluster

type CAPICluster struct {
	Metadata Metadata
	Status   ClusterStatus
}

type Cluster

type Cluster struct {
	Name           string
	KubeconfigFile string
}

type ClusterStatus

type ClusterStatus struct {
	Phase string
}

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 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

type Machine

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

type MachineMetadata

type MachineMetadata struct {
	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