ec2

package
v0.18.26 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TagFilter

type TagFilter struct {
	// Types that are valid to be assigned to Spec:
	//	*TagFilter_Key
	//	*TagFilter_KvPair_
	Spec                 isTagFilter_Spec `protobuf_oneof:"spec"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*TagFilter) Descriptor

func (*TagFilter) Descriptor() ([]byte, []int)

func (*TagFilter) Equal

func (this *TagFilter) Equal(that interface{}) bool

func (*TagFilter) GetKey

func (m *TagFilter) GetKey() string

func (*TagFilter) GetKvPair

func (m *TagFilter) GetKvPair() *TagFilter_KvPair

func (*TagFilter) GetSpec

func (m *TagFilter) GetSpec() isTagFilter_Spec

func (*TagFilter) ProtoMessage

func (*TagFilter) ProtoMessage()

func (*TagFilter) Reset

func (m *TagFilter) Reset()

func (*TagFilter) String

func (m *TagFilter) String() string

func (*TagFilter) XXX_DiscardUnknown

func (m *TagFilter) XXX_DiscardUnknown()

func (*TagFilter) XXX_Marshal

func (m *TagFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TagFilter) XXX_Merge

func (m *TagFilter) XXX_Merge(src proto.Message)

func (*TagFilter) XXX_OneofFuncs

func (*TagFilter) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*TagFilter) XXX_Size

func (m *TagFilter) XXX_Size() int

func (*TagFilter) XXX_Unmarshal

func (m *TagFilter) XXX_Unmarshal(b []byte) error

type TagFilter_Key

type TagFilter_Key struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3,oneof"`
}

func (*TagFilter_Key) Equal

func (this *TagFilter_Key) Equal(that interface{}) bool

type TagFilter_KvPair

type TagFilter_KvPair struct {
	// keys are not case-sensitive, as with AWS Condition Keys
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// values are case-sensitive
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TagFilter_KvPair) Descriptor

func (*TagFilter_KvPair) Descriptor() ([]byte, []int)

func (*TagFilter_KvPair) Equal

func (this *TagFilter_KvPair) Equal(that interface{}) bool

func (*TagFilter_KvPair) GetKey

func (m *TagFilter_KvPair) GetKey() string

func (*TagFilter_KvPair) GetValue

func (m *TagFilter_KvPair) GetValue() string

func (*TagFilter_KvPair) ProtoMessage

func (*TagFilter_KvPair) ProtoMessage()

func (*TagFilter_KvPair) Reset

func (m *TagFilter_KvPair) Reset()

func (*TagFilter_KvPair) String

func (m *TagFilter_KvPair) String() string

func (*TagFilter_KvPair) XXX_DiscardUnknown

func (m *TagFilter_KvPair) XXX_DiscardUnknown()

func (*TagFilter_KvPair) XXX_Marshal

func (m *TagFilter_KvPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TagFilter_KvPair) XXX_Merge

func (m *TagFilter_KvPair) XXX_Merge(src proto.Message)

func (*TagFilter_KvPair) XXX_Size

func (m *TagFilter_KvPair) XXX_Size() int

func (*TagFilter_KvPair) XXX_Unmarshal

func (m *TagFilter_KvPair) XXX_Unmarshal(b []byte) error

type TagFilter_KvPair_

type TagFilter_KvPair_ struct {
	KvPair *TagFilter_KvPair `protobuf:"bytes,2,opt,name=kv_pair,json=kvPair,proto3,oneof"`
}

func (*TagFilter_KvPair_) Equal

func (this *TagFilter_KvPair_) Equal(that interface{}) bool

type UpstreamSpec

