Documentation ¶
Index ¶
- type AWSClient
- func (client *AWSClient) DeleteFile(bucket, path string) error
- func (client *AWSClient) DeleteVMsInVPC(vpcID string) error
- func (client *AWSClient) DeleteVersionedBucket(name string) error
- func (client *AWSClient) EnsureBucketExists(name string) error
- func (client *AWSClient) EnsureFileExists(bucket, path string, defaultContents []byte) ([]byte, bool, error)
- func (client *AWSClient) FindLongestMatchingHostedZone(subdomain string) (string, string, error)
- func (client *AWSClient) HasFile(bucket, path string) (bool, error)
- func (client *AWSClient) IAAS() string
- func (client *AWSClient) LoadFile(bucket, path string) ([]byte, error)
- func (client *AWSClient) Region() string
- func (client *AWSClient) WriteFile(bucket, path string, contents []byte) error
- type IClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSClient ¶
type AWSClient struct {
// contains filtered or unexported fields
}
AWSClient is the concrete implementation of IClient on AWS
func (*AWSClient) DeleteFile ¶
DeleteFile deletes a file from S3
func (*AWSClient) DeleteVMsInVPC ¶
DeleteVMsInVPC deletes all the VMs in the given VPC
func (*AWSClient) DeleteVersionedBucket ¶
DeleteVersionedBucket deletes and empties a versioned bucket
func (*AWSClient) EnsureBucketExists ¶
EnsureBucketExists checks if the named bucket exists and creates it if it doesn't
func (*AWSClient) EnsureFileExists ¶
func (client *AWSClient) EnsureFileExists(bucket, path string, defaultContents []byte) ([]byte, bool, error)
EnsureFileExists checks for the named file in S3 and creates it if it doesn't Second argument is true if new file was created
func (*AWSClient) FindLongestMatchingHostedZone ¶
FindLongestMatchingHostedZone finds the longest hosted zone that matches the given subdomain
type IClient ¶
type IClient interface { DeleteFile(bucket, path string) error DeleteVersionedBucket(name string) error DeleteVMsInVPC(vpcID string) error EnsureBucketExists(name string) error EnsureFileExists(bucket, path string, defaultContents []byte) ([]byte, bool, error) FindLongestMatchingHostedZone(subdomain string) (string, string, error) HasFile(bucket, path string) (bool, error) LoadFile(bucket, path string) ([]byte, error) WriteFile(bucket, path string, contents []byte) error Region() string IAAS() string }
IClient represents actions taken against AWS
Click to show internal directories.
Click to hide internal directories.