Documentation
¶
Index ¶
- Constants
- Variables
- type ChartDeploymentCount
- type DockerArtifactStore
- type DockerArtifactStoreRepository
- type DockerArtifactStoreRepositoryImpl
- func (impl DockerArtifactStoreRepositoryImpl) Delete(storeId string) error
- func (impl DockerArtifactStoreRepositoryImpl) FindActiveDefaultStore() (*DockerArtifactStore, error)
- func (impl DockerArtifactStoreRepositoryImpl) FindAll() ([]DockerArtifactStore, error)
- func (impl DockerArtifactStoreRepositoryImpl) FindAllActiveForAutocomplete() ([]DockerArtifactStore, error)
- func (impl DockerArtifactStoreRepositoryImpl) FindAllChartProviders() ([]DockerArtifactStore, error)
- func (impl DockerArtifactStoreRepositoryImpl) FindAllDockerArtifactCount() (int, error)
- func (impl DockerArtifactStoreRepositoryImpl) FindDeploymentCount(storeId string) (int, error)
- func (impl DockerArtifactStoreRepositoryImpl) FindInactive(storeId string) (bool, error)
- func (impl DockerArtifactStoreRepositoryImpl) FindOne(storeId string) (*DockerArtifactStore, error)
- func (impl DockerArtifactStoreRepositoryImpl) FindOneInactive(storeId string) (*DockerArtifactStore, error)
- func (impl DockerArtifactStoreRepositoryImpl) FindOneWithChartDeploymentCount(storeId, chartName string) (*ChartDeploymentCount, error)
- func (impl DockerArtifactStoreRepositoryImpl) GetConnection() *pg.DB
- func (impl DockerArtifactStoreRepositoryImpl) MarkRegistryDeleted(deleteReq *DockerArtifactStore, tx *pg.Tx) error
- func (impl DockerArtifactStoreRepositoryImpl) Save(artifactStore *DockerArtifactStore, tx *pg.Tx) error
- func (impl DockerArtifactStoreRepositoryImpl) Update(artifactStore *DockerArtifactStore, tx *pg.Tx) error
- type DockerRegistryIpsConfig
- type DockerRegistryIpsConfigRepository
- type DockerRegistryIpsConfigRepositoryImpl
- func (impl DockerRegistryIpsConfigRepositoryImpl) FindByDockerRegistryId(dockerRegistryId string) (*DockerRegistryIpsConfig, error)
- func (impl DockerRegistryIpsConfigRepositoryImpl) FindInActiveByDockerRegistryId(dockerRegistryId string) (*DockerRegistryIpsConfig, error)
- func (impl DockerRegistryIpsConfigRepositoryImpl) Save(config *DockerRegistryIpsConfig, tx *pg.Tx) error
- func (impl DockerRegistryIpsConfigRepositoryImpl) Update(config *DockerRegistryIpsConfig, tx *pg.Tx) error
- type DockerRegistryIpsCredentialType
- type OCIRegistryConfig
- type OCIRegistryConfigRepository
- type OCIRegistryConfigRepositoryImpl
- func (impl OCIRegistryConfigRepositoryImpl) FindByDockerRegistryId(dockerRegistryId string) ([]*OCIRegistryConfig, error)
- func (impl OCIRegistryConfigRepositoryImpl) FindOneByDockerRegistryIdAndRepositoryType(dockerRegistryId string, repositoryType string) (*OCIRegistryConfig, error)
- func (impl OCIRegistryConfigRepositoryImpl) Save(config *OCIRegistryConfig, tx *pg.Tx) error
- func (impl OCIRegistryConfigRepositoryImpl) Update(config *OCIRegistryConfig, tx *pg.Tx) error
- type RegistryType
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 ¶
View Source
var OCI_REGISRTY_REPO_TYPE_LIST = []string{OCI_REGISRTY_REPO_TYPE_CONTAINER, OCI_REGISRTY_REPO_TYPE_CHART}
Functions ¶
This section is empty.
Types ¶
type ChartDeploymentCount ¶ added in v0.6.23
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 (impl DockerArtifactStoreRepositoryImpl) FindAll() ([]DockerArtifactStore, error)
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 (impl DockerArtifactStoreRepositoryImpl) FindOne(storeId string) (*DockerArtifactStore, error)
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 (impl DockerRegistryIpsConfigRepositoryImpl) Save(config *DockerRegistryIpsConfig, tx *pg.Tx) error
func (DockerRegistryIpsConfigRepositoryImpl) Update ¶
func (impl DockerRegistryIpsConfigRepositoryImpl) Update(config *DockerRegistryIpsConfig, tx *pg.Tx) error
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 (impl OCIRegistryConfigRepositoryImpl) Save(config *OCIRegistryConfig, tx *pg.Tx) error
func (OCIRegistryConfigRepositoryImpl) Update ¶ added in v0.6.19
func (impl OCIRegistryConfigRepositoryImpl) Update(config *OCIRegistryConfig, tx *pg.Tx) error
type RegistryType ¶
type RegistryType string
Click to show internal directories.
Click to hide internal directories.