models

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 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

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
	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 Ingress added in v0.5.1

type Ingress struct {
	// IP is set for load-balancer ingress points that are IP based
	// (typically GCE or OpenStack load-balancers)
	// +optional
	IP string

	// Hostname is set for load-balancer ingress points that are DNS based
	// (typically AWS load-balancers)
	// +optional
	Hostname string
}

Ingress represents the status of a load-balancer ingress point

type Port added in v0.5.1

type Port struct {
	// The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
	// Default is TCP.
	// +optional
	Protocol v1.Protocol

	// The port that will be exposed by this service.
	Port int32
}

Port contains information on service's port.

type ProvisionDetails added in v0.5.3

type ProvisionDetails struct {
	Ingress           []Ingress
	Ports             []Port
	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