deployer

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployedFiles

type DeployedFiles map[string]string

DeployedFiles is a map of file keys to file hashes.

type Deployer

type Deployer struct {
	S3Client *s3.Client
}

Deployer is a client for deploying artifacts.

func (*Deployer) NewDeployment

func (d *Deployer) NewDeployment(sourceBucket string, targetBucket string) *Deployment

type Deployment

type Deployment struct {
	SourceBucket string
	TargetBucket string
	// contains filtered or unexported fields
}

Deployment is responsible for deploying artifacts from a source bucket to a target bucket.

func (*Deployment) Deploy

func (d *Deployment) Deploy(key string, version *string) (DeployedFiles, error)

Deploy deploys the artifact with the given key from the source bucket to the target bucket.

func (*Deployment) HashesForArtifact

func (d *Deployment) HashesForArtifact(key string, version *string) (DeployedFiles, error)

HashesForArtifact returns all files that are in the given zip.

func (*Deployment) HashesForDeployedFiles

func (d *Deployment) HashesForDeployedFiles() (DeployedFiles, error)

HashesForDeployedFiles returns all files that have been deployed to the target bucket.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL