sdk

package
v1.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFoundError

func IsNotFoundError(err error) bool

Types

type BackupListsProxy added in v1.2.0

type BackupListsProxy struct {
	// contains filtered or unexported fields
}

func (*BackupListsProxy) ListBackupListByName added in v1.2.0

func (p *BackupListsProxy) ListBackupListByName(ctx context.Context, backupPlanID string, backupListName string) ([]*models.BackupList, error)

func (*BackupListsProxy) Read added in v1.2.0

func (p *BackupListsProxy) Read(ctx context.Context, backupPlanID string, backupListID string) (*models.BackupList, error)

type BackupPlansProxy added in v1.2.0

type BackupPlansProxy struct {
	// contains filtered or unexported fields
}

func (*BackupPlansProxy) ListBackupPlanByName added in v1.2.0

func (p *BackupPlansProxy) ListBackupPlanByName(ctx context.Context, backupPlanName string) ([]*models.BackupPlan, error)

func (*BackupPlansProxy) Read added in v1.2.0

func (p *BackupPlansProxy) Read(ctx context.Context, packupPlanID string) (*models.BackupPlan, error)

type BillingTagsProxy added in v1.2.0

type BillingTagsProxy struct {
	// contains filtered or unexported fields
}

func (*BillingTagsProxy) Create added in v1.2.0

func (p *BillingTagsProxy) Create(ctx context.Context, BillingTag *models.BillingTag) (*models.BillingTag, error)

func (*BillingTagsProxy) Delete added in v1.2.0

func (p *BillingTagsProxy) Delete(ctx context.Context, BillingTagID string) error

func (*BillingTagsProxy) Exists added in v1.2.0

func (p *BillingTagsProxy) Exists(ctx context.Context, BillingTagID int32) (bool, error)

func (*BillingTagsProxy) ListBillingTagsByTagName added in v1.2.0

func (p *BillingTagsProxy) ListBillingTagsByTagName(ctx context.Context, billingTagName string) ([]*models.BillingTag, error)

func (*BillingTagsProxy) Read added in v1.2.0

func (p *BillingTagsProxy) Read(ctx context.Context, billingTagID int32) (*models.BillingTag, error)

func (*BillingTagsProxy) Update added in v1.2.0

func (p *BillingTagsProxy) Update(ctx context.Context, BillingTag *models.BillingTag) (*models.BillingTag, error)

type Client

type Client struct {
	FirewallEWRules FirewallEWRulesProxy
	FirewallSNRules FirewallSNRulesProxy
	GatewayPolicy   GatewayPolicyProxy
	LogicalPorts    LogicalPortsProxy
	Networks        NetworksProxy
	Requests        RequestsProxy
	Routers         RoutersProxy
	SecurityGroups  SecurityGroupsProxy
	SecurityPolicy  SecurityPolicyProxy
	Services        ServicesProxy
	Subtenants      SubtenantsProxy
	Users           UsersProxy
	Groups          GroupsProxy
	VirtualMachines VirtualMachinesProxy
	VirtualNetworks VirtualNetworksProxy
	IPCollections   IPCollectionsProxy
	Deployments     DeploymentsProxy
	CustomServices  CustomServicesProxy
	KMSKeys         KMSKeysProxy
	BackupPlans     BackupPlansProxy
	BackupLists     BackupListsProxy
	BillingTags     BillingTagsProxy
	SystemTags      SystemTagsProxy
}

func NewClient

func NewClient(ctx context.Context, host string, tenant string, username string, password string, insecure bool, debugLogFile string) (*Client, error)

type CustomServicesProxy added in v1.0.0

type CustomServicesProxy struct {
	// contains filtered or unexported fields
}

func (*CustomServicesProxy) Create added in v1.0.0

func (*CustomServicesProxy) Delete added in v1.0.0

func (p *CustomServicesProxy) Delete(ctx context.Context, customServiceID string) error

func (*CustomServicesProxy) Exists added in v1.0.0

func (p *CustomServicesProxy) Exists(ctx context.Context, customServiceID string) (bool, error)

func (*CustomServicesProxy) ListByDisplayName added in v1.0.0

