cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ec2InstanceCache

type Ec2InstanceCache struct {
	Entries map[string]*ec2.Instance
}

Ec2InstanceCache has Cached Ec2Instances

func GetEc2InstanceCache

func GetEc2InstanceCache() *Ec2InstanceCache

GetEc2InstanceCache return the Ec2InstanceCache instance

func (*Ec2InstanceCache) ReadEntry

func (cache *Ec2InstanceCache) ReadEntry(instanceID string) *ec2.Instance

ReadEntry return a cached Ec2Instance which identified by instanceID.

func (*Ec2InstanceCache) WriteEntry

func (cache *Ec2InstanceCache) WriteEntry(instanceID string, instance *ec2.Instance)

WriteEntry cache the specified ec2Instance in Ec2InstanceCache.

type VpcCache

type VpcCache struct {
	Entries map[string]*ec2.Vpc
}

VpcCache has Cached Vpcs

func GetVpcCache

func GetVpcCache() *VpcCache

GetVpcCache return the VpcCache instance.

func (*VpcCache) MakeCache

func (cache *VpcCache) MakeCache() error

MakeCache create Vpc Cache

func (*VpcCache) ReadEntry

func (cache *VpcCache) ReadEntry(vpcID string) *ec2.Vpc

ReadEntry return a cached Vpc which identifiied by vpcID

func (*VpcCache) VpcName

func (cache *VpcCache) VpcName(vpcID string) *string

VpcName return name of the vpc which specified by vpcID

func (*VpcCache) WriteEntry

func (cache *VpcCache) WriteEntry(vpcID string, vpc *ec2.Vpc)

WriteEntry cache the specified Vpc in VpcCache.

Jump to

Keyboard shortcuts

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