Documentation ¶
Index ¶
- Variables
- func CleanAll(options *CleanupOptions) error
- type APIKey
- type CleanupOptions
- type IBMPowerVSClient
- func (p *IBMPowerVSClient) DeleteInstance(id string) error
- func (p *IBMPowerVSClient) DeleteNetwork(id string) error
- func (p *IBMPowerVSClient) DeletePort(networkID, portID string) error
- func (p *IBMPowerVSClient) GetInstances() (*models.PVMInstances, error)
- func (p *IBMPowerVSClient) GetNetworks() (*models.Networks, error)
- func (p *IBMPowerVSClient) GetPorts(id string) (*models.NetworkPorts, error)
- type IBMVPCClient
- func (c *IBMVPCClient) DeleteFloatingIP(options *vpcv1.DeleteFloatingIPOptions) (*core.DetailedResponse, error)
- func (c *IBMVPCClient) DeleteInstance(options *vpcv1.DeleteInstanceOptions) (*core.DetailedResponse, error)
- func (c *IBMVPCClient) DeleteLoadBalancer(options *vpcv1.DeleteLoadBalancerOptions) (*core.DetailedResponse, error)
- func (c *IBMVPCClient) DeletePublicGateway(options *vpcv1.DeletePublicGatewayOptions) (*core.DetailedResponse, error)
- func (c *IBMVPCClient) DeleteSubnet(options *vpcv1.DeleteSubnetOptions) (*core.DetailedResponse, error)
- func (c *IBMVPCClient) DeleteVPC(options *vpcv1.DeleteVPCOptions) (*core.DetailedResponse, error)
- func (c *IBMVPCClient) GetLoadBalancer(options *vpcv1.GetLoadBalancerOptions) (result *vpcv1.LoadBalancer, response *core.DetailedResponse, err error)
- func (c *IBMVPCClient) GetSubnetPublicGateway(options *vpcv1.GetSubnetPublicGatewayOptions) (*vpcv1.PublicGateway, *core.DetailedResponse, error)
- func (c *IBMVPCClient) ListFloatingIps(options *vpcv1.ListFloatingIpsOptions) (*vpcv1.FloatingIPCollection, *core.DetailedResponse, error)
- func (c *IBMVPCClient) ListInstances(options *vpcv1.ListInstancesOptions) (*vpcv1.InstanceCollection, *core.DetailedResponse, error)
- func (c *IBMVPCClient) ListLoadBalancers(options *vpcv1.ListLoadBalancersOptions) (*vpcv1.LoadBalancerCollection, *core.DetailedResponse, error)
- func (c *IBMVPCClient) ListSubnets(options *vpcv1.ListSubnetsOptions) (*vpcv1.SubnetCollection, *core.DetailedResponse, error)
- func (c *IBMVPCClient) ListVpcs(options *vpcv1.ListVpcsOptions) (*vpcv1.VPCCollection, *core.DetailedResponse, error)
- func (c *IBMVPCClient) UnsetSubnetPublicGateway(options *vpcv1.UnsetSubnetPublicGatewayOptions) (*core.DetailedResponse, error)
- type PowerVS
- type PowerVSInstance
- type PowerVSNetwork
- type Resource
- type ServiceID
- func (s *ServiceID) CreateAPIKey(options *identityv1.CreateAPIKeyOptions) (*identityv1.APIKey, *core.DetailedResponse, error)
- func (s *ServiceID) DeleteAPIKey(options *identityv1.DeleteAPIKeyOptions) (*core.DetailedResponse, error)
- func (s *ServiceID) GetAPIKeysDetails(options *identityv1.GetAPIKeysDetailsOptions) (*identityv1.APIKey, *core.DetailedResponse, error)
- func (s *ServiceID) GetAccount() (*string, error)
- func (s *ServiceID) ListAPIKeys(options *identityv1.ListAPIKeysOptions) (*identityv1.APIKeyList, *core.DetailedResponse, error)
- func (s *ServiceID) ListServiceID(options *identityv1.ListServiceIdsOptions) (*identityv1.ServiceIDList, *core.DetailedResponse, error)
- type ServiceIDClient
- type VPC
- type VPCInstance
- type VPCLoadBalancer
- type VPCNetwork
- type VPCs
Constants ¶
This section is empty.
Variables ¶
View Source
var CommonResources = []Resource{ APIKey{}, }
View Source
var PowervsResources = []Resource{ PowerVSInstance{}, PowerVSNetwork{}, }
View Source
var VpcResources = []Resource{ VPCInstance{}, VPCLoadBalancer{}, VPCNetwork{}, VPCs{}, }
Functions ¶
func CleanAll ¶
func CleanAll(options *CleanupOptions) error
Types ¶
type CleanupOptions ¶
type IBMPowerVSClient ¶
type IBMPowerVSClient struct {
// contains filtered or unexported fields
}
func NewPowerVSClient ¶
func NewPowerVSClient(options *CleanupOptions) (*IBMPowerVSClient, error)
Returns a new PowerVS client
func (*IBMPowerVSClient) DeleteInstance ¶
func (p *IBMPowerVSClient) DeleteInstance(id string) error
Deletes the virtual server instances in the PowerVS service instance
func (*IBMPowerVSClient) DeleteNetwork ¶
func (p *IBMPowerVSClient) DeleteNetwork(id string) error
Deletes the network in PowerVS service instance
func (*IBMPowerVSClient) DeletePort ¶
func (p *IBMPowerVSClient) DeletePort(networkID, portID string) error
Deletes the port of the network
func (*IBMPowerVSClient) GetInstances ¶
func (p *IBMPowerVSClient) GetInstances() (*models.PVMInstances, error)
Returns the virtual server instances in the PowerVS service instance
func (*IBMPowerVSClient) GetNetworks ¶
func (p *IBMPowerVSClient) GetNetworks() (*models.Networks, error)
Returns the networks in the PowerVS service instance
func (*IBMPowerVSClient) GetPorts ¶
func (p *IBMPowerVSClient) GetPorts(id string) (*models.NetworkPorts, error)
Returns ports of the network instance
type IBMVPCClient ¶
type IBMVPCClient struct { ResourceGroupID string Resource *common.Resource // contains filtered or unexported fields }
func NewVPCClient ¶
func NewVPCClient(options *CleanupOptions) (*IBMVPCClient, error)
Creates a new VPC Client
func (*IBMVPCClient) DeleteFloatingIP ¶
func (c *IBMVPCClient) DeleteFloatingIP(options *vpcv1.DeleteFloatingIPOptions) (*core.DetailedResponse, error)
func (*IBMVPCClient) DeleteInstance ¶
func (c *IBMVPCClient) DeleteInstance(options *vpcv1.DeleteInstanceOptions) (*core.DetailedResponse, error)
func (*IBMVPCClient) DeleteLoadBalancer ¶
func (c *IBMVPCClient) DeleteLoadBalancer(options *vpcv1.DeleteLoadBalancerOptions) (*core.DetailedResponse, error)
func (*IBMVPCClient) DeletePublicGateway ¶
func (c *IBMVPCClient) DeletePublicGateway(options *vpcv1.DeletePublicGatewayOptions) (*core.DetailedResponse, error)
func (*IBMVPCClient) DeleteSubnet ¶
func (c *IBMVPCClient) DeleteSubnet(options *vpcv1.DeleteSubnetOptions) (*core.DetailedResponse, error)
func (*IBMVPCClient) DeleteVPC ¶
func (c *IBMVPCClient) DeleteVPC(options *vpcv1.DeleteVPCOptions) (*core.DetailedResponse, error)
func (*IBMVPCClient) GetLoadBalancer ¶
func (c *IBMVPCClient) GetLoadBalancer(options *vpcv1.GetLoadBalancerOptions) (result *vpcv1.LoadBalancer, response *core.DetailedResponse, err error)
func (*IBMVPCClient) GetSubnetPublicGateway ¶
func (c *IBMVPCClient) GetSubnetPublicGateway(options *vpcv1.GetSubnetPublicGatewayOptions) (*vpcv1.PublicGateway, *core.DetailedResponse, error)
func (*IBMVPCClient) ListFloatingIps ¶
func (c *IBMVPCClient) ListFloatingIps(options *vpcv1.ListFloatingIpsOptions) (*vpcv1.FloatingIPCollection, *core.DetailedResponse, error)
func (*IBMVPCClient) ListInstances ¶
func (c *IBMVPCClient) ListInstances(options *vpcv1.ListInstancesOptions) (*vpcv1.InstanceCollection, *core.DetailedResponse, error)
func (*IBMVPCClient) ListLoadBalancers ¶
func (c *IBMVPCClient) ListLoadBalancers(options *vpcv1.ListLoadBalancersOptions) (*vpcv1.LoadBalancerCollection, *core.DetailedResponse, error)
func (*IBMVPCClient) ListSubnets ¶
func (c *IBMVPCClient) ListSubnets(options *vpcv1.ListSubnetsOptions) (*vpcv1.SubnetCollection, *core.DetailedResponse, error)
func (*IBMVPCClient) ListVpcs ¶
func (c *IBMVPCClient) ListVpcs(options *vpcv1.ListVpcsOptions) (*vpcv1.VPCCollection, *core.DetailedResponse, error)
func (*IBMVPCClient) UnsetSubnetPublicGateway ¶
func (c *IBMVPCClient) UnsetSubnetPublicGateway(options *vpcv1.UnsetSubnetPublicGatewayOptions) (*core.DetailedResponse, error)
type PowerVSInstance ¶
type PowerVSInstance struct {
// contains filtered or unexported fields
}
func NewInstanceClient ¶
func NewInstanceClient(sess *ibmpisession.IBMPISession, instanceID string) *PowerVSInstance
Creates a new PowerVS Instance client
type PowerVSNetwork ¶
type PowerVSNetwork struct {
// contains filtered or unexported fields
}
func NewNetworkClient ¶
func NewNetworkClient(sess *ibmpisession.IBMPISession, instanceID string) *PowerVSNetwork
Creates a new PowerVS Network client
type ServiceID ¶
type ServiceID struct {
// contains filtered or unexported fields
}
func NewServiceIDClient ¶
func NewServiceIDClient(auth core.Authenticator, key *APIKey) (*ServiceID, error)
Returns a new Service ID client
func (*ServiceID) CreateAPIKey ¶
func (s *ServiceID) CreateAPIKey(options *identityv1.CreateAPIKeyOptions) (*identityv1.APIKey, *core.DetailedResponse, error)
Creates a new API Key
func (*ServiceID) DeleteAPIKey ¶
func (s *ServiceID) DeleteAPIKey(options *identityv1.DeleteAPIKeyOptions) (*core.DetailedResponse, error)
Deletes the API Key
func (*ServiceID) GetAPIKeysDetails ¶
func (s *ServiceID) GetAPIKeysDetails(options *identityv1.GetAPIKeysDetailsOptions) (*identityv1.APIKey, *core.DetailedResponse, error)
Returns the details of a given API key
func (*ServiceID) GetAccount ¶
Returns the account ID
func (*ServiceID) ListAPIKeys ¶
func (s *ServiceID) ListAPIKeys(options *identityv1.ListAPIKeysOptions) (*identityv1.APIKeyList, *core.DetailedResponse, error)
Lists the API keys of a service ID
func (*ServiceID) ListServiceID ¶
func (s *ServiceID) ListServiceID(options *identityv1.ListServiceIdsOptions) (*identityv1.ServiceIDList, *core.DetailedResponse, error)
Returns list of service IDs
type ServiceIDClient ¶
type ServiceIDClient interface { CreateAPIKey(options *identityv1.CreateAPIKeyOptions) (*identityv1.APIKey, *core.DetailedResponse, error) DeleteAPIKey(options *identityv1.DeleteAPIKeyOptions) (*core.DetailedResponse, error) ListAPIKeys(options *identityv1.ListAPIKeysOptions) (*identityv1.APIKeyList, *core.DetailedResponse, error) GetAPIKeysDetails(*identityv1.GetAPIKeysDetailsOptions) (*identityv1.APIKey, *core.DetailedResponse, error) ListServiceID(options *identityv1.ListServiceIdsOptions) (*identityv1.ServiceIDList, *core.DetailedResponse, error) }
type VPC ¶
type VPC interface { DeleteInstance(options *vpcv1.DeleteInstanceOptions) (*core.DetailedResponse, error) ListInstances(options *vpcv1.ListInstancesOptions) (*vpcv1.InstanceCollection, *core.DetailedResponse, error) DeleteVPC(options *vpcv1.DeleteVPCOptions) (*core.DetailedResponse, error) ListVpcs(options *vpcv1.ListVpcsOptions) (*vpcv1.VPCCollection, *core.DetailedResponse, error) DeleteFloatingIP(options *vpcv1.DeleteFloatingIPOptions) (*core.DetailedResponse, error) ListFloatingIps(options *vpcv1.ListFloatingIpsOptions) (*vpcv1.FloatingIPCollection, *core.DetailedResponse, error) DeleteSubnet(options *vpcv1.DeleteSubnetOptions) (*core.DetailedResponse, error) ListSubnets(options *vpcv1.ListSubnetsOptions) (*vpcv1.SubnetCollection, *core.DetailedResponse, error) GetSubnetPublicGateway(options *vpcv1.GetSubnetPublicGatewayOptions) (*vpcv1.PublicGateway, *core.DetailedResponse, error) DeletePublicGateway(options *vpcv1.DeletePublicGatewayOptions) (*core.DetailedResponse, error) UnsetSubnetPublicGateway(options *vpcv1.UnsetSubnetPublicGatewayOptions) (*core.DetailedResponse, error) DeleteLoadBalancer(options *vpcv1.DeleteLoadBalancerOptions) (*core.DetailedResponse, error) ListLoadBalancers(options *vpcv1.ListLoadBalancersOptions) (*vpcv1.LoadBalancerCollection, *core.DetailedResponse, error) GetLoadBalancer(options *vpcv1.GetLoadBalancerOptions) (result *vpcv1.LoadBalancer, response *core.DetailedResponse, err error) }
type VPCInstance ¶
type VPCInstance struct{}
type VPCLoadBalancer ¶
type VPCLoadBalancer struct{}
type VPCNetwork ¶
type VPCNetwork struct{}
Click to show internal directories.
Click to hide internal directories.