Documentation ¶
Index ¶
- Constants
- type BackupCreateRequest
- type BackupsQuery
- type ClusterCreateRequest
- type ClusterMetadata
- type ClusterNetworkPoliciesUpdateRequest
- type ClusterUpdateRequest
- type ClustersQuery
- type FleetsQuery
- type InstanceTypesQuery
- type RestoreClusterBackupRequest
- type RestoreQuery
- type Service
- func (s *Service) CreateCluster(requestBody *ClusterCreateRequest) (*model.TaskResponse, error)
- func (s *Service) CreateClusterBackup(id string, requestBody *BackupCreateRequest) (*model.TaskResponse, error)
- func (s *Service) DeleteCluster(id string) (*model.TaskResponse, error)
- func (s *Service) DeleteClusterBackup(id string) (*model.TaskResponse, error)
- func (s *Service) GetAllClusters(query *ClustersQuery) ([]model.Cluster, error)
- func (s *Service) GetBackup(id string) (*model.ClusterBackup, error)
- func (s *Service) GetCluster(id string) (*model.Cluster, error)
- func (s *Service) GetClusterBackups(query *BackupsQuery) (model.Paged[model.ClusterBackup], error)
- func (s *Service) GetClusterCountByService() ([]model.ClusterCountByService, error)
- func (s *Service) GetClusterMetaData(id string) (*model.ClusterMetaData, error)
- func (s *Service) GetClusterRestores(query RestoreQuery) (model.Paged[model.ClusterRestore], error)
- func (s *Service) GetClusters(query *ClustersQuery) (model.Paged[model.Cluster], error)
- func (s *Service) GetFleetDetails(query *FleetsQuery) (model.Paged[model.SreCustomerInfo], error)
- func (s *Service) GetResourceByService() ([]model.ResourceByService, error)
- func (s *Service) GetServiceExtensions(query *ServiceExtensionsQuery) (model.Paged[model.Extension], error)
- func (s *Service) GetServiceInstanceTypes(serviceTypeQuery *InstanceTypesQuery) (model.InstanceTypeList, error)
- func (s *Service) GetServiceVersions(query *ServiceVersionsQuery) ([]string, error)
- func (s *Service) RestoreClusterBackup(request *RestoreClusterBackupRequest) (model.TaskResponse, error)
- func (s *Service) UpdateCluster(id string, requestBody *ClusterUpdateRequest) (*model.Cluster, error)
- func (s *Service) UpdateClusterNetworkPolicies(id string, requestBody *ClusterNetworkPoliciesUpdateRequest) (*model.TaskResponse, error)
- type ServiceExtensionsQuery
- type ServiceVersionsQuery
Constants ¶
const ( Clusters = "mdsclusters" Monitoring = "mdsmonitoring" Services = "mdsservices" Providers = "provider" InstanceTypes = "instanceTypes" Deployments = "deployments" Dashboard = "dashboard" NetworkPolicy = "networkpolicy" MetaData = "metadata" FleetManagement = "fleet-management" Count = "count" SRE_cluster = "clusters" ResourceByService = "resource-by-service" Mdsfleets = "mdsfleets" Backup = "backup" Restore = "restore" Versions = "versions" Extensions = "extensions" )
const (
EndPoint = "controller"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupCreateRequest ¶ added in v0.0.6
type BackupsQuery ¶ added in v0.0.6
type ClusterCreateRequest ¶
type ClusterCreateRequest struct { Name string `json:"name"` ServiceType string `json:"serviceType"` Provider string `json:"provider"` InstanceSize string `json:"instanceSize"` Region string `json:"region"` Dedicated bool `json:"dedicated"` Tags []string `json:"tags,omitempty"` NetworkPolicyIds []string `json:"networkPolicyIds,omitempty"` DataPlaneId string `json:"dataPlaneId,omitempty"` Version string `json:"version"` StoragePolicyName string `json:"storagePolicyName"` ClusterMetadata ClusterMetadata `json:"clusterMetadata"` }
type ClusterMetadata ¶
type ClusterNetworkPoliciesUpdateRequest ¶
type ClusterNetworkPoliciesUpdateRequest struct {
NetworkPolicyIds []string `json:"networkPolicyIds"`
}
type ClusterUpdateRequest ¶
type ClusterUpdateRequest struct {
Tags []string `json:"tags"`
}
type ClustersQuery ¶
type FleetsQuery ¶ added in v0.0.4
type InstanceTypesQuery ¶
type RestoreClusterBackupRequest ¶ added in v0.0.6
type RestoreClusterBackupRequest struct { Name string `json:"name"` Tags []string `json:"tags"` Provider string `json:"provider"` Version string `json:"version"` NetworkPolicyIds []string `json:"networkPolicyIds"` Region string `json:"region"` InstanceSize string `json:"instanceSize"` ServiceType string `json:"serviceType"` Dedicated bool `json:"dedicated"` StoragePolicyName string `json:"storagePolicyName"` ClusterMetadata ClusterMetadata `json:"clusterMetadata"` }
type RestoreQuery ¶ added in v0.0.5
type Service ¶
func (*Service) CreateCluster ¶
func (s *Service) CreateCluster(requestBody *ClusterCreateRequest) (*model.TaskResponse, error)
CreateCluster - Submits a request to create cluster
func (*Service) CreateClusterBackup ¶ added in v0.0.6
func (s *Service) CreateClusterBackup(id string, requestBody *BackupCreateRequest) (*model.TaskResponse, error)
CreateClusterBackup creates cluster backup
func (*Service) DeleteCluster ¶
func (s *Service) DeleteCluster(id string) (*model.TaskResponse, error)
DeleteCluster - Submits a request to delete cluster
func (*Service) DeleteClusterBackup ¶ added in v0.0.6
func (s *Service) DeleteClusterBackup(id string) (*model.TaskResponse, error)
DeleteClusterBackup Deletes cluster backup
func (*Service) GetAllClusters ¶
func (s *Service) GetAllClusters(query *ClustersQuery) ([]model.Cluster, error)
GetAllClusters - Returns list of all clusters
func (*Service) GetBackup ¶ added in v0.0.6
func (s *Service) GetBackup(id string) (*model.ClusterBackup, error)
GetBackup - Returns the Backup by ID
func (*Service) GetCluster ¶
GetCluster - Returns the cluster by ID
func (*Service) GetClusterBackups ¶ added in v0.0.6
func (s *Service) GetClusterBackups(query *BackupsQuery) (model.Paged[model.ClusterBackup], error)
GetClusterBackups - Returns all the Backups
func (*Service) GetClusterCountByService ¶ added in v0.0.4
func (s *Service) GetClusterCountByService() ([]model.ClusterCountByService, error)
func (*Service) GetClusterMetaData ¶
func (s *Service) GetClusterMetaData(id string) (*model.ClusterMetaData, error)
GetClusterMetaData - Returns the cluster metadata by ID
func (*Service) GetClusterRestores ¶ added in v0.0.5
func (s *Service) GetClusterRestores(query RestoreQuery) (model.Paged[model.ClusterRestore], error)
GetClusterRestores - Returns all the Restore
func (*Service) GetClusters ¶
GetClusters - Returns page of clusters
func (*Service) GetFleetDetails ¶ added in v0.0.4
func (s *Service) GetFleetDetails(query *FleetsQuery) (model.Paged[model.SreCustomerInfo], error)
func (*Service) GetResourceByService ¶ added in v0.0.4
func (s *Service) GetResourceByService() ([]model.ResourceByService, error)
func (*Service) GetServiceExtensions ¶ added in v0.0.7
func (s *Service) GetServiceExtensions(query *ServiceExtensionsQuery) (model.Paged[model.Extension], error)
GetServiceExtensions - Returns all the extensions available
func (*Service) GetServiceInstanceTypes ¶
func (s *Service) GetServiceInstanceTypes(serviceTypeQuery *InstanceTypesQuery) (model.InstanceTypeList, error)
GetServiceInstanceTypes - Returns list of clusters
func (*Service) GetServiceVersions ¶ added in v0.0.6
func (s *Service) GetServiceVersions(query *ServiceVersionsQuery) ([]string, error)
GetServiceVersions - Returns all the versions available for provisioning
func (*Service) RestoreClusterBackup ¶ added in v0.0.6
func (s *Service) RestoreClusterBackup(request *RestoreClusterBackupRequest) (model.TaskResponse, error)
RestoreClusterBackup - Restores a cluster backup
func (*Service) UpdateCluster ¶
func (s *Service) UpdateCluster(id string, requestBody *ClusterUpdateRequest) (*model.Cluster, error)
UpdateCluster - Submits a request to update cluster
func (*Service) UpdateClusterNetworkPolicies ¶
func (s *Service) UpdateClusterNetworkPolicies(id string, requestBody *ClusterNetworkPoliciesUpdateRequest) (*model.TaskResponse, error)
UpdateClusterNetworkPolicies - Submits a request to update cluster network policies
type ServiceExtensionsQuery ¶ added in v0.0.7
type ServiceExtensionsQuery struct {
ServiceType string `schema:"serviceType,omitempty"`
}
Source Files ¶
- paths.go
- query_backups.go
- query_clusters.go
- query_extensions.go
- query_fleets.go
- query_instance_types.go
- query_restore.go
- query_versions.go
- request_create_cluster.go
- request_create_cluster_backup.go
- request_restore_cluster_backup.go
- request_update_cluster.go
- request_update_cluster_network_policies.go
- service.go