Documentation ¶
Index ¶
- Constants
- func CategoryValue(clusterName string) string
- func GetClusterByName(client *ClientSet, name string) (*nutanixv3.ClusterIntentResponse, error)
- func GetClusters(client *ClientSet) ([]nutanixv3.ClusterIntentResponse, error)
- func GetProjectByName(client *ClientSet, name string) (*nutanixv3.Project, error)
- func GetProjects(client *ClientSet) ([]nutanixv3.Project, error)
- func GetSubnetByName(client *ClientSet, name, clusterID string) (*nutanixv3.SubnetIntentResponse, error)
- func GetSubnets(client *ClientSet, clusterName, projectName string) ([]nutanixv3.SubnetIntentResponse, error)
- type ClientSet
- type ErrorResponse
- type ErrorResponseMsg
- type Nutanix
- func (n *Nutanix) CleanUpCloudProvider(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
- func (n *Nutanix) DefaultCloudSpec(spec *kubermaticv1.CloudSpec) error
- func (n *Nutanix) InitializeCloudProvider(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
- func (n *Nutanix) ReconcileCluster(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
- func (n *Nutanix) ValidateCloudSpec(spec kubermaticv1.CloudSpec) error
- func (n *Nutanix) ValidateCloudSpecUpdate(oldSpec kubermaticv1.CloudSpec, newSpec kubermaticv1.CloudSpec) error
Constants ¶
View Source
const ( ClusterCategoryName = "KKPCluster" ProjectCategoryName = "KKPProject" )
Variables ¶
This section is empty.
Functions ¶
func CategoryValue ¶
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 GetProjects ¶ added in v2.19.1
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 ¶
func GetClientSet ¶
func GetClientSet(dc *kubermaticv1.DatacenterSpecNutanix, cloud *kubermaticv1.NutanixCloudSpec, secretKeyGetter provider.SecretKeySelectorValueFunc) (*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 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
Click to show internal directories.
Click to hide internal directories.