func (p *CustomServicesProxy) ListByDisplayName(ctx context.Context, displayName string) ([]*models.CustomServiceInstance, error)

func (*CustomServicesProxy) Read added in v1.0.0

func (p *CustomServicesProxy) Read(ctx context.Context, customServiceID string) (*models.CustomServiceInstance, error)

func (*CustomServicesProxy) Update added in v1.0.0

type DeploymentsProxy added in v1.0.0

type DeploymentsProxy struct {
	// contains filtered or unexported fields
}

func (*DeploymentsProxy) ListByDisplayName added in v1.0.0

func (p *DeploymentsProxy) ListByDisplayName(ctx context.Context, displayName string) ([]*models.DeploymentInstance, error)

func (*DeploymentsProxy) Read added in v1.0.0

func (p *DeploymentsProxy) Read(ctx context.Context, deploymentID string) (*models.DeploymentInstance, error)

type FileLogger

type FileLogger struct {
	// contains filtered or unexported fields
}

func NewFileLogger

func NewFileLogger(filePath string) *FileLogger

func (*FileLogger) Close

func (fl *FileLogger) Close() error

func (*FileLogger) Debugf

func (fl *FileLogger) Debugf(format string, args ...interface{})

func (*FileLogger) Init

func (fl *FileLogger) Init() error

func (*FileLogger) Printf

func (fl *FileLogger) Printf(format string, args ...interface{})

type FirewallEWRulesProxy

type FirewallEWRulesProxy struct {
	// contains filtered or unexported fields
}

func (*FirewallEWRulesProxy) Create

func (p *FirewallEWRulesProxy) Create(ctx context.Context, routerID string, rule *models.DFWRule) (*models.DFWRule, error)

func (*FirewallEWRulesProxy) Delete

func (p *FirewallEWRulesProxy) Delete(ctx context.Context, routerID string, ruleID string) error

func (*FirewallEWRulesProxy) Exists

func (p *FirewallEWRulesProxy) Exists(ctx context.Context, routerID string, ruleID string) (bool, error)

func (*FirewallEWRulesProxy) List

func (p *FirewallEWRulesProxy) List(ctx context.Context, routerID string) ([]*models.DFWRule, error)

func (*FirewallEWRulesProxy) ListByDisplayName

func (p *FirewallEWRulesProxy) ListByDisplayName(ctx context.Context, routerID string, displayName string) ([]*models.DFWRule, error)

func (*FirewallEWRulesProxy) Read

func (p *FirewallEWRulesProxy) Read(ctx context.Context, routerID string, ruleID string) (*models.DFWRule, error)

func (*FirewallEWRulesProxy) Update

func (p *FirewallEWRulesProxy) Update(ctx context.Context, routerID string, rule *models.DFWRule) (*models.DFWRule, error)

type FirewallSNRulesProxy

type FirewallSNRulesProxy struct {
	// contains filtered or unexported fields
}

func (*FirewallSNRulesProxy) Create

func (p *FirewallSNRulesProxy) Create(ctx context.Context, routerID string, rule *models.GFWRule) (*models.GFWRule, error)

func (*FirewallSNRulesProxy) Delete

func (p *FirewallSNRulesProxy) Delete(ctx context.Context, routerID string, ruleID string) error

func (*FirewallSNRulesProxy) Exists

func (p *FirewallSNRulesProxy) Exists(ctx context.Context, routerID string, ruleID string) (bool, error)

func (*FirewallSNRulesProxy) ListByDisplayName

func (p *FirewallSNRulesProxy) ListByDisplayName(ctx context.Context, routerID string, displayName string) ([]*models.GFWRule, error)

func (*FirewallSNRulesProxy) Read

func (p *FirewallSNRulesProxy) Read(ctx context.Context, routerID string, ruleID string) (*models.GFWRule, error)

func (*FirewallSNRulesProxy) Update

func (p *FirewallSNRulesProxy) Update(ctx context.Context, routerID string, rule *models.GFWRule) (*models.GFWRule, error)

type GatewayPolicyProxy

type GatewayPolicyProxy struct {
	// contains filtered or unexported fields
}

func (*GatewayPolicyProxy) ListByDisplayName

