Documentation
¶
Index ¶
- Constants
- type CertificateCreateRequest
- type CertificateQuery
- type CertificateUpdateRequest
- type CloudAccountCreateRequest
- type CloudAccountUpdateRequest
- type CloudAccountsQuery
- type CredentialModel
- type DataPlaneCreateRequest
- type DataPlaneQuery
- type DataPlaneRegionsQuery
- type ObjectStorageCreateRequest
- type ObjectStorageQuery
- type ObjectStorageUpdateRequest
- type Service
- func (s *Service) CreateCertificate(requestBody *CertificateCreateRequest) (*model.Certificate, error)
- func (s *Service) CreateCloudAccount(requestBody *CloudAccountCreateRequest) (*model.CloudAccount, error)
- func (s *Service) CreateDataPlane(requestBody *DataPlaneCreateRequest) (*model.TaskResponse, error)
- func (s *Service) CreateObjectStorage(requestBody *ObjectStorageCreateRequest) (*model.ObjectStorage, error)
- func (s *Service) DeleteCertificate(id string) error
- func (s *Service) DeleteCloudAccount(id string) error
- func (s *Service) DeleteDataPlane(id string) error
- func (s *Service) DeleteObjectStorage(id string) error
- func (s *Service) GetCertificate(id string) (model.Certificate, error)
- func (s *Service) GetCertificates(query *CertificateQuery) (model.Paged[model.Certificate], error)
- func (s *Service) GetCloudAccount(id string) (*model.CloudAccount, error)
- func (s *Service) GetCloudAccounts(query *CloudAccountsQuery) (model.Paged[model.CloudAccount], error)
- func (s *Service) GetDataPlaneById(id string) (model.DataPlane, error)
- func (s *Service) GetDataPlaneRegions() ([]model.DataPlaneRegion, error)
- func (s *Service) GetDataPlanes(query *DataPlaneQuery) (model.Paged[model.DataPlane], error)
- func (s *Service) GetObjectStorage(id string) (model.ObjectStorage, error)
- func (s *Service) GetObjectStorages(query *ObjectStorageQuery) (model.Paged[model.ObjectStorage], error)
- func (s *Service) GetProviderTypes() ([]string, error)
- func (s *Service) GetRegionsWithDataPlanes(regionsQuery *DataPlaneRegionsQuery) (map[string][]string, error)
- func (s *Service) GetTshirtSizes(query *TshirtSizesQuery) (model.Paged[model.TshirtSize], error)
- func (s *Service) UpdateCertificate(id string, requestBody *CertificateUpdateRequest) (*model.Certificate, error)
- func (s *Service) UpdateCloudAccount(id string, requestBody *CloudAccountUpdateRequest) error
- func (s *Service) UpdateObjectStore(id string, requestBody *ObjectStorageUpdateRequest) (*model.ObjectStorage, error)
- type TshirtSizesQuery
Constants ¶
View Source
const ( K8sCluster = "k8s-cluster" Resource = "resource" CloudAccount = "account" Types = "types" CloudProviders = "cloud-providers" TshirtSize = "t-shirt-size" Certificate = "certificate" Internal = "internal" ObjectStore = "objectstore" )
View Source
const (
EndPoint = "infra-connector"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateQuery ¶
type CloudAccountCreateRequest ¶
type CloudAccountCreateRequest struct { ProviderType string `json:"type"` Name string `json:"name"` Credentials CredentialModel `json:"credentials"` Tags []string `json:"tags"` }
type CloudAccountUpdateRequest ¶
type CloudAccountUpdateRequest struct { Credentials CredentialModel `json:"credentials"` Tags []string `json:"tags"` }
type CloudAccountsQuery ¶
type CredentialModel ¶
type CredentialModel struct { // gcp credentials Type string `json:"type,omitempty"` ProjectId string `json:"project_id,omitempty"` PrivateKeyId string `json:"private_key_id,omitempty"` PrivateKey string `json:"private_key,omitempty"` ClientEmail string `json:"client_email,omitempty"` ClientId string `json:"client_id,omitempty"` AuthUri string `json:"auth_uri,omitempty"` TokenUri string `json:"token_uri,omitempty"` AuthProviderX509CertUrl string `json:"auth_provider_x509_cert_url,omitempty"` ClientX509CertUrl string `json:"client_x509_cert_url,omitempty"` // aws credentials ACCESSKEYID string `json:"ACCESS_KEY_ID,omitempty"` SECRETACCESSKEY string `json:"SECRET_ACCESS_KEY,omitempty"` TargetAmazonAccountId string `json:"targetAmazonAccountId,omitempty"` PowerUserRoleNameInTargetAccount string `json:"powerUserRoleNameInTargetAccount,omitempty"` // vrli credentials ApiEndpoint string `json:"apiEndpoint,omitempty"` ApiKey string `json:"apiKey,omitempty"` // TKGS credentials Username string `json:"userName,omitempty"` Password string `json:"password,omitempty"` SupervisorMgmtIP string `json:"supervisorManagementIP,omitempty"` VsphereNamespace string `json:"vsphereNamespace,omitempty"` // TKGM credentials KubeConfigBase64 string `json:"kubeconfigBase64,omitempty"` // Openshift credentials //Username string `json:"userName,omitempty"` //Password string `json:"password,omitempty"` Domain string `json:"domain,omitempty"` // TAS credentials //Username string `json:"userName,omitempty"` //Password string `json:"password,omitempty"` OperationManagerIP string `json:"operationManagerIp,omitempty"` CfUsername string `json:"cfUserName,omitempty"` CfPassword string `json:"cfPassword,omitempty"` CfApiHost string `json:"cfApiHost,omitempty"` }
type DataPlaneCreateRequest ¶
type DataPlaneQuery ¶
type DataPlaneRegionsQuery ¶
type ObjectStorageQuery ¶
type Service ¶
func (*Service) CreateCertificate ¶
func (s *Service) CreateCertificate(requestBody *CertificateCreateRequest) (*model.Certificate, error)
func (*Service) CreateCloudAccount ¶
func (s *Service) CreateCloudAccount(requestBody *CloudAccountCreateRequest) (*model.CloudAccount, error)
func (*Service) CreateDataPlane ¶
func (s *Service) CreateDataPlane(requestBody *DataPlaneCreateRequest) (*model.TaskResponse, error)
CreateDataPlane - Submits a request to create dataplane
func (*Service) CreateObjectStorage ¶
func (s *Service) CreateObjectStorage(requestBody *ObjectStorageCreateRequest) (*model.ObjectStorage, error)
func (*Service) DeleteCertificate ¶
DeleteCertificate - Submits a request to delete certificate
func (*Service) DeleteCloudAccount ¶
DeleteCloudAccount - Submits a request to delete cloud account
func (*Service) DeleteDataPlane ¶
DeleteDataPlane - Submits a request to delete dataplane
func (*Service) DeleteObjectStorage ¶
DeleteObjectStorage - Submits a request to delete object storage
func (*Service) GetCertificate ¶
func (s *Service) GetCertificate(id string) (model.Certificate, error)
func (*Service) GetCertificates ¶
func (s *Service) GetCertificates(query *CertificateQuery) (model.Paged[model.Certificate], error)
func (*Service) GetCloudAccount ¶
func (s *Service) GetCloudAccount(id string) (*model.CloudAccount, error)
GetCloudAccount - Submits a request to fetch cloud account
func (*Service) GetCloudAccounts ¶
func (s *Service) GetCloudAccounts(query *CloudAccountsQuery) (model.Paged[model.CloudAccount], error)
func (*Service) GetDataPlaneById ¶
func (*Service) GetDataPlaneRegions ¶
func (s *Service) GetDataPlaneRegions() ([]model.DataPlaneRegion, error)
func (*Service) GetDataPlanes ¶
func (*Service) GetObjectStorage ¶
func (s *Service) GetObjectStorage(id string) (model.ObjectStorage, error)
func (*Service) GetObjectStorages ¶
func (s *Service) GetObjectStorages(query *ObjectStorageQuery) (model.Paged[model.ObjectStorage], error)
func (*Service) GetProviderTypes ¶
func (*Service) GetRegionsWithDataPlanes ¶
func (s *Service) GetRegionsWithDataPlanes(regionsQuery *DataPlaneRegionsQuery) (map[string][]string, error)
func (*Service) GetTshirtSizes ¶
func (s *Service) GetTshirtSizes(query *TshirtSizesQuery) (model.Paged[model.TshirtSize], error)
func (*Service) UpdateCertificate ¶
func (s *Service) UpdateCertificate(id string, requestBody *CertificateUpdateRequest) (*model.Certificate, error)
func (*Service) UpdateCloudAccount ¶
func (s *Service) UpdateCloudAccount(id string, requestBody *CloudAccountUpdateRequest) error
UpdateCloudAccount - To Update the cloud account
func (*Service) UpdateObjectStore ¶
func (s *Service) UpdateObjectStore(id string, requestBody *ObjectStorageUpdateRequest) (*model.ObjectStorage, error)
type TshirtSizesQuery ¶
Click to show internal directories.
Click to hide internal directories.