Help us shape the future of Go! Take the 2026 Go Developer Survey

repository

package
v0.6.15 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const JSON_KEY_USERNAME string = "_json_key"
View Source
const REGISTRYTYPE_ARTIFACT_REGISTRY = "artifact-registry"
View Source
const REGISTRYTYPE_DOCKER_HUB = "docker-hub"
View Source
const REGISTRYTYPE_ECR = "ecr"
View Source
const REGISTRYTYPE_GCR = "gcr"
View Source
const REGISTRYTYPE_OTHER = "other"

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerArtifactStore

type DockerArtifactStore struct {
	Id                 string       `sql:"id,pk" json:"id,,omitempty"`
	PluginId           string       `sql:"plugin_id,notnull" json:"pluginId,omitempty"`
	RegistryURL        string       `sql:"registry_url" json:"registryUrl,omitempty"`
	RegistryType       RegistryType `sql:"registry_type,notnull" json:"registryType,omitempty"`
	AWSAccessKeyId     string       `sql:"aws_accesskey_id" json:"awsAccessKeyId,omitempty" `
	AWSSecretAccessKey string       `sql:"aws_secret_accesskey" json:"awsSecretAccessKey,omitempty"`
	AWSRegion          string       `sql:"aws_region" json:"awsRegion,omitempty"`
	Username           string       `sql:"username" json:"username,omitempty"`
	Password           string       `sql:"password" json:"password,omitempty"`
	IsDefault          bool         `sql:"is_default,notnull" json:"isDefault"`
	Connection         string       `sql:"connection" json:"connection,omitempty"`
	Cert               string       `sql:"cert" json:"cert,omitempty"`
	Active             bool         `sql:"active,notnull" json:"active"`
	IpsConfig          *DockerRegistryIpsConfig
	sql.AuditLog
	// contains filtered or unexported fields
}

func (*DockerArtifactStore) GetRegistryLocation

func (store *DockerArtifactStore) GetRegistryLocation() (registryLocation string, err error)

type DockerArtifactStoreRepository

type DockerArtifactStoreRepository interface {
	GetConnection() *pg.DB
	Save(artifactStore *DockerArtifactStore, tx *pg.Tx) error
	FindActiveDefaultStore() (*DockerArtifactStore, error)
	FindAllActiveForAutocomplete() ([]DockerArtifactStore, error)
	FindAll() ([]DockerArtifactStore, error)
	FindOne(storeId string) (*DockerArtifactStore, error)
	FindOneInactive(storeId string) (*DockerArtifactStore, error)
	Update(artifactStore *DockerArtifactStore, tx *pg.Tx) error
	Delete(storeId string) error
	MarkRegistryDeleted(artifactStore *DockerArtifactStore) error
	FindInactive(storeId string) (bool, error)
}

type DockerArtifactStoreRepositoryImpl

type DockerArtifactStoreRepositoryImpl struct {
	// contains filtered or unexported fields
}

func NewDockerArtifactStoreRepositoryImpl

func NewDockerArtifactStoreRepositoryImpl(dbConnection *pg.DB) *DockerArtifactStoreRepositoryImpl

func (DockerArtifactStoreRepositoryImpl) Delete

func (impl DockerArtifactStoreRepositoryImpl) Delete(storeId string) error

func (DockerArtifactStoreRepositoryImpl) FindActiveDefaultStore

func (impl DockerArtifactStoreRepositoryImpl) FindActiveDefaultStore() (*DockerArtifactStore, error)

func (DockerArtifactStoreRepositoryImpl) FindAll

func (DockerArtifactStoreRepositoryImpl) FindAllActiveForAutocomplete

func (impl DockerArtifactStoreRepositoryImpl) FindAllActiveForAutocomplete() ([]DockerArtifactStore, error)

func (DockerArtifactStoreRepositoryImpl) FindInactive added in v0.6.15

func (impl DockerArtifactStoreRepositoryImpl) FindInactive(storeId string) (bool, error)

func (DockerArtifactStoreRepositoryImpl) FindOne

func (DockerArtifactStoreRepositoryImpl) FindOneInactive added in v0.6.15

func (impl DockerArtifactStoreRepositoryImpl) FindOneInactive(storeId string) (*DockerArtifactStore, error)

func (DockerArtifactStoreRepositoryImpl) GetConnection

func (impl DockerArtifactStoreRepositoryImpl) GetConnection() *pg.DB

func (DockerArtifactStoreRepositoryImpl) MarkRegistryDeleted

func (impl DockerArtifactStoreRepositoryImpl) MarkRegistryDeleted(deleteReq *DockerArtifactStore) error

func (DockerArtifactStoreRepositoryImpl) Save

func (impl DockerArtifactStoreRepositoryImpl) Save(artifactStore *DockerArtifactStore, tx *pg.Tx) error

func (DockerArtifactStoreRepositoryImpl) Update

func (impl DockerArtifactStoreRepositoryImpl) Update(artifactStore *DockerArtifactStore, tx *pg.Tx) error

type DockerRegistryIpsConfig

type DockerRegistryIpsConfig struct {
	Id                    int                             `sql:"id,pk"`
	DockerArtifactStoreId string                          `sql:"docker_artifact_store_id,notnull"`
	CredentialType        DockerRegistryIpsCredentialType `sql:"credential_type,notnull"`
	CredentialValue       string                          `sql:"credential_value"`
	AppliedClusterIdsCsv  string                          `sql:"applied_cluster_ids_csv"` // -1 means all_cluster
	IgnoredClusterIdsCsv  string                          `sql:"ignored_cluster_ids_csv"`
	// contains filtered or unexported fields
}

type DockerRegistryIpsConfigRepository

type DockerRegistryIpsConfigRepository interface {
	Save(config *DockerRegistryIpsConfig, tx *pg.Tx) error
	Update(config *DockerRegistryIpsConfig, tx *pg.Tx) error
	FindByDockerRegistryId(dockerRegistryId string) (*DockerRegistryIpsConfig, error)
}

type DockerRegistryIpsConfigRepositoryImpl

type DockerRegistryIpsConfigRepositoryImpl struct {
	// contains filtered or unexported fields
}

func NewDockerRegistryIpsConfigRepositoryImpl

func NewDockerRegistryIpsConfigRepositoryImpl(dbConnection *pg.DB) *DockerRegistryIpsConfigRepositoryImpl

func (DockerRegistryIpsConfigRepositoryImpl) FindByDockerRegistryId

func (impl DockerRegistryIpsConfigRepositoryImpl) FindByDockerRegistryId(dockerRegistryId string) (*DockerRegistryIpsConfig, error)

func (DockerRegistryIpsConfigRepositoryImpl) Save

func (DockerRegistryIpsConfigRepositoryImpl) Update

type DockerRegistryIpsCredentialType

type DockerRegistryIpsCredentialType string

type RegistryType

type RegistryType string

Jump to

Keyboard shortcuts

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