client

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudClient

type CloudClient interface {
	ListEnvironments(orgId string) ([]cac.EnvironmentOutput, error)
	CreateEnvironment(orgId string, params cac.EnvironmentInput) (*cac.EnvironmentOutput, error)
	DestroyEnvironment(orgId, envId string) error

	ListOrgs() ([]cac.OrganizationOutput, error)
	CreateOrg(orgId string, params cac.OrganizationInput) (*cac.OrganizationOutput, error)
	FindOrg(orgId string) (*cac.OrganizationOutput, error)

	ListAssetBundles(orgId, envId string) ([]cac.AssetBundle, error)
	CreateAsset(orgId, envId string, params cac.AssetInput) (*cac.AssetOutput, error)
	ListAssets(orgId, envId string) ([]cac.AssetOutput, error)
	DescribeAsset(orgId, envId, assetId string) (*cac.AssetOutput, error)
	//ListAssetTypesForEnvironment(envId string) error
	// UpdateAsset(orgId string, envId string, assetID string, assetInput *client.AssetInput) error
	DestroyAsset(orgId, envId, assetID string) error

	ListOperationsByAsset(orgId, assetId string) ([]cac.OperationOutput, error)

	CreateConnection(orgId, envId, assetId string, params cac.ConnectionInput) (*cac.ConnectionOutput, error)
	// DescribeConnection(orgId, envId, assetId, connectionId string) (cac.ConnectionOutput, error)
	DestroyConnection(orgId, envId, assetId, connectionId string) error
}

CloudClient The goal of this interface is to be an abstraction layer above the cloud-api. Whenever we want to interface with the API, we should use this interface.

func NewClient

func NewClient(debug bool, host string, token string) CloudClient

NewClient - generate a new cloud api cloud_api_client

Jump to

Keyboard shortcuts

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