models

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 1 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

This section is empty.

Functions

This section is empty.

Types

type ClusterType added in v0.0.24

type ClusterType int
const (
	K3S ClusterType = iota
)

type EdgeCluster

type EdgeCluster struct {
	TenantID      string      `bson:"tenantID" json:"tenantID"`
	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 EdgeClusterWithCursor added in v0.0.10

type EdgeClusterWithCursor struct {
	EdgeClusterID string
	EdgeCluster   EdgeCluster
	Cursor        string
}

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

Jump to

Keyboard shortcuts

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