func (p *GatewayPolicyProxy) ListByDisplayName(ctx context.Context, displayName string) ([]*models.GatewayPolicy, error)

func (*GatewayPolicyProxy) Read

func (p *GatewayPolicyProxy) Read(ctx context.Context, gatewayPolicyID string) (*models.GatewayPolicy, error)

type GroupsProxy added in v1.2.1

type GroupsProxy struct {
	// contains filtered or unexported fields
}

func (*GroupsProxy) ListByDisplayName added in v1.2.1

func (p *GroupsProxy) ListByDisplayName(ctx context.Context, groupName string) ([]*models.GroupInstance, error)

func (*GroupsProxy) Read added in v1.2.1

func (p *GroupsProxy) Read(ctx context.Context, groupID string) (*models.GroupInstance, error)

type IPCollectionsProxy added in v1.0.0

type IPCollectionsProxy struct {
	// contains filtered or unexported fields
}

func (*IPCollectionsProxy) Create added in v1.0.0

func (p *IPCollectionsProxy) Create(ctx context.Context, IPCollection *models.IPCollection) (*models.IPCollection, error)

func (*IPCollectionsProxy) Delete added in v1.0.0

func (p *IPCollectionsProxy) Delete(ctx context.Context, IPCollectionID string) error

func (*IPCollectionsProxy) Exists added in v1.0.0

func (p *IPCollectionsProxy) Exists(ctx context.Context, IPCollectionID string) (bool, error)

func (*IPCollectionsProxy) ListByDisplayName added in v1.0.0

func (p *IPCollectionsProxy) ListByDisplayName(ctx context.Context, displayName string) ([]*models.IPCollection, error)

func (*IPCollectionsProxy) Read added in v1.0.0

func (p *IPCollectionsProxy) Read(ctx context.Context, ipCollectionID string) (*models.IPCollection, error)

func (*IPCollectionsProxy) Update added in v1.0.0

func (p *IPCollectionsProxy) Update(ctx context.Context, IPCollection *models.IPCollection) (*models.IPCollection, error)

type KMSKeysProxy added in v1.1.0

type KMSKeysProxy struct {
	// contains filtered or unexported fields
}

func (*KMSKeysProxy) Create added in v1.1.0

func (p *KMSKeysProxy) Create(ctx context.Context, keyInstance *models.KeyInstance) (*models.KeyInstance, error)

func (*KMSKeysProxy) Delete added in v1.1.0

func (p *KMSKeysProxy) Delete(ctx context.Context, keyID string) error

func (*KMSKeysProxy) Import added in v1.1.0

func (p *KMSKeysProxy) Import(ctx context.Context, keyImport *models.KeyImport) (*models.KeyInstance, error)

func (*KMSKeysProxy) ListByDisplayName added in v1.1.0

func (p *KMSKeysProxy) ListByDisplayName(ctx context.Context, displayName string) ([]*models.KeyInstance, error)

func (*KMSKeysProxy) Read added in v1.1.0

func (p *KMSKeysProxy) Read(ctx context.Context, keyID string) (*models.KeyInstance, error)

type LogicalPortsProxy added in v1.0.0

type LogicalPortsProxy struct {
	// contains filtered or unexported fields
}

func (*LogicalPortsProxy) ListByDisplayName added in v1.0.0

func (p *LogicalPortsProxy) ListByDisplayName(ctx context.Context, displayName string) ([]*models.LogicalPort, error)

func (*LogicalPortsProxy) Read added in v1.0.0

func (p *LogicalPortsProxy) Read(ctx context.Context, logicalPortID string) (*models.LogicalPort, error)

type NetworksProxy added in v1.0.0

type NetworksProxy struct {
	// contains filtered or unexported fields
}

func (*NetworksProxy) ListByName added in v1.0.0

func (p *NetworksProxy) ListByName(ctx context.Context, name string) ([]*models.VCSNetworkInstance, error)

func (*NetworksProxy) Read added in v1.0.0

func (p *NetworksProxy) Read(ctx context.Context, networkID string) (*models.VCSNetworkInstance, error)

type NotFoundError

type NotFoundError struct {
	Err error
}

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

func (*NotFoundError) Unwrap

func (e *NotFoundError) Unwrap() error