type UpstreamSpec struct {
	// The AWS Region where the desired EC2 instances exist
	Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
	// Optional, if not set, Gloo will try to use the default AWS secret specified by environment variables.
	// If a secret is not provided, the environment must specify both the AWS access key and secret.
	// The environment variables used to indicate the AWS account can be:
	// - for the access key: "AWS_ACCESS_KEY_ID" or "AWS_ACCESS_KEY"
	// - for the secret: "AWS_SECRET_ACCESS_KEY" or "AWS_SECRET_KEY"
	// If set, a [Gloo Secret Ref](https://gloo.solo.io/introduction/concepts/#Secrets) to an AWS Secret
	// AWS Secrets can be created with `glooctl secret create aws ...`
	// If the secret is created manually, it must conform to the following structure:
	//  “`
	//  access_key: <aws access key>
	//  secret_key: <aws secret key>
	//  “`
	// Gloo will create an EC2 API client with this credential. You may choose to use a credential with limited access
	// in conjunction with a list of Roles, specified by their Amazon Resource Number (ARN).
	SecretRef *core.ResourceRef `protobuf:"bytes,2,opt,name=secret_ref,json=secretRef,proto3" json:"secret_ref,omitempty"`
	// Optional, Amazon Resource Number (ARN) referring to IAM Role that should be assumed when the Upstream
	// queries for eligible EC2 instances.
	// If provided, Gloo will create an EC2 API client with the provided role. If not provided, Gloo will not assume
	// a role.
	RoleArn string `protobuf:"bytes,7,opt,name=role_arn,json=roleArn,proto3" json:"role_arn,omitempty"`
	// deprecated: use role_arn. If you do use this field, only the first element will be read
	RoleArns []string `protobuf:"bytes,6,rep,name=role_arns,json=roleArns,proto3" json:"role_arns,omitempty"`
	// List of tag filters for selecting instances
	// An instance must match all the filters in order to be selected
	// Filter keys are not case-sensitive
	Filters []*TagFilter `protobuf:"bytes,3,rep,name=filters,proto3" json:"filters,omitempty"`
	// If set, will use the EC2 public IP address. Defaults to the private IP address.
	PublicIp bool `protobuf:"varint,4,opt,name=public_ip,json=publicIp,proto3" json:"public_ip,omitempty"`
	// If set, will use this port on EC2 instances. Defaults to port 80.
	Port                 uint32   `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Upstream Spec for AWS Lambda Upstreams AWS Upstreams represent a collection of Lambda Functions for a particular AWS Account (IAM Role or User account) in a particular region

func (*UpstreamSpec) Descriptor

func (*UpstreamSpec) Descriptor() ([]byte, []int)

func (*UpstreamSpec) Equal

func (this *UpstreamSpec) Equal(that interface{}) bool

func (*UpstreamSpec) GetFilters

func (m *UpstreamSpec) GetFilters() []*TagFilter

func (*UpstreamSpec) GetPort

func (m *UpstreamSpec) GetPort() uint32

func (*UpstreamSpec) GetPublicIp

func (m *UpstreamSpec) GetPublicIp() bool

func (*UpstreamSpec) GetRegion

func (m *UpstreamSpec) GetRegion() string

func (*UpstreamSpec) GetRoleArn added in v0.18.10

func (m *UpstreamSpec) GetRoleArn() string

func (*UpstreamSpec) GetRoleArns

func (m *UpstreamSpec) GetRoleArns() []string

func (*UpstreamSpec) GetSecretRef

func (m *UpstreamSpec) GetSecretRef() *core.ResourceRef

func (*UpstreamSpec) ProtoMessage

func (*UpstreamSpec) ProtoMessage()

func (*UpstreamSpec) Reset

func (m *UpstreamSpec) Reset()

func (*UpstreamSpec) String

func (m *UpstreamSpec) String() string

func (*UpstreamSpec) XXX_DiscardUnknown

func (m *UpstreamSpec) XXX_DiscardUnknown()

func (*UpstreamSpec) XXX_Marshal

func (m *UpstreamSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpstreamSpec) XXX_Merge

func (m *UpstreamSpec) XXX_Merge(src proto.Message)

func (*UpstreamSpec) XXX_Size

func (m *UpstreamSpec) XXX_Size() int

func (*UpstreamSpec) XXX_Unmarshal

func (m *UpstreamSpec) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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