nutanix

package
v2.19.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterCategoryName = "KKPCluster"
	ProjectCategoryName = "KKPProject"
)

Variables

This section is empty.

Functions

func CategoryValue

func CategoryValue(clusterName string) string

func GetClusterByName

func GetClusterByName(client *ClientSet, name string) (*nutanixv3.ClusterIntentResponse, error)

func GetProjectByName

func GetProjectByName(client *ClientSet, name string) (*nutanixv3.Project, error)

func GetSubnetByName

func GetSubnetByName(client *ClientSet, name, clusterID string) (*nutanixv3.SubnetIntentResponse, error)

Types

type ClientSet

type ClientSet struct {
	Prism *nutanixv3.Client
}

type ErrorResponse

type ErrorResponse struct {
	APIVersion  string             `json:"api_version"`
	Kind        string             `json:"kind"`
	State       string             `json:"state"`
	MessageList []ErrorResponseMsg `json:"message_list"`
	Code        int32              `json:"code"`
}

func ParseNutanixError

func ParseNutanixError(err error) (*ErrorResponse, error)

type ErrorResponseMsg

type ErrorResponseMsg struct {
	Message string `json:"message"`
	Reason  string `json:"reason"`
}

type Nutanix

type Nutanix struct {
	// contains filtered or unexported fields
}

func NewCloudProvider

func NewCloudProvider(dc *kubermaticv1.Datacenter, secretKeyGetter provider.SecretKeySelectorValueFunc) (*Nutanix, error)

func (*Nutanix) CleanUpCloudProvider

func (n *Nutanix) CleanUpCloudProvider(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)

func (*Nutanix) DefaultCloudSpec

func (n *Nutanix) DefaultCloudSpec(spec *kubermaticv1.CloudSpec) error

func (*Nutanix) InitializeCloudProvider

func (n *Nutanix) InitializeCloudProvider(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)

func (*Nutanix) ReconcileCluster

func (n *Nutanix) ReconcileCluster(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)

func (*Nutanix) ValidateCloudSpec

func (n *Nutanix) ValidateCloudSpec(spec kubermaticv1.CloudSpec) error

func (*Nutanix) ValidateCloudSpecUpdate

func (n *Nutanix) ValidateCloudSpecUpdate(oldSpec kubermaticv1.CloudSpec, newSpec kubermaticv1.CloudSpec) error

Jump to

Keyboard shortcuts

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