Documentation
¶
Index ¶
- type CloudAliyunK8s
- type CloudAzureK8s
- type CloudQcloudK8s
- type ExternalK8s
- type ExternalOpenshift
- func (d *ExternalOpenshift) GetClusterUserGroups(cluster *models.SCluster, config *rest.Config) ([]api.ClusterUserGroup, error)
- func (d *ExternalOpenshift) GetClusterUsers(cluster *models.SCluster, config *rest.Config) ([]api.ClusterUser, error)
- func (d ExternalOpenshift) GetDistribution() string
- func (d *ExternalOpenshift) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- type ICloudImportDriver
- type IImportDriver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudAliyunK8s ¶
type CloudAliyunK8s struct {
// contains filtered or unexported fields
}
func NewCloudAliyunK8s ¶
func NewCloudAliyunK8s() *CloudAliyunK8s
func (CloudAliyunK8s) GetProvider ¶
func (d CloudAliyunK8s) GetProvider() api.ProviderType
func (CloudAliyunK8s) ValidateCreateData ¶
func (d CloudAliyunK8s) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, input *api.ClusterCreateInput, config *rest.Config) error
type CloudAzureK8s ¶
type CloudAzureK8s struct {
// contains filtered or unexported fields
}
func NewCloudAzureK8s ¶
func NewCloudAzureK8s() *CloudAzureK8s
func (CloudAzureK8s) GetProvider ¶
func (d CloudAzureK8s) GetProvider() api.ProviderType
func (CloudAzureK8s) ValidateCreateData ¶
func (d CloudAzureK8s) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, input *api.ClusterCreateInput, config *rest.Config) error
type CloudQcloudK8s ¶
type CloudQcloudK8s struct {
// contains filtered or unexported fields
}
func NewCloudQcloudK8s ¶
func NewCloudQcloudK8s() *CloudQcloudK8s
func (CloudQcloudK8s) GetProvider ¶
func (d CloudQcloudK8s) GetProvider() api.ProviderType
func (CloudQcloudK8s) ValidateCreateData ¶
func (d CloudQcloudK8s) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, input *api.ClusterCreateInput, config *rest.Config) error
type ExternalK8s ¶
type ExternalK8s struct {
// contains filtered or unexported fields
}
func NewExternalK8s ¶
func NewExternalK8s() *ExternalK8s
type ExternalOpenshift ¶
type ExternalOpenshift struct {
// contains filtered or unexported fields
}
func NewExternalOpenshift ¶
func NewExternalOpenshift() *ExternalOpenshift
func (*ExternalOpenshift) GetClusterUserGroups ¶
func (d *ExternalOpenshift) GetClusterUserGroups(cluster *models.SCluster, config *rest.Config) ([]api.ClusterUserGroup, error)
func (*ExternalOpenshift) GetClusterUsers ¶
func (d *ExternalOpenshift) GetClusterUsers(cluster *models.SCluster, config *rest.Config) ([]api.ClusterUser, error)
func (ExternalOpenshift) GetDistribution ¶
func (d ExternalOpenshift) GetDistribution() string
func (*ExternalOpenshift) ValidateCreateData ¶
func (d *ExternalOpenshift) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, input *api.ClusterCreateInput, config *rest.Config) error
type ICloudImportDriver ¶
type ICloudImportDriver interface { IImportDriver GetProvider() api.ProviderType }
type IImportDriver ¶
type IImportDriver interface { GetDistribution() string ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, input *api.ClusterCreateInput, config *rest.Config) error // GetClusterUsers query users resource from remote k8s cluster GetClusterUsers(cluster *models.SCluster, restCfg *rest.Config) ([]api.ClusterUser, error) // GetClusterUserGroups query groups resource from remote k8s cluster GetClusterUserGroups(cluster *models.SCluster, restCfg *rest.Config) ([]api.ClusterUserGroup, error) }
Click to show internal directories.
Click to hide internal directories.