artifact

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 11 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"`
}

type CredentialsController

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

func CredentialsControllerInstance

func CredentialsControllerInstance(c *gin.Context) CredentialsController

func NewCredentialsController

func NewCredentialsController(dir string) (CredentialsController, error)

func NewDefaultCredentialsController

func NewDefaultCredentialsController() (CredentialsController, error)

type Type

type Type string
const (
	CredentialsControllerInstanceKey      = "ArtifactCredentialsController"
	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