vpc

package
v0.0.0-...-ceada53 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(c *client.Client) *Client

func (*Client) CreateVPCTag

func (c *Client) CreateVPCTag(ctx context.Context, tagName string, vpc *VPC) (string, error)

func (*Client) DeleteVPCTag

func (c *Client) DeleteVPCTag(ctx context.Context, cloudType, tag string) (string, error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, cloudType, vpcID string) (*VPC, error)

func (*Client) GetByName

func (c *Client) GetByName(ctx context.Context, cloudType, vpcName string) (*VPC, error)

func (*Client) List

func (c *Client) List(ctx context.Context, cloudType string) ([]*VPC, error)

func (*Client) ListAll

func (c *Client) ListAll(ctx context.Context) ([]*VPC, error)

func (*Client) ListWithParameters

func (c *Client) ListWithParameters(ctx context.Context, parameters *ListVPCParameters) ([]*VPC, error)

func (*Client) ListWithTag

func (c *Client) ListWithTag(ctx context.Context, cloudType, tag string) ([]*VPC, error)

func (*Client) ListWithTagWithParameters

func (c *Client) ListWithTagWithParameters(ctx context.Context, parameters *ListVPCTagParameters) ([]*VPC, error)

type CommonData

type CommonData struct {
	AccountID   string `json:"accountId"`
	AccountName string `json:"accountName"`
	CloudType   string `json:"cloudType"`
	Region      string `json:"region"`
}

type CreateTagData

type CreateTagData struct {
	TagName  string    `json:"tagName"`
	HostVPCs []HostVPC `json:"hostVpcs"`
}

type HostVPC

type HostVPC struct {
	CommonData
	HostVPCID   string `json:"hostVpcId"`
	HostVPCName string `json:"hostVpcName"`
	ID          string `json:"id"`
	Label       string `json:"label"`
}

type ListVPCParameters

type ListVPCParameters struct {
	CloudType  string `json:"cloudType"`
	AccountIDs string `json:"accountIds"`
	Region     string `json:"region"`
	Untagged   string `json:"untagged"`
}

type ListVPCTagParameters

type ListVPCTagParameters struct {
	CloudType string `json:"cloudType"`
	Region    string `json:"region"`
	TagName   string `json:"tagName"`
}

type VPC

type VPC struct {
	CommonData
	HostVPCID       string `json:"hostVPCId"`
	HostVPCName     string `json:"hostVPCName"`
	Tag             string `json:"tag"`
	InterconnectTag string `json:"interconnectTag"`
}

Jump to

Keyboard shortcuts

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