Documentation ¶
Index ¶
- Constants
- func CategoryValue(clusterName string) string
- func GetCategories(ctx context.Context, client *ClientSet) ([]nutanixv3.CategoryKeyStatus, error)
- func GetCategoryValues(ctx context.Context, client *ClientSet, category string) ([]nutanixv3.CategoryValueStatus, error)
- func GetClusterByName(ctx context.Context, client *ClientSet, name string) (*nutanixv3.ClusterIntentResponse, error)
- func GetClusters(ctx context.Context, client *ClientSet) ([]nutanixv3.ClusterIntentResponse, error)
- func GetProjectByName(ctx context.Context, client *ClientSet, name string) (*nutanixv3.Project, error)
- func GetProjects(ctx context.Context, client *ClientSet) ([]nutanixv3.Project, error)
- func GetSubnetByName(ctx context.Context, client *ClientSet, name, clusterID string) (*nutanixv3.SubnetIntentResponse, error)
- func GetSubnets(ctx context.Context, client *ClientSet, clusterName, projectName string) ([]nutanixv3.SubnetIntentResponse, error)
- func ValidateCredentials(ctx context.Context, endpoint string, port *int32, allowInsecure *bool, ...) error
- type ClientSet
- type ErrorResponse
- type ErrorResponseMsg
- type Nutanix
- func (n *Nutanix) CleanUpCloudProvider(ctx context.Context, cluster *kubermaticv1.Cluster, ...) (*kubermaticv1.Cluster, error)
- func (n *Nutanix) DefaultCloudSpec(_ context.Context, spec *kubermaticv1.CloudSpec) error
- func (n *Nutanix) InitializeCloudProvider(ctx context.Context, cluster *kubermaticv1.Cluster, ...) (*kubermaticv1.Cluster, error)
- func (n *Nutanix) ReconcileCluster(ctx context.Context, cluster *kubermaticv1.Cluster, ...) (*kubermaticv1.Cluster, error)
- func (n *Nutanix) ValidateCloudSpec(ctx context.Context, spec kubermaticv1.CloudSpec) error
- func (n *Nutanix) ValidateCloudSpecUpdate(_ context.Context, oldSpec kubermaticv1.CloudSpec, ...) error
Constants ¶
View Source
const ( ClusterCategoryName = "KKPCluster" ProjectCategoryName = "KKPProject" DefaultProject = "default" )
Variables ¶
This section is empty.
Functions ¶
func CategoryValue ¶
func GetCategories ¶ added in v2.21.0
func GetCategoryValues ¶ added in v2.21.0
func GetClusterByName ¶
func GetClusters ¶ added in v2.19.1
func GetProjectByName ¶
func GetProjects ¶ added in v2.19.1
func GetSubnetByName ¶
func GetSubnets ¶ added in v2.19.1
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(ctx context.Context, cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
func (*Nutanix) DefaultCloudSpec ¶
func (*Nutanix) InitializeCloudProvider ¶
func (n *Nutanix) InitializeCloudProvider(ctx context.Context, cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
func (*Nutanix) ReconcileCluster ¶
func (n *Nutanix) ReconcileCluster(ctx context.Context, cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
func (*Nutanix) ValidateCloudSpec ¶
func (*Nutanix) ValidateCloudSpecUpdate ¶
func (n *Nutanix) ValidateCloudSpecUpdate(_ context.Context, oldSpec kubermaticv1.CloudSpec, newSpec kubermaticv1.CloudSpec) error
Click to show internal directories.
Click to hide internal directories.