template

package
v0.0.0-...-c106f65 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDockerImageURL

func GetDockerImageURL(gcpProjectID, gcpRegion, dockerRepositoryName string) string

Types

type Template

type Template struct {
	// Unique ID of the env.
	TemplateID string

	// GCP region
	Region string
	// GCP projectID
	ProjectID string

	// Path to the directory where all docker contexts are stored. This directory is a FUSE mounted bucket where the contexts were uploaded.
	DockerContextsPath string
	// Docker registry where the docker images are uploaded for archivation/caching.
	DockerRegistryName string
	// Path to the directory where all envs are stored.
	EnvsDiskPath string
	// Name of the bucket where the envs are stored.
	BucketName string
}

func (*Template) Delete

func (t *Template) Delete(ctx context.Context, tracer trace.Tracer, artifactRegistry *artifactregistry.Client, storage *storages.GoogleCloudStorage) error

func (*Template) TemplateDirPath

func (t *Template) TemplateDirPath() string

TemplateDirPath is the directory where the built template is stored.

Jump to

Keyboard shortcuts

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