models

package
v0.10.2 Latest Latest
Warning

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

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

Documentation

Overview

Package models defines the different object models used in EdgeCluster

Package models defines the different object models used in EdgeCluster

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextKeyParsedToken var
	ContextKeyParsedToken = contextKey("ParsedToken")
)

Functions

This section is empty.

Types

type ClusterType added in v0.0.24

type ClusterType int

ClusterType is the edge cluster type

const (
	// K3S is an edge cluster using K3S server and agent nodes
	K3S ClusterType = iota
)

type EdgeCluster

type EdgeCluster struct {
	ProjectID     string      `bson:"projectID" json:"projectID"`
	Name          string      `bson:"name" json:"name"`
	ClusterSecret string      `bson:"clusterSecret" json:"clusterSecret"`
	ClusterType   ClusterType `bson:"clusterType" json:"clusterType"`
}

EdgeCluster defines the Edge Cluster object

func (EdgeCluster) Validate

func (val EdgeCluster) Validate() error

Validate validates the EdgeCluster and return error if the validation failes Returns error if validation failes

type EdgeClusterNode added in v0.9.0

type EdgeClusterNode struct {
	// Node contains information about an existing edge cluster node
	Node v1.Node
}

EdgeClusterNode is information about the current status of a node.

type EdgeClusterPod added in v0.8.0

type EdgeClusterPod struct {
	// Pod contains information about a deployed edge cluster node pod
	Pod v1.Pod
}

EdgeClusterPod is information about the current status of a pod.

type EdgeClusterService added in v0.9.0

type EdgeClusterService struct {
	// Service contains information about a deployed edge cluster node service
	Service v1.Service
}

EdgeClusterService is information about the current status of a service.

type EdgeClusterWithCursor added in v0.0.10

type EdgeClusterWithCursor struct {
	EdgeClusterID    string
	EdgeCluster      EdgeCluster
	Cursor           string
	ProvisionDetails ProvisionDetails
}

EdgeClusterWithCursor implements the pair of the edge cluster with a cursor that determines the location of the edge cluster in the repository.

type ParsedToken added in v0.7.0

type ParsedToken struct {
	Email string
}

ParsedToken contains details that are encoded in the received JWT token

type ProvisionDetails added in v0.5.3

type ProvisionDetails struct {
	Service           *v1.Service
	KubeconfigContent string
}

ProvisionDetails represents the provision detail of an edge cluster

Jump to

Keyboard shortcuts

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