Documentation ¶
Index ¶
- Constants
- func AccountSessionKey(account *common.Account, region string) utils.SessionKey
- func GetAccount(sessionFactory *utils.AWSSessionFactory, configAccount *common.Account) (common.Account, error)
- func ListAMIs(sess *session.Session) (common.Images, error)
- func ValidateAccount(sessionFactory *utils.AWSSessionFactory, account *common.Account) error
- type AMISharePlan
- type AMISharePlanAccount
- type AWSShareAMI
- func (shareAMI *AWSShareAMI) FilterAMIs(sourceImages ImagesByRegion, account common.Account) (ImagesByGroup, error)
- func (shareAMI *AWSShareAMI) Run() error
- func (shareAMI *AWSShareAMI) ScanForAMIs(account *common.Account) (ImagesByRegion, error)
- func (shareAMI *AWSShareAMI) ValidateAccounts() error
- func (shareAMI *AWSShareAMI) WritePlan(plan *AMISharePlan) error
- type EC2Image
- func (e *EC2Image) AddTags(tags map[string]string, tagSnapshots bool) error
- func (e *EC2Image) CopyTags(sess *session.Session, shareSnapshots bool) error
- func (e *EC2Image) Date() time.Time
- func (e *EC2Image) MarshalYAML() (interface{}, error)
- func (e *EC2Image) Match(filter common.Filter) bool
- func (e *EC2Image) Properties() types.Properties
- func (e *EC2Image) ShareWithAccount(accountId string, shareSnapshots bool) error
- func (e *EC2Image) String() string
- type ImagesByGroup
- type ImagesByRegion
Constants ¶
View Source
const ( All = "all" )
View Source
const (
DefaultRegion = "us-east-1"
)
Variables ¶
This section is empty.
Functions ¶
func AccountSessionKey ¶
func AccountSessionKey(account *common.Account, region string) utils.SessionKey
func GetAccount ¶
func ListAMIs ¶
List AMIs from the given AWS session the session is attached to an AWS account and region
func ValidateAccount ¶
func ValidateAccount(sessionFactory *utils.AWSSessionFactory, account *common.Account) error
Types ¶
type AMISharePlan ¶
type AMISharePlan struct {}
type AMISharePlanAccount ¶
type AMISharePlanAccount struct {}
type AWSShareAMI ¶
type AWSShareAMI struct { // contains filtered or unexported fields }
func NewAWSShareAMI ¶
func NewAWSShareAMI(params *common.ShareParams) (AWSShareAMI, error)
func (*AWSShareAMI) FilterAMIs ¶
func (shareAMI *AWSShareAMI) FilterAMIs(sourceImages ImagesByRegion, account common.Account) (ImagesByGroup, error)
func (*AWSShareAMI) Run ¶
func (shareAMI *AWSShareAMI) Run() error
func (*AWSShareAMI) ScanForAMIs ¶
func (shareAMI *AWSShareAMI) ScanForAMIs(account *common.Account) (ImagesByRegion, error)
func (*AWSShareAMI) ValidateAccounts ¶
func (shareAMI *AWSShareAMI) ValidateAccounts() error
func (*AWSShareAMI) WritePlan ¶
func (shareAMI *AWSShareAMI) WritePlan(plan *AMISharePlan) error
type EC2Image ¶
type EC2Image struct {
// contains filtered or unexported fields
}
func (*EC2Image) CopyTags ¶
Copy tags to target account via AWS session the session is attached to an AWS account and region
func (*EC2Image) MarshalYAML ¶
func (*EC2Image) Properties ¶
func (e *EC2Image) Properties() types.Properties
func (*EC2Image) ShareWithAccount ¶
type ImagesByGroup ¶
type ImagesByGroup map[string]ImagesByRegion
type ImagesByRegion ¶
Click to show internal directories.
Click to hide internal directories.