Documentation ¶
Index ¶
- Constants
- func GetBrownfieldCloudAccountFailErrMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func GetBrownfieldCloudAccountFailJSONMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func GetBrownfieldCloudAccountFailStatusMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func GetBrownfieldCloudAccountMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportFloatingIPsFailErrMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportFloatingIPsFailJSONMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportFloatingIPsFailStatusMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportFloatingIPsMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportKubernetesClustersFailErrMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportKubernetesClustersFailJSONMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportKubernetesClustersFailStatusMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportKubernetesClustersMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportPoliciesFailErrMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportPoliciesFailJSONMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportPoliciesFailStatusMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportPoliciesMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportServersFailErrMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportServersFailJSONMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportServersFailStatusMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportServersMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportVPCsFailErrMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportVPCsFailJSONMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportVPCsFailStatusMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportVPCsMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportVolumesFailErrMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportVolumesFailJSONMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportVolumesFailStatusMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ImportVolumesMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
- func ListBrownfieldCloudAccountsFailErrMocked(t *testing.T, cloudAccountsIn []*types.CloudAccount) []*types.CloudAccount
- func ListBrownfieldCloudAccountsFailJSONMocked(t *testing.T, cloudAccountsIn []*types.CloudAccount) []*types.CloudAccount
- func ListBrownfieldCloudAccountsFailStatusMocked(t *testing.T, cloudAccountsIn []*types.CloudAccount) []*types.CloudAccount
- func ListBrownfieldCloudAccountsMocked(t *testing.T, cloudAccountsIn []*types.CloudAccount) []*types.CloudAccount
- type BrownfieldCloudAccountService
- type ImportService
- func (is *ImportService) ImportFloatingIPs(cloudAccountID string, params *map[string]interface{}) (cloudAccount *types.CloudAccount, err error)
- func (is *ImportService) ImportKubernetesClusters(cloudAccountID string, params *map[string]interface{}) (cloudAccount *types.CloudAccount, err error)
- func (is *ImportService) ImportPolicies(cloudAccountID string, params *map[string]interface{}) (cloudAccount *types.CloudAccount, err error)
- func (is *ImportService) ImportServers(cloudAccountID string, params *map[string]interface{}) (cloudAccount *types.CloudAccount, err error)
- func (is *ImportService) ImportVPCs(cloudAccountID string, params *map[string]interface{}) (cloudAccount *types.CloudAccount, err error)
- func (is *ImportService) ImportVolumes(cloudAccountID string, params *map[string]interface{}) (cloudAccount *types.CloudAccount, err error)
Constants ¶
const APIPathBlueprintCloudAccount = "/brownfield/cloud_accounts/%s"
const APIPathBlueprintCloudAccountImportFloatingIPs = "/brownfield/cloud_accounts/%s/import_floating_ips"
const APIPathBlueprintCloudAccountImportKubernetesClusters = "/brownfield/cloud_accounts/%s/import_kubernetes_clusters"
const APIPathBlueprintCloudAccountImportPolicies = "/brownfield/cloud_accounts/%s/import_policies"
const APIPathBlueprintCloudAccountImportServers = "/brownfield/cloud_accounts/%s/import_servers"
const APIPathBlueprintCloudAccountImportVolumes = "/brownfield/cloud_accounts/%s/import_volumes"
const APIPathBlueprintCloudAccountImportVpcs = "/brownfield/cloud_accounts/%s/import_vpcs"
const APIPathBlueprintCloudAccounts = "/brownfield/cloud_accounts"
Variables ¶
This section is empty.
Functions ¶
func GetBrownfieldCloudAccountFailErrMocked ¶
func GetBrownfieldCloudAccountFailErrMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
GetBrownfieldCloudAccountFailErrMocked test mocked function
func GetBrownfieldCloudAccountFailJSONMocked ¶
func GetBrownfieldCloudAccountFailJSONMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
GetBrownfieldCloudAccountFailJSONMocked test mocked function
func GetBrownfieldCloudAccountFailStatusMocked ¶
func GetBrownfieldCloudAccountFailStatusMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
GetBrownfieldCloudAccountFailStatusMocked test mocked function
func GetBrownfieldCloudAccountMocked ¶
func GetBrownfieldCloudAccountMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
GetBrownfieldCloudAccountMocked test mocked function
func ImportFloatingIPsFailErrMocked ¶ added in v0.13.0
func ImportFloatingIPsFailErrMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportFloatingIPsFailErrMocked test mocked function
func ImportFloatingIPsFailJSONMocked ¶ added in v0.13.0
func ImportFloatingIPsFailJSONMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportFloatingIPsFailJSONMocked test mocked function
func ImportFloatingIPsFailStatusMocked ¶ added in v0.13.0
func ImportFloatingIPsFailStatusMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportFloatingIPsFailStatusMocked test mocked function
func ImportFloatingIPsMocked ¶ added in v0.13.0
func ImportFloatingIPsMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportFloatingIPsMocked test mocked function
func ImportKubernetesClustersFailErrMocked ¶ added in v0.13.0
func ImportKubernetesClustersFailErrMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportKubernetesClustersFailErrMocked test mocked function
func ImportKubernetesClustersFailJSONMocked ¶ added in v0.13.0
func ImportKubernetesClustersFailJSONMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportKubernetesClustersFailJSONMocked test mocked function
func ImportKubernetesClustersFailStatusMocked ¶ added in v0.13.0
func ImportKubernetesClustersFailStatusMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportKubernetesClustersFailStatusMocked test mocked function
func ImportKubernetesClustersMocked ¶ added in v0.13.0
func ImportKubernetesClustersMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportKubernetesClustersMocked test mocked function
func ImportPoliciesFailErrMocked ¶ added in v0.13.0
func ImportPoliciesFailErrMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportPoliciesFailErrMocked test mocked function
func ImportPoliciesFailJSONMocked ¶ added in v0.13.0
func ImportPoliciesFailJSONMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportPoliciesFailJSONMocked test mocked function
func ImportPoliciesFailStatusMocked ¶ added in v0.13.0
func ImportPoliciesFailStatusMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportPoliciesFailStatusMocked test mocked function
func ImportPoliciesMocked ¶ added in v0.13.0
func ImportPoliciesMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
ImportPoliciesMocked test mocked function
func ImportServersFailErrMocked ¶ added in v0.13.0
func ImportServersFailErrMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportServersFailErrMocked test mocked function
func ImportServersFailJSONMocked ¶ added in v0.13.0
func ImportServersFailJSONMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportServersFailJSONMocked test mocked function
func ImportServersFailStatusMocked ¶ added in v0.13.0
func ImportServersFailStatusMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportServersFailStatusMocked test mocked function
func ImportServersMocked ¶ added in v0.13.0
func ImportServersMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
ImportServersMocked test mocked function
func ImportVPCsFailErrMocked ¶ added in v0.13.0
func ImportVPCsFailErrMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportVPCsFailErrMocked test mocked function
func ImportVPCsFailJSONMocked ¶ added in v0.13.0
func ImportVPCsFailJSONMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportVPCsFailJSONMocked test mocked function
func ImportVPCsFailStatusMocked ¶ added in v0.13.0
func ImportVPCsFailStatusMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportVPCsFailStatusMocked test mocked function
func ImportVPCsMocked ¶ added in v0.13.0
func ImportVPCsMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
ImportVPCsMocked test mocked function
func ImportVolumesFailErrMocked ¶ added in v0.13.0
func ImportVolumesFailErrMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportVolumesFailErrMocked test mocked function
func ImportVolumesFailJSONMocked ¶ added in v0.13.0
func ImportVolumesFailJSONMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportVolumesFailJSONMocked test mocked function
func ImportVolumesFailStatusMocked ¶ added in v0.13.0
func ImportVolumesFailStatusMocked( t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string, ) *types.CloudAccount
ImportVolumesFailStatusMocked test mocked function
func ImportVolumesMocked ¶ added in v0.13.0
func ImportVolumesMocked(t *testing.T, cloudAccountIn *types.CloudAccount, cloudAccountID string) *types.CloudAccount
ImportVolumesMocked test mocked function
func ListBrownfieldCloudAccountsFailErrMocked ¶
func ListBrownfieldCloudAccountsFailErrMocked( t *testing.T, cloudAccountsIn []*types.CloudAccount, ) []*types.CloudAccount
ListBrownfieldCloudAccountsFailErrMocked test mocked function
func ListBrownfieldCloudAccountsFailJSONMocked ¶
func ListBrownfieldCloudAccountsFailJSONMocked( t *testing.T, cloudAccountsIn []*types.CloudAccount, ) []*types.CloudAccount
ListBrownfieldCloudAccountsFailJSONMocked test mocked function
func ListBrownfieldCloudAccountsFailStatusMocked ¶
func ListBrownfieldCloudAccountsFailStatusMocked( t *testing.T, cloudAccountsIn []*types.CloudAccount, ) []*types.CloudAccount
ListBrownfieldCloudAccountsFailStatusMocked test mocked function
func ListBrownfieldCloudAccountsMocked ¶
func ListBrownfieldCloudAccountsMocked(t *testing.T, cloudAccountsIn []*types.CloudAccount) []*types.CloudAccount
ListBrownfieldCloudAccountsMocked test mocked function
Types ¶
type BrownfieldCloudAccountService ¶
type BrownfieldCloudAccountService struct {
// contains filtered or unexported fields
}
BrownfieldCloudAccountService manages brownfield cloud account operations
func NewBrownfieldCloudAccountService ¶
func NewBrownfieldCloudAccountService(concertoService utils.ConcertoService) (*BrownfieldCloudAccountService, error)
NewBrownfieldCloudAccountService returns a Concerto BrownfieldCloudAccount service
func (*BrownfieldCloudAccountService) GetBrownfieldCloudAccount ¶
func (bcas *BrownfieldCloudAccountService) GetBrownfieldCloudAccount( cloudAccountID string, ) (cloudAccount *types.CloudAccount, err error)
GetBrownfieldCloudAccount returns a Brownfield Cloud Account by its ID
func (*BrownfieldCloudAccountService) ListBrownfieldCloudAccounts ¶
func (bcas *BrownfieldCloudAccountService) ListBrownfieldCloudAccounts() ( cloudAccounts []*types.CloudAccount, err error, )
ListBrownfieldCloudAccounts returns the list of Brownfield Cloud Accounts as an array of CloudAccount
type ImportService ¶ added in v0.13.0
type ImportService struct {
// contains filtered or unexported fields
}
ImportService manages brownfield import operations
func NewImportService ¶ added in v0.13.0
func NewImportService(concertoService utils.ConcertoService) (*ImportService, error)
NewImportService returns a Concerto Import service
func (*ImportService) ImportFloatingIPs ¶ added in v0.13.0
func (is *ImportService) ImportFloatingIPs( cloudAccountID string, params *map[string]interface{}, ) (cloudAccount *types.CloudAccount, err error)
ImportFloatingIPs imports brownfield floating ips
func (*ImportService) ImportKubernetesClusters ¶ added in v0.13.0
func (is *ImportService) ImportKubernetesClusters( cloudAccountID string, params *map[string]interface{}, ) (cloudAccount *types.CloudAccount, err error)
ImportKubernetesClusters imports brownfield kubernetes clusters
func (*ImportService) ImportPolicies ¶ added in v0.13.0
func (is *ImportService) ImportPolicies( cloudAccountID string, params *map[string]interface{}, ) (cloudAccount *types.CloudAccount, err error)
ImportPolicies imports brownfield policies
func (*ImportService) ImportServers ¶ added in v0.13.0
func (is *ImportService) ImportServers( cloudAccountID string, params *map[string]interface{}, ) (cloudAccount *types.CloudAccount, err error)
ImportServers imports brownfield servers
func (*ImportService) ImportVPCs ¶ added in v0.13.0
func (is *ImportService) ImportVPCs( cloudAccountID string, params *map[string]interface{}, ) (cloudAccount *types.CloudAccount, err error)
ImportVPCs imports brownfield vpcs
func (*ImportService) ImportVolumes ¶ added in v0.13.0
func (is *ImportService) ImportVolumes( cloudAccountID string, params *map[string]interface{}, ) (cloudAccount *types.CloudAccount, err error)
ImportVolumes imports brownfield volumes