awscache

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ListCredentialError = func(err error) error {
		return errors.Wrapf(err, "unable to list credentials")
	}

	TimeoutError = errors.New("timed out while waiting for response from aws")

	ResourceMapInitializationError = errors.New("credential resource map not initialized correctly")
)

Functions

This section is empty.

Types

type Cache

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

a credential batch stores the credentialMap available to a given credential spec it is possible that there will be duplicate resource records, for example, if two credentials have access to the same resource, then that resource will be present in both CredentialInstanceGroup entries. For simplicity, we will let that be.

func New

func New(ctx context.Context, secrets v1.SecretList, upstreams map[core.ResourceRef]*glooec2.UpstreamSpecRef, ec2InstanceLister awslister.Ec2InstanceLister) (*Cache, error)

func (*Cache) FilterEndpointsForUpstream

func (c *Cache) FilterEndpointsForUpstream(upstream *glooec2.UpstreamSpecRef) ([]*ec2.Instance, error)

type CredentialInstanceGroup

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

CredentialInstanceGroup represents the instances available to a given credentialSpec

func NewCredentialInstanceGroup

func NewCredentialInstanceGroup() *CredentialInstanceGroup

Jump to

Keyboard shortcuts

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