Documentation
¶
Overview ¶
Package s3resource implements the methods to access resources from s3
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Info ¶
type S3Info struct { Path string `json:"path"` ExpectedBucketOwner string `json:"expectedBucketOwner"` }
S3Info represents the sourceInfo type sent by runcommand
type S3Resource ¶
type S3Resource struct { Info S3Info // contains filtered or unexported fields }
S3Resource is a struct for the remote resource of type git
func NewS3Resource ¶
func NewS3Resource(context context.T, info string) (s3 *S3Resource, err error)
NewS3Resource is a constructor of type GitResource
func (*S3Resource) DownloadRemoteResource ¶
func (s3 *S3Resource) DownloadRemoteResource(filesys filemanager.FileSystem, destPath string) (err error, result *remoteresource.DownloadResult)
DownloadRemoteResource calls download to pull down files or directory from s3
func (*S3Resource) ValidateLocationInfo ¶
func (s3 *S3Resource) ValidateLocationInfo() (valid bool, err error)
ValidateLocationInfo ensures that the required parameters of SourceInfo are specified
Click to show internal directories.
Click to hide internal directories.