Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultArtifactsURL ¶
func DefaultArtifactsURL(env terra.Environment) string
DefaultArtifactsURL returns the artifacts base URL for this environment's default cluster. If the environment spans multiple clusters, artifacts for the releases outside the default cluster will not be found at this URL
Types ¶
type Manager ¶
type Manager interface { // Writer returns a writer that can be used to write artifact data to the given destination(s) // Note: Callers are responsible for closing the writer once data has been written! Writer(release terra.Release, path string) (io.WriteCloser, error) // Location returns links to an individual artifact path. // Either of the fields in the returned Links struct may be empty, depending on how the Manager is configured. // For example if the Manager is not configured to upload artifacts to GCS, the CloudConsoleLink field will be empty Location(release terra.Release, path string) Location // BaseLocationForRelease returns links to the base directory/path for all artifacts for this Release // Either of the fields in the returned Links struct may be empty, depending on how the manager is configured // For example if the Manager is not configured to upload artifacts to GCS, the CloudConsoleLink field will be empty BaseLocationForRelease(release terra.Release) Location }
Manager is for writing operational artifacts to standard locations on the local filesystem or a GCS bucket
func NewManager ¶
func NewManager(artifactType Type, bucketFactory api.BucketFactory, options Options) Manager
Click to show internal directories.
Click to hide internal directories.