Documentation ¶
Index ¶
- Constants
- func Compress(writer *io.PipeWriter, targetPath string, errChan chan error)
- func CreateSession(rolearn string, region string) *session.Session
- func CreateSessionForLocalstack(region string, endpoint string) *session.Session
- func Decompress(dest string, reader *io.PipeReader, errChan chan error)
- type Artifact
- type DeployConfig
- type DeployManager
- type Downloader
- type S3Manager
- type Uploader
- type Walker
Constants ¶
View Source
const (
BCATFILE = "bcat.tar.zst"
)
Variables ¶
This section is empty.
Functions ¶
func Compress ¶
func Compress(writer *io.PipeWriter, targetPath string, errChan chan error)
Compress compress the file with the specified path.
func CreateSession ¶
CreateSession Create a session for aws s3.
func CreateSessionForLocalstack ¶
CreateSessionForLocalstack Create a session for localstack
func Decompress ¶
func Decompress(dest string, reader *io.PipeReader, errChan chan error)
Decompress method
Types ¶
type Artifact ¶
type Artifact struct { Name string `yaml:"name"` Path string `yaml:"path"` Dest string `yaml:"dest"` }
Artifact used in Deploy-Cmd
type DeployConfig ¶
type DeployConfig struct {
Artifacts []Artifact `yaml:"artifacts"`
}
DeployConfig Deploy-Cmd configuration struct
type DeployManager ¶
type DeployManager struct { Downloader Downloader Config DeployConfig }
DeployManager manage deploy struct
type S3Manager ¶
S3Manager A struct with the session and target bucket name. Data is transferred to s3 via this.
func (*S3Manager) DownloadS3 ¶
func (manager *S3Manager) DownloadS3(writer *io.PipeWriter, downloadPath string, errChan chan error)
DownloadS3 method
func (*S3Manager) UploadS3 ¶
func (manager *S3Manager) UploadS3(reader *io.PipeReader, uploadPath string, outputChan chan *s3manager.UploadOutput, errChan chan error)
UploadS3 Upload the file to s3 based on the [] byte passed as an argument.
Click to show internal directories.
Click to hide internal directories.