Documentation ¶
Index ¶
- func Md5Sum(r io.ReadSeeker) (md5hex string, md5b64 string, size int64, err error)
- func Md5sumBase64(data []byte) string
- func Md5sumBase64File(f *os.File) (md5sum string, size int64, err error)
- type S3
- func (s *S3) Run(env *goansible.CommandEnv) (*goansible.Result, error)
- func (s *S3) S3CpFile(a, b string) (*goansible.Result, error)
- func (s *S3) UploadFileD(S3 *s3.S3, key string, file *os.File, contentType, perm string) (*s3.PutObjectInput, *s3.PutObjectOutput, error)
- func (s *S3) ZipUploadReaderD(S3 *s3.S3, key string, data io.Reader, contentType, perm string) (*s3.PutObjectInput, *s3.PutObjectOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Md5sumBase64 ¶
Types ¶
type S3 ¶
type S3 struct { Bucket string `goansible:"bucket,required"` Region string `goansible:"region"` PutFile string `goansible:"put_file"` GetFile string `goansible:"get_file"` Mkdir bool `goansible:"mkdir"` At string `goansible:"at"` Public bool `goansible:"public"` ContentType string `goansible:"content_type"` Writable bool `goansible:"writable"` GZip bool `goansible:"gzip"` }
func (*S3) UploadFileD ¶
func (*S3) ZipUploadReaderD ¶
Click to show internal directories.
Click to hide internal directories.