types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id      string `json:"id"`
	Profile string `json:"profile"`
	Alias   string `json:"alias"`
}

type Accounts

type Accounts []Account

func (Accounts) GetById

func (a Accounts) GetById(in string) Account

type NetworkInterface

type NetworkInterface struct {
	Account            Account
	Region             string
	VpcId              string
	SubnetId           string
	OwnerId            string
	PublicIP           string
	PublicDnsName      string
	PrivateIpAddress   string
	PrivateIpAddresses []string
	PrivateDnsName     string
	AttachTime         time.Time
	AvailabilityZone   string
	Description        string
	InterfaceType      string
	NetworkInterfaceId string
	RequesterId        string
	RequesterManaged   bool
	InstanceId         string
	Type               string
	Status             string
}

func ToNetworkInterface

func ToNetworkInterface(account Account, region string, in types.NetworkInterface) NetworkInterface

type NetworkInterfaces

type NetworkInterfaces []NetworkInterface

func ToNetworkInterfaces

func ToNetworkInterfaces(account Account, region string, in []types.NetworkInterface) NetworkInterfaces

func (NetworkInterfaces) GetByCidr

func (v NetworkInterfaces) GetByCidr(cidr string) NetworkInterfaces

func (NetworkInterfaces) GetById

func (NetworkInterfaces) GetByIp

func (NetworkInterfaces) GetBySubnetId added in v0.0.2

func (v NetworkInterfaces) GetBySubnetId(id string) NetworkInterfaces

func (NetworkInterfaces) GetByVpcId added in v0.0.2

func (v NetworkInterfaces) GetByVpcId(id string) NetworkInterfaces

type Subnet

type Subnet struct {
	Account          Account
	Region           string
	SubnetId         string
	Name             string
	VpcId            string
	CidrBlock        string
	AvailabilityZone string
	OwnerId          string
	State            string
}

func ToSubnet

func ToSubnet(account Account, region string, in types.Subnet) Subnet

type Subnets

type Subnets []Subnet

func ToSubnets

func ToSubnets(account Account, region string, in []types.Subnet) Subnets

func (Subnets) GetByAccountId

func (v Subnets) GetByAccountId(in string) Subnets

func (Subnets) GetByCidr

func (v Subnets) GetByCidr(in string) Subnets

func (Subnets) GetById

func (v Subnets) GetById(in string) Subnets

func (Subnets) GetByIp

func (v Subnets) GetByIp(in string) Subnets

func (Subnets) GetByVpcId added in v0.0.2

func (v Subnets) GetByVpcId(in string) Subnets

type Vpc

type Vpc struct {
	Account   Account
	Region    string
	VpcId     string
	Name      string
	CidrBlock string
	IsDefault bool
	OwnerId   string
	State     string
}

func ToVpc

func ToVpc(account Account, region string, in types.Vpc) Vpc

type Vpcs

type Vpcs []Vpc

func ToVpcs

func ToVpcs(account Account, region string, in []types.Vpc) Vpcs

func (Vpcs) GetByAccountId

func (v Vpcs) GetByAccountId(in string) Vpcs

func (Vpcs) GetByCidr

func (v Vpcs) GetByCidr(in string) Vpcs

func (Vpcs) GetById

func (v Vpcs) GetById(in string) Vpcs

func (Vpcs) GetByIp

func (v Vpcs) GetByIp(in string) Vpcs

Jump to

Keyboard shortcuts

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