type RequestsProxy added in v1.0.0

type RequestsProxy struct {
	// contains filtered or unexported fields
}

func (*RequestsProxy) FetchResourceID added in v1.0.0

func (p *RequestsProxy) FetchResourceID(ctx context.Context, timeout time.Duration, request *models.RequestInstance) (error, string)

func (*RequestsProxy) Read added in v1.0.0

func (p *RequestsProxy) Read(ctx context.Context, requestID string) (*models.RequestInstance, error)

type RoutersProxy

type RoutersProxy struct {
	// contains filtered or unexported fields
}

func (*RoutersProxy) Create added in v1.0.0

func (*RoutersProxy) Delete added in v1.0.0

func (p *RoutersProxy) Delete(ctx context.Context, RouterID string) error

func (*RoutersProxy) Exists added in v1.0.0

func (p *RoutersProxy) Exists(ctx context.Context, RouterID string) (bool, error)

func (*RoutersProxy) ListByDisplayName

func (p *RoutersProxy) ListByDisplayName(ctx context.Context, displayName string) ([]*models.RouterInstance, error)

func (*RoutersProxy) Read

func (p *RoutersProxy) Read(ctx context.Context, routerID string) (*models.RouterInstance, error)

func (*RoutersProxy) Update added in v1.0.0

type SecurityGroupsProxy

type SecurityGroupsProxy struct {
	// contains filtered or unexported fields
}

func (*SecurityGroupsProxy) Create

func (p *SecurityGroupsProxy) Create(ctx context.Context, securityGroup *models.SecurityGroup) (*models.SecurityGroup, error)

func (*SecurityGroupsProxy) Delete

func (p *SecurityGroupsProxy) Delete(ctx context.Context, securityGroupID string) error

func (*SecurityGroupsProxy) Exists

func (p *SecurityGroupsProxy) Exists(ctx context.Context, securityGroupID string) (bool, error)

func (*SecurityGroupsProxy) ListByDisplayName

func (p *SecurityGroupsProxy) ListByDisplayName(ctx context.Context, displayName string) ([]*models.SecurityGroup, error)

func (*SecurityGroupsProxy) Read

func (p *SecurityGroupsProxy) Read(ctx context.Context, securityGroupID string) (*models.SecurityGroup, error)

func (*SecurityGroupsProxy) Update

func (p *SecurityGroupsProxy) Update(ctx context.Context, securityGroup *models.SecurityGroup) (*models.SecurityGroup, error)

type SecurityPolicyProxy

type SecurityPolicyProxy struct {
	// contains filtered or unexported fields
}

func (*SecurityPolicyProxy) List

func (*SecurityPolicyProxy) ListByDisplayName

func (p *SecurityPolicyProxy) ListByDisplayName(ctx context.Context, displayName string) ([]*models.SecurityPolicy, error)

func (*SecurityPolicyProxy) Read

func (p *SecurityPolicyProxy) Read(ctx context.Context, securityPolicyID string) (*models.SecurityPolicy, error)

type ServicesProxy

type ServicesProxy struct {
	// contains filtered or unexported fields
}

func (*ServicesProxy) ListByDisplayName

func (p *ServicesProxy) ListByDisplayName(ctx context.Context, displayName string) ([]*models.ServiceInstance, error)

func (*ServicesProxy) Read

func (p *ServicesProxy) Read(ctx context.Context, serviceID string) (*models.ServiceInstance, error)

type StdErrLogger added in v1.1.0

type StdErrLogger struct {
	// contains filtered or unexported fields
}

func NewStdErrLogger added in v1.1.0

func NewStdErrLogger() *StdErrLogger

func (*StdErrLogger) Debugf added in v1.1.0

func (fl *StdErrLogger) Debugf(format string, args ...interface{})

func (*StdErrLogger) Printf added in v1.1.0

func (fl *StdErrLogger) Printf(format string, args ...interface{})

type SubtenantsProxy added in v1.0.0

type SubtenantsProxy struct {
	// contains filtered or unexported fields
}

func (*SubtenantsProxy) Create added in v1.0.0

func (*SubtenantsProxy) Delete added in v1.0.0

func (p *SubtenantsProxy) Delete(ctx context.Context, subtenantID string) error

