Documentation
¶
Index ¶
- func AccountNumber(c Storage) (string, error)
- func CreateBucket(c Storage) error
- func DeleteObject(c Storage, bucket string, key string) error
- func Download(c Storage, bucket string, key string) ([]byte, error)
- func GetCallerIdentity(c Storage) (*sts.GetCallerIdentityOutput, error)
- func SendMessage(c Storage, phone, message string) error
- func Session(c Storage) *session.Session
- func Upload(c Storage, bucket string, key string, file io.Reader) error
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCallerIdentity ¶
func GetCallerIdentity(c Storage) (*sts.GetCallerIdentityOutput, error)
GetCallerIdentity .
Types ¶
type Storage ¶
type Storage struct { AccessKeyID string `json:"id"` SecretAccessKey string `json:"secret"` SessionToken string `json:"session"` Region string `json:"region"` Bucket string `json:"bucket"` Expiration time.Time `json:"expiration"` }
Storage is S3 bucket storage.
Click to show internal directories.
Click to hide internal directories.