nutanix

package
v2.19.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 17 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 GetClusters added in v2.19.1

func GetClusters(client *ClientSet) ([]nutanixv3.ClusterIntentResponse, error)

func GetProjectByName

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

func GetProjects added in v2.19.1

func GetProjects(client *ClientSet) ([]nutanixv3.Project, error)

func GetSubnetByName

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

func GetSubnets added in v2.19.1

func GetSubnets(client *ClientSet, clusterName, projectName string) ([]nutanixv3.SubnetIntentResponse, error)

Types

type ClientSet

type ClientSet struct {
	Prism *nutanixv3.Client
}

func GetClientSetWithCreds added in v2.19.1

func GetClientSetWithCreds(endpoint string, port *int32, allowInsecure *bool, proxyURL, username, password string) (*ClientSet, error)

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