func (*SubtenantsProxy) Exists added in v1.0.0

func (p *SubtenantsProxy) Exists(ctx context.Context, subtenantID string) (bool, error)

func (*SubtenantsProxy) ListByName added in v1.0.0

func (p *SubtenantsProxy) ListByName(ctx context.Context, name string) ([]*models.SubtenantInstance, error)

func (*SubtenantsProxy) Read added in v1.0.0

func (p *SubtenantsProxy) Read(ctx context.Context, subtenantID string) (*models.SubtenantInstance, error)

func (*SubtenantsProxy) Update added in v1.0.0

type SystemTagsProxy added in v1.2.0

type SystemTagsProxy struct {
	// contains filtered or unexported fields
}

func (*SystemTagsProxy) Create added in v1.2.0

func (p *SystemTagsProxy) Create(ctx context.Context, SystemTag *models.SystemTag) (*models.SystemTag, error)

func (*SystemTagsProxy) Delete added in v1.2.0

func (p *SystemTagsProxy) Delete(ctx context.Context, SystemTagID string) error

func (*SystemTagsProxy) Exists added in v1.2.0

func (p *SystemTagsProxy) Exists(ctx context.Context, SystemTagID int32) (bool, error)

func (*SystemTagsProxy) ListSystemTagsByTagName added in v1.2.0

func (p *SystemTagsProxy) ListSystemTagsByTagName(ctx context.Context, systemTagName string) ([]*models.SystemTag, error)

func (*SystemTagsProxy) Read added in v1.2.0

func (p *SystemTagsProxy) Read(ctx context.Context, systemTagID int32) (*models.SystemTag, error)

func (*SystemTagsProxy) Update added in v1.2.0

func (p *SystemTagsProxy) Update(ctx context.Context, SystemTag *models.SystemTag) (*models.SystemTag, error)

type UsersProxy added in v1.0.0

type UsersProxy struct {
	// contains filtered or unexported fields
}

func (*UsersProxy) ListByDisplayName added in v1.0.0

func (p *UsersProxy) ListByDisplayName(ctx context.Context, userName string) ([]*models.UserInstance, error)

func (*UsersProxy) Read added in v1.0.0

func (p *UsersProxy) Read(ctx context.Context, userID string) (*models.UserInstance, error)

type VirtualMachinesProxy

type VirtualMachinesProxy struct {
	// contains filtered or unexported fields
}

func (*VirtualMachinesProxy) Create added in v1.0.0

func (*VirtualMachinesProxy) Delete added in v1.0.0

func (p *VirtualMachinesProxy) Delete(ctx context.Context, virtualMachineID string) (*models.RequestInstance, error)

func (*VirtualMachinesProxy) LegacyListByDisplayName added in v1.0.0

func (p *VirtualMachinesProxy) LegacyListByDisplayName(ctx context.Context, displayName string) ([]*models.VirtualMachine, error)

func (*VirtualMachinesProxy) ListByDisplayName

func (p *VirtualMachinesProxy) ListByDisplayName(ctx context.Context, displayName string) ([]*models.VcsVirtualMachineInstance, error)

func (*VirtualMachinesProxy) Read

func (*VirtualMachinesProxy) Update added in v1.0.0

type VirtualNetworksProxy added in v1.0.0

type VirtualNetworksProxy struct {
	// contains filtered or unexported fields
}

func (*VirtualNetworksProxy) Create added in v1.0.0

func (*VirtualNetworksProxy) Delete added in v1.0.0

func (p *VirtualNetworksProxy) Delete(ctx context.Context, virtualNetworkID string) (*models.RequestInstance, error)

func (*VirtualNetworksProxy) ListByDisplayName added in v1.0.0

func (p *VirtualNetworksProxy) ListByDisplayName(ctx context.Context, displayName string) ([]*models.VirtualNetworkInstance, error)

func (*VirtualNetworksProxy) Read added in v1.0.0

func (p *VirtualNetworksProxy) Read(ctx context.Context, virtualNetworkID string) (*models.VirtualNetworkInstance, error)

func (*VirtualNetworksProxy) Update added in v1.0.0

Jump to

Keyboard shortcuts

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