yamltypes

package
v0.0.0-...-5a0e1a0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HubIdentifier

type HubIdentifier struct {
	// Name of the hub.
	Name string `yaml:"name"`
	// ManagedClusterIDs is an array of MC identifiers.
	ManagedClusterIDs []string `yaml:"managedClusterIdentifiers"`
}

HubIdentifier identifies managed clusters within a specific hub.

type ManagedClusterSet

type ManagedClusterSet struct {
	// Kind is kind of yaml.
	Kind string `yaml:"kind"`
	// ManagedClustersSetMetadata is the metadata of a ManagedClustersGroup.
	Metadata ManagedClusterSetMetadata `yaml:"metadata"`
	// ManagedClustersSetSpec is the spec of a ManagedClustersGroup.
	Spec ManagedClusterSetSpec `yaml:"spec"`
}

ManagedClusterSet implements the API for a ManagedClustersSet.

func NewManagedClusterSetFromBytes

func NewManagedClusterSetFromBytes(data []byte) (*ManagedClusterSet, error)

NewManagedClusterSetFromBytes unmarshals a byte slice into a ManagedClusterSet.

func (*ManagedClusterSet) GetCR

GetCR returns a CR object representing the set.

type ManagedClusterSetMetadata

type ManagedClusterSetMetadata struct {
	// Name of the clusters set.
	Name string `yaml:"name"`
}

ManagedClusterSetMetadata is the metadata of a ManagedClusterSet.

type ManagedClusterSetSpec

type ManagedClusterSetSpec struct {
	// Identifiers of the managed clusters.
	Identifiers []map[string]HubIdentifier `yaml:"identifiers"`
}

ManagedClusterSetSpec is the spec of a ManagedClustersGroup. The spec contains identifiers of MCs to be assigned with the cluster set.

type ManagedClustersGroup

type ManagedClustersGroup struct {
	// Kind is kind of yaml.
	Kind string `yaml:"kind"`
	// ManagedClustersGroupMetadata is the metadata of a ManagedClustersGroup.
	Metadata ManagedClustersGroupMetadata `yaml:"metadata"`
	// ManagedClustersGroupSpec is the spec of a ManagedClustersGroup.
	Spec ManagedClustersGroupSpec `yaml:"spec"`
}

ManagedClustersGroup implements the API for a ManagedClustersGroup.

func NewManagedClustersGroupFromBytes

func NewManagedClustersGroupFromBytes(data []byte) (*ManagedClustersGroup, error)

NewManagedClustersGroupFromBytes unmarshals a byte slice into a ManagedClustersGroup.

type ManagedClustersGroupMetadata

type ManagedClustersGroupMetadata struct {
	// Name of the clusters group.
	Name string `yaml:"name"`
}

ManagedClustersGroupMetadata is the metadata of a ManagedClustersGroup.

type ManagedClustersGroupSpec

type ManagedClustersGroupSpec struct {
	// TagValue is the value that will be assigned to the group label's key.
	TagValue string `yaml:"tagValue"`
	// Identifiers of the managed clusters.
	Identifiers []map[string]HubIdentifier `yaml:"identifiers"`
}

ManagedClustersGroupSpec is the spec of a ManagedClustersGroup. The spec contains identifiers of MCs to be tagged with the cluster group.

Jump to

Keyboard shortcuts

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