artifact

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-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 Credentials

type Credentials struct {
	// General config.
	Name  string `json:"name"`
	Types []Type `json:"types"`
	// Helm repository config.
	Repository string `json:"repository,omitempty"`
	Username   string `json:"username,omitempty"`
	Password   string `json:"password,omitempty"`
	// Github config.
	BaseURL    string `json:"baseURL,omitempty"`
	Token      string `json:"token,omitempty"`
	Enterprise bool   `json:"enterprise,omitempty"`
	// GCS Object config.
	JSONPath string `json:"jsonPath,omitempty"`
}

type CredentialsController

type CredentialsController interface {
	ListArtifactCredentialsNamesAndTypes() []Credentials
	HelmClientForAccountName(string) (helm.Client, error)
	HTTPClientForAccountName(string) (*http.Client, error)
	GCSClientForAccountName(string) (*storage.Client, error)
	GitClientForAccountName(string) (*github.Client, error)
	GitRepoClientForAccountName(string) (*http.Client, error)
}

func NewCredentialsController

func NewCredentialsController(dir string) (CredentialsController, error)

func NewDefaultCredentialsController

func NewDefaultCredentialsController() (CredentialsController, error)

type Type

type Type string
const (
	TypeHelmChart               Type = "helm/chart"
	TypeGitRepo                 Type = "git/repo"
	TypeFront50PipelineTemplate Type = "front50/pipelineTemplate"
	TypeEmbeddedBase64          Type = "embedded/base64"
	TypeCustomerObject          Type = "custom/object"
	TypeGCSObject               Type = "gcs/object"
	TypeHTTPFile                Type = "http/file"
	TypeDockerImage             Type = "docker/image"
	TypeKubernetesConfigMap     Type = "kubernetes/configMap"
	TypeKubernetesDeployment    Type = "kubernetes/deployment"
	TypeKubernetesReplicaSet    Type = "kubernetes/replicaSet"
	TypeKubernetesSecret        Type = "kubernetes/secret"
	TypeGithubFile              Type = "github/file"
)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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