...

Package fleet

import "edge-infra.dev/pkg/edge/constants/api/fleet"
Overview
Index

Overview ▾

Package fleet contains Edge Fleet enum constants that represent each tier of K8s clusters in the Edge platform.

Constants

Fleet Types

const (
    TopLevel   = "top-level"
    Enterprise = "enterprise"
    Store      = "store"
    BasicStore = "basic-store"
         = "banner-infra"
    Cluster    = "cluster-infra"
    CouchDB    = "couchdb-masters"
)

Label is the K8s resource label used to store fleet information.

const Label = "fleet." + constants.Domain

LabelType is the type of the label in the edge database for the fleet type

const LabelType = "edge-fleet"

Variables

var ErrInvalidType = fmt.Errorf("invalid fleet type, expected %v", Types)
var Types = []Type{TopLevel, Enterprise, Store, BasicStore, Banner, Cluster, CouchDB}

func IsClusterInfraCluster

func IsClusterInfraCluster(val Type) bool

func IsStoreCluster

func IsStoreCluster(val Type) bool

func IsValid

func IsValid(ft string) error

type AnnotationsGetter

type AnnotationsGetter interface {
    GetAnnotations() map[string]string
}

type Type

Type is the enum type representing Edge Fleets

type Type string

func (Type) IsValid

func (ft Type) IsValid() error

IsValid checks that a Fleet Type enum value is correct.

func (Type) String

func (ft Type) String() string

String is a convenience function for casting a fleet.Type to a string