Documentation ¶
Index ¶
- Constants
- 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) FindOne(storeId string) (*DockerArtifactStore, error)
- func (impl DockerArtifactStoreRepositoryImpl) GetConnection() *pg.DB
- func (impl DockerArtifactStoreRepositoryImpl) MarkRegistryDeleted(deleteReq *DockerArtifactStore) 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) Save(config *DockerRegistryIpsConfig, tx *pg.Tx) error
- func (impl DockerRegistryIpsConfigRepositoryImpl) Update(config *DockerRegistryIpsConfig, tx *pg.Tx) error
- type DockerRegistryIpsCredentialType
- type RegistryType
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) Update(artifactStore *DockerArtifactStore, tx *pg.Tx) error Delete(storeId string) error MarkRegistryDeleted(artifactStore *DockerArtifactStore) 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) FindOne ¶
func (impl DockerArtifactStoreRepositoryImpl) FindOne(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 (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 RegistryType ¶
type RegistryType string
Click to show internal directories.
Click to hide internal directories.