elbv2

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(session *session.Session, db *gorm.DB, log *zap.Logger,
	accountID string, region string) resource.ClientInterface

Types

type Client

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

func (*Client) CollectResource

func (c *Client) CollectResource(resource string, config interface{}) error

func (*Client) LoadBalancers

func (c *Client) LoadBalancers(gConfig interface{}) error

type LoadBalancer

type LoadBalancer struct {
	ID                    uint `gorm:"primarykey"`
	AccountID             string
	Region                string
	AvailabilityZones     []*LoadBalancerAvailabilityZone `gorm:"constraint:OnDelete:CASCADE;"`
	CanonicalHostedZoneId *string
	CreatedTime           *time.Time
	CustomerOwnedIpv4Pool *string
	DNSName               *string
	IpAddressType         *string
	LoadBalancerArn       *string
	LoadBalancerName      *string
	Scheme                *string
	SecurityGroups        *string
	State                 *elbv2.LoadBalancerState `gorm:"embedded;embeddedPrefix:state_"`
	Type                  *string
	VpcId                 *string
}

type LoadBalancerAddress

type LoadBalancerAddress struct {
	ID                             uint `gorm:"primarykey"`
	LoadBalancerAvailabilityZoneID uint
	AllocationId                   *string
	IpAddress                      *string
	PrivateIPv4Address             *string
}

type LoadBalancerAvailabilityZone

type LoadBalancerAvailabilityZone struct {
	ID                    uint `gorm:"primarykey"`
	LoadBalancerID        uint
	LoadBalancerAddresses []*LoadBalancerAddress `gorm:"constraint:OnDelete:CASCADE;"`
	OutpostId             *string
	SubnetId              *string
	ZoneName              *string
}

Jump to

Keyboard shortcuts

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