clientbrownfield

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const APIPathBlueprintCloudAccount = "/brownfield/cloud_accounts/%s"
View Source
const APIPathBlueprintCloudAccountImportFloatingIPs = "/brownfield/cloud_accounts/%s/import_floating_ips"
View Source
const APIPathBlueprintCloudAccountImportKubernetesClusters = "/brownfield/cloud_accounts/%s/import_kubernetes_clusters"
View Source
const APIPathBlueprintCloudAccountImportPolicies = "/brownfield/cloud_accounts/%s/import_policies"
View Source
const APIPathBlueprintCloudAccountImportServers = "/brownfield/cloud_accounts/%s/import_servers"
View Source
const APIPathBlueprintCloudAccountImportVolumes = "/brownfield/cloud_accounts/%s/import_volumes"
View Source
const APIPathBlueprintCloudAccountImportVpcs = "/brownfield/cloud_accounts/%s/import_vpcs"
View Source
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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL