resources

package
v0.0.0-...-59dbd6c Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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 APIKey

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

type CleanupOptions

type CleanupOptions struct {
	Resource *common.Resource
	Debug    bool
}

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 (*IBMVPCClient) ListFloatingIps

func (*IBMVPCClient) ListInstances

func (*IBMVPCClient) ListLoadBalancers

func (*IBMVPCClient) ListSubnets

func (*IBMVPCClient) ListVpcs

func (*IBMVPCClient) UnsetSubnetPublicGateway

func (c *IBMVPCClient) UnsetSubnetPublicGateway(options *vpcv1.UnsetSubnetPublicGatewayOptions) (*core.DetailedResponse, error)

type PowerVS

type PowerVS interface {
	GetNetworks() (*models.Networks, error)
	DeleteNetwork(id string) error
	GetInstances() (*models.PVMInstances, error)
	DeleteInstance(id string) error
	GetPorts(id string) (*models.NetworkPorts, error)
	DeletePort(networkID, portID string) 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 Resource

type Resource interface {
	// contains filtered or unexported methods
}

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

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

Returns the details of a given API key

func (*ServiceID) GetAccount

func (s *ServiceID) GetAccount() (*string, error)

Returns the account ID

func (*ServiceID) ListAPIKeys

Lists the API keys of a service ID

func (*ServiceID) ListServiceID

Returns list of service IDs

type VPCInstance

type VPCInstance struct{}

type VPCLoadBalancer

type VPCLoadBalancer struct{}

type VPCNetwork

type VPCNetwork struct{}

type VPCs

type VPCs struct{}

Jump to

Keyboard shortcuts

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