Documentation
¶
Index ¶
- Constants
- type ComputeOffering
- type ComputeOfferingApi
- type ComputeOfferingService
- type DiskOffering
- type DiskOfferingApi
- type DiskOfferingService
- type Instance
- type InstanceApi
- func (instanceApi *InstanceApi) AssociateSSHKey(id string, sshKeyName string) (bool, error)
- func (instanceApi *InstanceApi) ChangeComputeOffering(id string, newComputeOfferingId string) (bool, error)
- func (instanceApi *InstanceApi) Create(instance Instance) (*Instance, error)
- func (instanceApi *InstanceApi) CreateRecoveryPoint(id string, recoveryPoint RecoveryPoint) (bool, error)
- func (instanceApi *InstanceApi) Destroy(id string, purge bool) (bool, error)
- func (instanceApi *InstanceApi) Exists(id string) (bool, error)
- func (instanceApi *InstanceApi) Get(id string) (*Instance, error)
- func (instanceApi *InstanceApi) List() ([]Instance, error)
- func (instanceApi *InstanceApi) ListWithOptions(options map[string]string) ([]Instance, error)
- func (instanceApi *InstanceApi) Purge(id string) (bool, error)
- func (instanceApi *InstanceApi) Reboot(id string) (bool, error)
- func (instanceApi *InstanceApi) Recover(id string) (bool, error)
- func (instanceApi *InstanceApi) ResetPassword(id string) (string, error)
- func (instanceApi *InstanceApi) Start(id string) (bool, error)
- func (instanceApi *InstanceApi) Stop(id string) (bool, error)
- type InstanceService
- type NetworkAcl
- type NetworkAclApi
- func (networkAclApi *NetworkAclApi) Get(id string) (*NetworkAcl, error)
- func (networkAclApi *NetworkAclApi) List() ([]NetworkAcl, error)
- func (networkAclApi *NetworkAclApi) ListByVpcId(vpcId string) ([]NetworkAcl, error)
- func (networkAclApi *NetworkAclApi) ListWithOptions(options map[string]string) ([]NetworkAcl, error)
- type NetworkAclService
- type NetworkOffering
- type NetworkOfferingApi
- type NetworkOfferingService
- type PortForwardingRule
- type PortForwardingRuleApi
- func (api PortForwardingRuleApi) Create(pfr PortForwardingRule) (*PortForwardingRule, error)
- func (api PortForwardingRuleApi) Delete(id string) (bool, error)
- func (api PortForwardingRuleApi) Get(id string) (*PortForwardingRule, error)
- func (api PortForwardingRuleApi) List() ([]PortForwardingRule, error)
- func (api PortForwardingRuleApi) ListWithOptions(options map[string]string) ([]PortForwardingRule, error)
- type PortForwardingRuleService
- type PublicIp
- type PublicIpApi
- func (publicIpApi *PublicIpApi) Acquire(publicIp PublicIp) (*PublicIp, error)
- func (publicIpApi *PublicIpApi) DisableStaticNat(id string) (bool, error)
- func (publicIpApi *PublicIpApi) EnableStaticNat(publicIp PublicIp) (bool, error)
- func (publicIpApi *PublicIpApi) Get(id string) (*PublicIp, error)
- func (publicIpApi *PublicIpApi) List() ([]PublicIp, error)
- func (publicIpApi *PublicIpApi) ListWithOptions(options map[string]string) ([]PublicIp, error)
- func (publicIpApi *PublicIpApi) Release(id string) (bool, error)
- type PublicIpService
- type RecoveryPoint
- type Resources
- type SSHKey
- type SSHKeyApi
- type SSHKeyService
- type Service
- type Template
- type TemplateApi
- type TemplateService
- type Tier
- type TierApi
- func (tierApi *TierApi) ChangeAcl(id string, aclId string) (bool, error)
- func (tierApi *TierApi) Create(tier Tier, options map[string]string) (*Tier, error)
- func (tierApi *TierApi) Delete(id string) (bool, error)
- func (tierApi *TierApi) Get(id string) (*Tier, error)
- func (tierApi *TierApi) List() ([]Tier, error)
- func (tierApi *TierApi) ListOfVpc(vpcId string) ([]Tier, error)
- func (tierApi *TierApi) ListWithOptions(options map[string]string) ([]Tier, error)
- func (tierApi *TierApi) Update(id string, tier Tier) (*Tier, error)
- type TierService
- type Volume
- type VolumeApi
- type VolumeService
- type Vpc
- type VpcApi
- func (vpcApi *VpcApi) Create(vpc Vpc) (*Vpc, error)
- func (vpcApi *VpcApi) Destroy(id string) (bool, error)
- func (vpcApi *VpcApi) Get(id string) (*Vpc, error)
- func (vpcApi *VpcApi) List() ([]Vpc, error)
- func (vpcApi *VpcApi) ListWithOptions(options map[string]string) ([]Vpc, error)
- func (vpcApi *VpcApi) RestartRouter(id string) (bool, error)
- func (vpcApi *VpcApi) Update(vpc Vpc) (*Vpc, error)
- type VpcOffering
- type VpcOfferingApi
- type VpcOfferingService
- type VpcService
Constants ¶
const ( INSTANCE_ENTITY_TYPE = "instances" VOLUME_ENTITY_TYPE = "volumes" TEMPLATE_ENTITY_TYPE = "templates" TIER_ENTITY_TYPE = "tiers" COMPUTE_OFFERING_ENTITY_TYPE = "computeofferings" DISK_OFFERING_ENTITY_TYPE = "diskofferings" SSH_KEY_ENTITY_TYPE = "sshkeys" VPC_ENTITY_TYPE = "vpcs" VPC_OFFERING_ENTITY_TYPE = "vpcofferings" NETWORK_OFFERING_ENTITY_TYPE = "networkofferings" NETWORK_ACL_ENTITY_TYPE = "networkacls" PORT_FORWARDING_RULE_ENTITY_TYPE = "portforwardingrules" PUBLIC_IP_ENTITY_TYPE = "publicipaddresses" )
All entity types for the cloudca service
const ( INSTANCE_STATE_RUNNING = "Running" INSTANCE_STATE_STOPPED = "Stopped" )
const ( INSTANCE_START_OPERATION = "start" INSTANCE_STOP_OPERATION = "stop" INSTANCE_REBOOT_OPERATION = "reboot" INSTANCE_RECOVER_OPERATION = "recover" INSTANCE_PURGE_OPERATION = "purge" INSTANCE_RESET_PASSWORD_OPERATION = "resetPassword" INSTANCE_CREATE_RECOVERY_POINT_OPERATION = "createRecoveryPoint" INSTANCE_CHANGE_COMPUTE_OFFERING_OPERATION = "changeComputeOffering" INSTANCE_ASSOCIATE_SSH_KEY_OPERATION = "associateSSHKey" )
const ( PFR_CREATE = "create" PFR_DELETE = "delete" )
const ( PUBLIC_IP_ENABLE_STATIC_NAT_OPERATION = "enableStaticNat" PUBLIC_IP_DISABLE_STATIC_NAT_OPERATION = "disableStaticNat" )
const ( VOLUME_TYPE_OS = "OS" VOLUME_TYPE_DATA = "DATA" )
const (
CLOUD_CA_SERVICE = "cloudca"
)
const (
VPC_RESTART_ROUTER_OPERATION = "restart"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputeOffering ¶
type ComputeOfferingApi ¶
type ComputeOfferingApi struct {
// contains filtered or unexported fields
}
func (*ComputeOfferingApi) Get ¶
func (computeOfferingApi *ComputeOfferingApi) Get(id string) (*ComputeOffering, error)
Get compute offering with the specified id for the current environment
func (*ComputeOfferingApi) List ¶
func (computeOfferingApi *ComputeOfferingApi) List() ([]ComputeOffering, error)
List all compute offerings for the current environment
func (*ComputeOfferingApi) ListWithOptions ¶
func (computeOfferingApi *ComputeOfferingApi) ListWithOptions(options map[string]string) ([]ComputeOffering, error)
List all compute offerings for the current environment. Can use options to do sorting and paging.
type ComputeOfferingService ¶
type ComputeOfferingService interface {
Get(id string) (*ComputeOffering, error)
List() ([]ComputeOffering, error)
ListWithOptions(options map[string]string) ([]ComputeOffering, error)
}
func NewComputeOfferingService ¶
func NewComputeOfferingService(apiClient api.ApiClient, serviceCode string, environmentName string) ComputeOfferingService
type DiskOffering ¶
type DiskOfferingApi ¶
type DiskOfferingApi struct {
// contains filtered or unexported fields
}
func (*DiskOfferingApi) Get ¶
func (diskOfferingApi *DiskOfferingApi) Get(id string) (*DiskOffering, error)
Get disk offering with the specified id for the current environment
func (*DiskOfferingApi) List ¶
func (diskOfferingApi *DiskOfferingApi) List() ([]DiskOffering, error)
List all disk offerings for the current environment
func (*DiskOfferingApi) ListWithOptions ¶
func (diskOfferingApi *DiskOfferingApi) ListWithOptions(options map[string]string) ([]DiskOffering, error)
List all disk offerings for the current environment. Can use options to do sorting and paging.
type DiskOfferingService ¶
type DiskOfferingService interface {
Get(id string) (*DiskOffering, error)
List() ([]DiskOffering, error)
ListWithOptions(options map[string]string) ([]DiskOffering, error)
}
func NewDiskOfferingService ¶
func NewDiskOfferingService(apiClient api.ApiClient, serviceCode string, environmentName string) DiskOfferingService
type Instance ¶
type Instance struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
State string `json:"state,omitempty"`
TemplateId string `json:"templateId,omitempty"`
TemplateName string `json:"templateName,omitempty"`
IsPasswordEnabled bool `json:"isPasswordEnabled,omitempty"`
IsSSHKeyEnabled bool `json:"isSshKeyEnabled,omitempty"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
SSHKeyName string `json:"sshKeyName,omitempty"`
ComputeOfferingId string `json:"computeOfferingId,omitempty"`
ComputeOfferingName string `json:"computeOfferingName,omitempty"`
NewComputeOfferingId string `json:"newComputeOfferingId,omitempty"`
CpuCount int `json:"cpuCount,omitempty"`
MemoryInMB int `json:"memoryInMB,omitempty"`
ZoneId string `json:"zoneId,omitempty"`
ZoneName string `json:"zoneName,omitempty"`
ProjectId string `json:"projectId,omitempty"`
NetworkId string `json:"networkId,omitempty"`
NetworkName string `json:"networkName,omitempty"`
MacAddress string `json:"macAddress,omitempty"`
UserData string `json:"userData,omitempty"`
RecoveryPoint RecoveryPoint `json:"recoveryPoint,omitempty"`
IpAddress string `json:"ipAddress,omitempty"`
IpAddressId string `json:"ipAddressId,omitempty"`
PublicIps []PublicIp `json:"publicIPs,omitempty"`
PublicKey string `json:"publicKey,omitempty"`
VolumeIdToAttach string `json:"volumeIdToAttach,omitempty"`
PortsToForward []string `json:"portsToForward,omitempty"`
PurgeImmediately bool `json:"purgeImmediately,omitempty"`
}
type InstanceApi ¶
type InstanceApi struct {
// contains filtered or unexported fields
}
func (*InstanceApi) AssociateSSHKey ¶
func (instanceApi *InstanceApi) AssociateSSHKey(id string, sshKeyName string) (bool, error)
Associate an SSH key to the instance with the specified id exists in the current environment Note: This will reboot your instance if running
func (*InstanceApi) ChangeComputeOffering ¶
func (instanceApi *InstanceApi) ChangeComputeOffering(id string, newComputeOfferingId string) (bool, error)
Change the compute offering of the instance with the specified id exists in the current environment Note: This will reboot your instance if running
func (*InstanceApi) Create ¶
func (instanceApi *InstanceApi) Create(instance Instance) (*Instance, error)
Create an instance in the current environment
func (*InstanceApi) CreateRecoveryPoint ¶
func (instanceApi *InstanceApi) CreateRecoveryPoint(id string, recoveryPoint RecoveryPoint) (bool, error)
Create a recovery point of the instance with the specified id exists in the current environment
func (*InstanceApi) Destroy ¶
func (instanceApi *InstanceApi) Destroy(id string, purge bool) (bool, error)
Destroy an instance with specified id in the current environment Set the purge flag to true if you want to purge immediately
func (*InstanceApi) Exists ¶
func (instanceApi *InstanceApi) Exists(id string) (bool, error)
Check if instance with specified id exists in the current environment
func (*InstanceApi) Get ¶
func (instanceApi *InstanceApi) Get(id string) (*Instance, error)
Get instance with the specified id for the current environment
func (*InstanceApi) List ¶
func (instanceApi *InstanceApi) List() ([]Instance, error)
List all instances for the current environment
func (*InstanceApi) ListWithOptions ¶
func (instanceApi *InstanceApi) ListWithOptions(options map[string]string) ([]Instance, error)
List all instances for the current environment. Can use options to do sorting and paging.
func (*InstanceApi) Purge ¶
func (instanceApi *InstanceApi) Purge(id string) (bool, error)
Purge an instance with the specified id in the current environment The instance must be in the Destroyed state. To destroy and purge an instance, see the Destroy method
func (*InstanceApi) Reboot ¶
func (instanceApi *InstanceApi) Reboot(id string) (bool, error)
Reboot a running instance with specified id exists in the current environment
func (*InstanceApi) Recover ¶
func (instanceApi *InstanceApi) Recover(id string) (bool, error)
Recover a destroyed instance with the specified id in the current environment Note: Cannot recover instances that have been purged
func (*InstanceApi) ResetPassword ¶
func (instanceApi *InstanceApi) ResetPassword(id string) (string, error)
Reset the password of the instance with the specified id exists in the current environment
type InstanceService ¶
type InstanceService interface {
Get(id string) (*Instance, error)
List() ([]Instance, error)
ListWithOptions(options map[string]string) ([]Instance, error)
Create(Instance) (*Instance, error)
Destroy(id string, purge bool) (bool, error)
Purge(id string) (bool, error)
Recover(id string) (bool, error)
Exists(id string) (bool, error)
Start(id string) (bool, error)
Stop(id string) (bool, error)
AssociateSSHKey(id string, sshKeyName string) (bool, error)
Reboot(id string) (bool, error)
ChangeComputeOffering(id string, newComputeOfferingId string) (bool, error)
ResetPassword(id string) (string, error)
CreateRecoveryPoint(id string, recoveryPoint RecoveryPoint) (bool, error)
}
func NewInstanceService ¶
func NewInstanceService(apiClient api.ApiClient, serviceCode string, environmentName string) InstanceService
type NetworkAcl ¶
type NetworkAclApi ¶
type NetworkAclApi struct {
// contains filtered or unexported fields
}
func (*NetworkAclApi) Get ¶
func (networkAclApi *NetworkAclApi) Get(id string) (*NetworkAcl, error)
Get network acl with the specified id for the current environment
func (*NetworkAclApi) List ¶
func (networkAclApi *NetworkAclApi) List() ([]NetworkAcl, error)
List all network offerings for the current environment
func (*NetworkAclApi) ListByVpcId ¶
func (networkAclApi *NetworkAclApi) ListByVpcId(vpcId string) ([]NetworkAcl, error)
List all network offerings for the current environment
func (*NetworkAclApi) ListWithOptions ¶
func (networkAclApi *NetworkAclApi) ListWithOptions(options map[string]string) ([]NetworkAcl, error)
List all network offerings for the current environment. Can use options to do sorting and paging.
type NetworkAclService ¶
type NetworkAclService interface {
Get(id string) (*NetworkAcl, error)
List() ([]NetworkAcl, error)
ListByVpcId(vpcId string) ([]NetworkAcl, error)
ListWithOptions(options map[string]string) ([]NetworkAcl, error)
}
func NewNetworkAclService ¶
func NewNetworkAclService(apiClient api.ApiClient, serviceCode string, environmentName string) NetworkAclService
type NetworkOffering ¶
type NetworkOfferingApi ¶
type NetworkOfferingApi struct {
// contains filtered or unexported fields
}
func (*NetworkOfferingApi) Get ¶
func (networkOfferingApi *NetworkOfferingApi) Get(id string) (*NetworkOffering, error)
Get network offering with the specified id for the current environment
func (*NetworkOfferingApi) List ¶
func (networkOfferingApi *NetworkOfferingApi) List() ([]NetworkOffering, error)
List all network offerings for the current environment
func (*NetworkOfferingApi) ListWithOptions ¶
func (networkOfferingApi *NetworkOfferingApi) ListWithOptions(options map[string]string) ([]NetworkOffering, error)
List all network offerings for the current environment. Can use options to do sorting and paging.
type NetworkOfferingService ¶
type NetworkOfferingService interface {
Get(id string) (*NetworkOffering, error)
List() ([]NetworkOffering, error)
ListWithOptions(options map[string]string) ([]NetworkOffering, error)
}
func NewNetworkOfferingService ¶
func NewNetworkOfferingService(apiClient api.ApiClient, serviceCode string, environmentName string) NetworkOfferingService
type PortForwardingRule ¶
type PortForwardingRule struct {
Id string `json:"id,omitempty"`
InstanceId string `json:"instanceId,omitempty"`
InstanceName string `json:"instanceName,omitempty"`
NetworkId string `json:"networkId,omitempty"`
PrivateIp string `json:"privateIp,omitempty"`
PrivateIpId string `json:"privateIpId,omitempty"`
PrivatePortStart string `json:"privatePortStart,omitempty"`
PrivatePortEnd string `json:"privatePortEnd,omitempty"`
PublicIp string `json:"ipAddress,omitempty"`
PublicIpId string `json:"ipAddressId,omitempty"`
PublicPortStart string `json:"publicPortStart,omitempty"`
PublicPortEnd string `json:"publicPortEnd,omitempty"`
Protocol string `json:"protocol,omitempty"`
State string `json:"state,omitempty"`
VpcId string `json:"vpcId,omitempty"`
}
type PortForwardingRuleApi ¶
type PortForwardingRuleApi struct {
// contains filtered or unexported fields
}
func (PortForwardingRuleApi) Create ¶
func (api PortForwardingRuleApi) Create(pfr PortForwardingRule) (*PortForwardingRule, error)
func (PortForwardingRuleApi) Delete ¶
func (api PortForwardingRuleApi) Delete(id string) (bool, error)
func (PortForwardingRuleApi) Get ¶
func (api PortForwardingRuleApi) Get(id string) (*PortForwardingRule, error)
func (PortForwardingRuleApi) List ¶
func (api PortForwardingRuleApi) List() ([]PortForwardingRule, error)
func (PortForwardingRuleApi) ListWithOptions ¶
func (api PortForwardingRuleApi) ListWithOptions(options map[string]string) ([]PortForwardingRule, error)
type PortForwardingRuleService ¶
type PortForwardingRuleService interface {
Get(id string) (*PortForwardingRule, error)
List() ([]PortForwardingRule, error)
ListWithOptions(options map[string]string) ([]PortForwardingRule, error)
Create(pfr PortForwardingRule) (*PortForwardingRule, error)
Delete(id string) (bool, error)
}
func NewPortForwardingRuleService ¶
func NewPortForwardingRuleService(apiClient api.ApiClient, serviceCode string, environmentName string) PortForwardingRuleService
type PublicIp ¶
type PublicIp struct {
Id string `json:"id,omitempty"`
IpAddress string `json:"ipaddress,omitempty"`
State string `json:"state,omitempty"`
ZoneId string `json:"zoneId,omitempty"`
ZoneName string `json:"zoneName,omitempty"`
NetworkId string `json:"networkId,omitempty"`
NetworkName string `json:"networkName,omitempty"`
VpcId string `json:"vpcId,omitempty"`
VpcName string `json:"vpcName,omitempty"`
PrivateIpId string `json:"privateIpId,omitempty"`
InstanceNames []string `json:"instanceNames,omitempty"`
InstanceId string `json:"instanceId,omitempty"`
Purposes []string `json:"purposes,omitempty"`
Ports []string `json:"ports,omitempty"`
}
type PublicIpApi ¶
type PublicIpApi struct {
// contains filtered or unexported fields
}
func (*PublicIpApi) Acquire ¶
func (publicIpApi *PublicIpApi) Acquire(publicIp PublicIp) (*PublicIp, error)
func (*PublicIpApi) DisableStaticNat ¶
func (publicIpApi *PublicIpApi) DisableStaticNat(id string) (bool, error)
func (*PublicIpApi) EnableStaticNat ¶
func (publicIpApi *PublicIpApi) EnableStaticNat(publicIp PublicIp) (bool, error)
func (*PublicIpApi) List ¶
func (publicIpApi *PublicIpApi) List() ([]PublicIp, error)
func (*PublicIpApi) ListWithOptions ¶
func (publicIpApi *PublicIpApi) ListWithOptions(options map[string]string) ([]PublicIp, error)
type PublicIpService ¶
type PublicIpService interface {
Get(id string) (*PublicIp, error)
List() ([]PublicIp, error)
Acquire(publicIp PublicIp) (*PublicIp, error)
Release(id string) (bool, error)
EnableStaticNat(publicIp PublicIp) (bool, error)
DisableStaticNat(id string) (bool, error)
}
func NewPublicIpService ¶
func NewPublicIpService(apiClient api.ApiClient, serviceCode string, environmentName string) PublicIpService
type RecoveryPoint ¶
type Resources ¶
type Resources struct {
Instances InstanceService
Volumes VolumeService
Templates TemplateService
ComputeOfferings ComputeOfferingService
DiskOfferings DiskOfferingService
SSHKeys SSHKeyService
Tiers TierService
Vpcs VpcService
VpcOfferings VpcOfferingService
NetworkOfferings NetworkOfferingService
PublicIps PublicIpService
NetworkAcls NetworkAclService
PortForwardingRules PortForwardingRuleService
// contains filtered or unexported fields
}
func NewResources ¶
func (Resources) GetServiceType ¶
type SSHKeyApi ¶
type SSHKeyApi struct {
// contains filtered or unexported fields
}
type SSHKeyService ¶
type SSHKeyService interface {
Get(name string) (*SSHKey, error)
List() ([]SSHKey, error)
ListWithOptions(options map[string]string) ([]SSHKey, error)
}
func NewSSHKeyService ¶
func NewSSHKeyService(apiClient api.ApiClient, serviceCode string, environmentName string) SSHKeyService
type Template ¶
type Template struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Size int `json:"size,omitempty"`
IsPublic bool `json:"isPublic,omitempty"`
IsReady bool `json:"isReady,omitempty"`
SSHKeyEnabled bool `json:"sshKeyEnabled,omitempty"`
Extractable bool `json:"extractable,omitempty"`
OSType string `json:"osType,omitempty"`
OSTypeId string `json:"osTypeId,omitempty"`
Hypervisor string `json:"hypervisor,omitempty"`
Format string `json:"format,omitempty"`
ZoneName string `json:"zoneName,omitempty"`
ProjectId string `json:"projectId,omitempty"`
}
type TemplateApi ¶
type TemplateApi struct {
// contains filtered or unexported fields
}
func (*TemplateApi) Get ¶
func (templateApi *TemplateApi) Get(id string) (*Template, error)
Get template with the specified id for the current environment
func (*TemplateApi) List ¶
func (templateApi *TemplateApi) List() ([]Template, error)
List all templates for the current environment
func (*TemplateApi) ListWithOptions ¶
func (templateApi *TemplateApi) ListWithOptions(options map[string]string) ([]Template, error)
List all templates for the current environment. Can use options to do sorting and paging.
type TemplateService ¶
type TemplateService interface {
Get(id string) (*Template, error)
List() ([]Template, error)
ListWithOptions(options map[string]string) ([]Template, error)
}
func NewTemplateService ¶
func NewTemplateService(apiClient api.ApiClient, serviceCode string, environmentName string) TemplateService
type Tier ¶
type Tier struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
VpcId string `json:"vpcId,omitempty"`
NetworkOfferingId string `json:"networkOfferingId,omitempty"`
NetworkAclId string `json:"networkAclId,omitempty"`
ZoneId string `json:"zoneid,omitempty"`
ZoneName string `json:"zonename,omitempty"`
Cidr string `json:"cidr,omitempty"`
Type string `json:"type,omitempty"`
State string `json:"state,omitempty"`
Gateway string `json:"gateway,omitempty"`
IsSystem bool `json:"issystem,omitempty"`
Domain string `json:"domain,omitempty"`
DomainId string `json:"domainid,omitempty"`
Project string `json:"project,omitempty"`
ProjectId string `json:"projectid,omitempty"`
Services []Service `json:"service,omitempty"`
}
type TierApi ¶
type TierApi struct {
// contains filtered or unexported fields
}
func (*TierApi) ListWithOptions ¶
List all tiers for the current environment. Can use options to do sorting and paging.
type TierService ¶
type TierService interface {
Get(id string) (*Tier, error)
List() ([]Tier, error)
ListOfVpc(vpcId string) ([]Tier, error)
ListWithOptions(options map[string]string) ([]Tier, error)
Create(tier Tier, options map[string]string) (*Tier, error)
Update(id string, tier Tier) (*Tier, error)
Delete(id string) (bool, error)
ChangeAcl(id string, aclId string) (bool, error)
}
func NewTierService ¶
func NewTierService(apiClient api.ApiClient, serviceCode string, environmentName string) TierService
type Volume ¶
type Volume struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
CreationDate string `json:"creationDate,omitempty"`
Size int `json:"size,omitempty"`
DiskOfferingId string `json:"diskOfferingId,omitempty"`
TemplateId string `json:"templateId,omitempty"`
StorageTier string `json:"storageTier,omitempty"`
ZoneName string `json:"zoneName,omitempty"`
State string `json:"state,omitempty"`
InstanceName string `json:"instanceName,omitempty"`
InstanceId string `json:"instanceId,omitempty"`
InstanceState string `json:"instanceState,omitempty"`
}
type VolumeApi ¶
type VolumeApi struct {
// contains filtered or unexported fields
}
func (*VolumeApi) ListOfType ¶
List all volumes of specified type for the current environment
type VolumeService ¶
type VolumeService interface {
Get(id string) (*Volume, error)
List() ([]Volume, error)
ListOfType(volumeType string) ([]Volume, error)
ListWithOptions(options map[string]string) ([]Volume, error)
}
func NewVolumeService ¶
func NewVolumeService(apiClient api.ApiClient, serviceCode string, environmentName string) VolumeService
type Vpc ¶
type Vpc struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
VpcOfferingId string `json:"vpcOfferingId,omitempty"`
State string `json:"state,omitempty"`
Cidr string `json:"cidr,omitempty"`
ZoneId string `json:"zoneId,omitempty"`
ZoneName string `json:"zoneName,omitempty"`
NetworkDomain string `json:"networkDomain,omitempty"`
SourceNatIp string `json:"sourceNatIp,omitempty"`
VpnStatus string `json:"vpnStatus,omitempty"`
Type string `json:"type,omitempty"`
}
type VpcApi ¶
type VpcApi struct {
// contains filtered or unexported fields
}
func (*VpcApi) ListWithOptions ¶
List all vpcs for the current environment. Can use options to do sorting and paging.
func (*VpcApi) RestartRouter ¶
Restart the router of the vpc with the specified id exists in the current environment
type VpcOffering ¶
type VpcOfferingApi ¶
type VpcOfferingApi struct {
// contains filtered or unexported fields
}
func (*VpcOfferingApi) Get ¶
func (vpcOfferingApi *VpcOfferingApi) Get(id string) (*VpcOffering, error)
Get disk offering with the specified id for the current environment
func (*VpcOfferingApi) List ¶
func (vpcOfferingApi *VpcOfferingApi) List() ([]VpcOffering, error)
List all disk offerings for the current environment
func (*VpcOfferingApi) ListWithOptions ¶
func (vpcOfferingApi *VpcOfferingApi) ListWithOptions(options map[string]string) ([]VpcOffering, error)
List all disk offerings for the current environment. Can use options to do sorting and paging.
type VpcOfferingService ¶
type VpcOfferingService interface {
Get(id string) (*VpcOffering, error)
List() ([]VpcOffering, error)
ListWithOptions(options map[string]string) ([]VpcOffering, error)
}
func NewVpcOfferingService ¶
func NewVpcOfferingService(apiClient api.ApiClient, serviceCode string, environmentName string) VpcOfferingService
type VpcService ¶
type VpcService interface {
Get(id string) (*Vpc, error)
List() ([]Vpc, error)
ListWithOptions(options map[string]string) ([]Vpc, error)
Create(vpc Vpc) (*Vpc, error)
Update(vpc Vpc) (*Vpc, error)
Destroy(id string) (bool, error)
RestartRouter(id string) (bool, error)
}
func NewVpcService ¶
func NewVpcService(apiClient api.ApiClient, serviceCode string, environmentName string) VpcService