entity

package
v0.0.0-...-625aa4e Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceClusterType int = iota
	ManagementClusterType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster interface {
	ID() string
	Name() string
	ClusterID() string
	Sector() string
	State() string
	Region() string
	Kind() int
	String() string
}

type ManagementCluster

type ManagementCluster struct {
	Parent *ServiceCluster
	// contains filtered or unexported fields
}

func NewManagementCluster

func NewManagementCluster(mc *v1.ManagementCluster, parent *ServiceCluster) *ManagementCluster

func (*ManagementCluster) ClusterID

func (mc *ManagementCluster) ClusterID() string

func (*ManagementCluster) ID

func (mc *ManagementCluster) ID() string

func (*ManagementCluster) Kind

func (mc *ManagementCluster) Kind() int

func (*ManagementCluster) Name

func (mc *ManagementCluster) Name() string

func (*ManagementCluster) Region

func (mc *ManagementCluster) Region() string

func (*ManagementCluster) Sector

func (mc *ManagementCluster) Sector() string

func (*ManagementCluster) State

func (mc *ManagementCluster) State() string

func (*ManagementCluster) String

func (mc *ManagementCluster) String() string

type ServiceCluster

type ServiceCluster struct {
	Children []*ManagementCluster
	// contains filtered or unexported fields
}

func NewServiceCluster

func NewServiceCluster(sc *v1.ServiceCluster) *ServiceCluster

func (*ServiceCluster) AddManagementCluster

func (sc *ServiceCluster) AddManagementCluster(mc *ManagementCluster)

func (*ServiceCluster) ClusterID

func (sc *ServiceCluster) ClusterID() string

func (*ServiceCluster) ID

func (sc *ServiceCluster) ID() string

func (*ServiceCluster) Kind

func (sc *ServiceCluster) Kind() int

func (*ServiceCluster) Name

func (sc *ServiceCluster) Name() string

func (*ServiceCluster) Region

func (sc *ServiceCluster) Region() string

func (*ServiceCluster) Sector

func (sc *ServiceCluster) Sector() string

func (*ServiceCluster) State

func (sc *ServiceCluster) State() string

func (*ServiceCluster) String

func (sc *ServiceCluster) String() string

Jump to

Keyboard shortcuts

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