aws

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 47 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 {
	Cfg        aws.Config
	Tags       map[string]string
	Id         string
	Ec2        *ec2.Client
	Localized  bool
	APIToken   string
	APICertKey string

	Role      string
	Region    string
	CIDR      string
	Instance  string
	IP        string
	AccountID string
	// contains filtered or unexported fields
}

func Init

func Init(region, cidr, service string) Client

func (Client) AttachPolicy

func (c Client) AttachPolicy(role, policyArn string) error

func (*Client) Boot

func (c *Client) Boot() error

func (*Client) ClusterName

func (c *Client) ClusterName() string

func (Client) CreateCluster

func (c Client) CreateCluster()

func (Client) CreatePolicy

func (c Client) CreatePolicy(name string, p policy) (string, error)

func (Client) CreateRole

func (c Client) CreateRole(name string, r role) (string, error)

func (Client) FetchAdminKeys

func (c Client) FetchAdminKeys() (string, error)

func (Client) GetAPICAHash

func (c Client) GetAPICAHash() (string, error)

func (Client) GetAPICertKey

func (c Client) GetAPICertKey() (string, error)

func (*Client) GetAPIEndpoint

func (c *Client) GetAPIEndpoint() (string, error)

func (*Client) GetAPIToken

func (c *Client) GetAPIToken() (string, error)

func (Client) IRSAPolicy

func (c Client) IRSAPolicy(bucketArn string) (string, error)

func (Client) InstanceID

func (c Client) InstanceID() string

func (Client) InstanceIP

func (c Client) InstanceIP() string

func (Client) InstanceRegion

func (c Client) InstanceRegion() string

func (Client) IsMaster

func (c Client) IsMaster() bool

func (Client) SearchAMI

func (c Client) SearchAMI(owner string, tags map[string]string) (string, string, string, error)

func (Client) UploadBootstrapToken

func (c Client) UploadBootstrapToken(key, token string) error

type Direction

type Direction string
const (
	Ingress Direction = "ingress"
	Egress  Direction = "egress"
)

type Instance

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

type Secret

type Secret struct {
	Token   string `json:"TOKEN"`
	CertKey string `json:"CERTKEY"`
}

Jump to

Keyboard shortcuts

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