Documentation
¶
Index ¶
- Constants
- type Artifact
- type NonSecret
- type RegistryHarbor
- func (d *RegistryHarbor) DecryptExtras(aes encryption.AES) error
- func (d *RegistryHarbor) DecryptSecret(aes encryption.AES) error
- func (d *RegistryHarbor) EncryptExtras(aes encryption.AES) error
- func (d *RegistryHarbor) EncryptSecret(aes encryption.AES) error
- func (d *RegistryHarbor) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)
- func (d *RegistryHarbor) GetExtras() map[string]interface{}
- func (d *RegistryHarbor) GetNamespace() string
- func (d *RegistryHarbor) GetRegistryType() string
- func (d *RegistryHarbor) GetSecret() map[string]interface{}
- func (d *RegistryHarbor) GetUsername() string
- func (d *RegistryHarbor) IsValidCredential() bool
- func (d *RegistryHarbor) ValidateFields(v *validator.Validate) error
- type RepoDetails
- type Repository
- type Secret
- type Tags
Constants ¶
View Source
const ( PerPageCount = 100 ParallelImageFetch = 10 ImageQueueBufferSize = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct { Digest string `json:"digest"` Icon string `json:"icon"` ID int `json:"id"` ManifestMediaType string `json:"manifest_media_type"` MediaType string `json:"media_type"` ProjectID int `json:"project_id"` PullTime time.Time `json:"pull_time"` PushTime time.Time `json:"push_time"` RepositoryID int `json:"repository_id"` Size int `json:"size"` Tags []Tags `json:"tags"` Type string `json:"type"` }
type RegistryHarbor ¶
type RegistryHarbor struct { Name string `json:"name" validate:"required,min=2,max=64"` NonSecret NonSecret `json:"non_secret"` Secret Secret `json:"secret"` RegistryType string `json:"registry_type" validate:"required"` }
func New ¶
func New(data []byte) (*RegistryHarbor, error)
func (*RegistryHarbor) DecryptExtras ¶
func (d *RegistryHarbor) DecryptExtras(aes encryption.AES) error
func (*RegistryHarbor) DecryptSecret ¶
func (d *RegistryHarbor) DecryptSecret(aes encryption.AES) error
func (*RegistryHarbor) EncryptExtras ¶
func (d *RegistryHarbor) EncryptExtras(aes encryption.AES) error
func (*RegistryHarbor) EncryptSecret ¶
func (d *RegistryHarbor) EncryptSecret(aes encryption.AES) error
func (*RegistryHarbor) FetchImagesFromRegistry ¶
func (d *RegistryHarbor) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)
func (*RegistryHarbor) GetExtras ¶
func (d *RegistryHarbor) GetExtras() map[string]interface{}
func (*RegistryHarbor) GetNamespace ¶
func (d *RegistryHarbor) GetNamespace() string
func (*RegistryHarbor) GetRegistryType ¶
func (d *RegistryHarbor) GetRegistryType() string
func (*RegistryHarbor) GetSecret ¶
func (d *RegistryHarbor) GetSecret() map[string]interface{}
getters
func (*RegistryHarbor) GetUsername ¶
func (d *RegistryHarbor) GetUsername() string
func (*RegistryHarbor) IsValidCredential ¶
func (d *RegistryHarbor) IsValidCredential() bool
func (*RegistryHarbor) ValidateFields ¶
func (d *RegistryHarbor) ValidateFields(v *validator.Validate) error
type RepoDetails ¶
type RepoDetails struct { URL string UserName string Password string Project string Repository Repository }
type Repository ¶
type Repository struct { UpdateTime time.Time `json:"update_time"` Description string `json:"description"` PullCount int `json:"pull_count"` CreationTime time.Time `json:"creation_time"` ArtifactCount int `json:"artifact_count"` ProjectID int `json:"project_id"` ID int `json:"id"` Name string `json:"name"` }
Click to show internal directories.
Click to hide internal directories.