repository

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REGISTRYTYPE_ECR                         = "ecr"
	REGISTRYTYPE_GCR                         = "gcr"
	REGISTRYTYPE_ARTIFACT_REGISTRY           = "artifact-registry"
	REGISTRYTYPE_OTHER                       = "other"
	REGISTRYTYPE_DOCKER_HUB                  = "docker-hub"
	JSON_KEY_USERNAME                 string = "_json_key"
	STORAGE_ACTION_TYPE_PULL                 = "PULL"
	STORAGE_ACTION_TYPE_PUSH                 = "PUSH"
	STORAGE_ACTION_TYPE_PULL_AND_PUSH        = "PULL/PUSH"
	OCI_REGISRTY_REPO_TYPE_CONTAINER         = "CONTAINER"
	OCI_REGISRTY_REPO_TYPE_CHART             = "CHART"
)

Variables

Functions

This section is empty.

Types

type ChartDeploymentCount added in v0.6.23

type ChartDeploymentCount struct {
	OCIChartName    string `sql:"oci_chart_name" json:"ociChartName"`
	DeploymentCount int    `sql:"deployment_count" json:"deploymentCount"`
}

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"`
	IsOCICompliantRegistry bool         `sql:"is_oci_compliant_registry,notnull" json:"isOCICompliantRegistry,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
	OCIRegistryConfig      []*OCIRegistryConfig
	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)
	FindAllDockerArtifactCount() (int, error)
	FindAllChartProviders() ([]DockerArtifactStore, error)
	FindOne(storeId string) (*DockerArtifactStore, error)
	FindDeploymentCount(storeId string) (int, error)
	FindOneWithChartDeploymentCount(storeId, chartName string) (*ChartDeploymentCount, error)
	FindOneInactive(storeId string) (*DockerArtifactStore, error)
	Update(artifactStore *DockerArtifactStore, tx *pg.Tx) error
	Delete(storeId string) error
	MarkRegistryDeleted(artifactStore *DockerArtifactStore, tx *pg.Tx) 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) FindAllChartProviders added in v0.6.23

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

func (DockerArtifactStoreRepositoryImpl) FindAllDockerArtifactCount added in v0.7.0

func (impl DockerArtifactStoreRepositoryImpl) FindAllDockerArtifactCount() (int, error)

func (DockerArtifactStoreRepositoryImpl) FindDeploymentCount added in v1.0.0

func (impl DockerArtifactStoreRepositoryImpl) FindDeploymentCount(storeId string) (int, 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) FindOneWithChartDeploymentCount added in v0.6.23

func (impl DockerArtifactStoreRepositoryImpl) FindOneWithChartDeploymentCount(storeId, chartName string) (*ChartDeploymentCount, error)

func (DockerArtifactStoreRepositoryImpl) GetConnection

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

func (DockerArtifactStoreRepositoryImpl) MarkRegistryDeleted

func (impl DockerArtifactStoreRepositoryImpl) MarkRegistryDeleted(deleteReq *DockerArtifactStore, tx *pg.Tx) 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"`
	Active                bool                            `sql:"active,notnull"`
	// contains filtered or unexported fields
}

type DockerRegistryIpsConfigRepository

type DockerRegistryIpsConfigRepository interface {
	Save(config *DockerRegistryIpsConfig, tx *pg.Tx) error
	Update(config *DockerRegistryIpsConfig, tx *pg.Tx) error
	FindInActiveByDockerRegistryId(dockerRegistryId string) (*DockerRegistryIpsConfig, 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) FindInActiveByDockerRegistryId added in v0.6.23

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

func (DockerRegistryIpsConfigRepositoryImpl) Save

func (DockerRegistryIpsConfigRepositoryImpl) Update

type DockerRegistryIpsCredentialType

type DockerRegistryIpsCredentialType string

type OCIRegistryConfig added in v0.6.19

type OCIRegistryConfig struct {
	Id                    int    `sql:"id,pk"`
	DockerArtifactStoreId string `sql:"docker_artifact_store_id,notnull"`
	RepositoryType        string `sql:"repository_type,notnull"`
	RepositoryAction      string `sql:"repository_action,notnull"`
	RepositoryList        string `sql:"repository_list"`
	IsChartPullActive     bool   `sql:"is_chart_pull_active"`
	IsPublic              bool   `sql:"is_public"`
	Deleted               bool   `sql:"deleted,notnull"`
	sql.AuditLog
	// contains filtered or unexported fields
}

type OCIRegistryConfigRepository added in v0.6.19

type OCIRegistryConfigRepository interface {
	Save(config *OCIRegistryConfig, tx *pg.Tx) error
	Update(config *OCIRegistryConfig, tx *pg.Tx) error
	FindByDockerRegistryId(dockerRegistryId string) ([]*OCIRegistryConfig, error)
	FindOneByDockerRegistryIdAndRepositoryType(dockerRegistryId string, repositoryType string) (*OCIRegistryConfig, error)
}

type OCIRegistryConfigRepositoryImpl added in v0.6.19

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

func NewOCIRegistryConfigRepositoryImpl added in v0.6.19

func NewOCIRegistryConfigRepositoryImpl(dbConnection *pg.DB) *OCIRegistryConfigRepositoryImpl

func (OCIRegistryConfigRepositoryImpl) FindByDockerRegistryId added in v0.6.19

func (impl OCIRegistryConfigRepositoryImpl) FindByDockerRegistryId(dockerRegistryId string) ([]*OCIRegistryConfig, error)

func (OCIRegistryConfigRepositoryImpl) FindOneByDockerRegistryIdAndRepositoryType added in v0.6.19

func (impl OCIRegistryConfigRepositoryImpl) FindOneByDockerRegistryIdAndRepositoryType(dockerRegistryId string, repositoryType string) (*OCIRegistryConfig, error)

func (OCIRegistryConfigRepositoryImpl) Save added in v0.6.19

func (OCIRegistryConfigRepositoryImpl) Update added in v0.6.19

func (impl OCIRegistryConfigRepositoryImpl) Update(config *OCIRegistryConfig, tx *pg.Tx) error

type RegistryType

type RegistryType string

Jump to

Keyboard shortcuts

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