Documentation ¶
Index ¶
- Constants
- type NonSecret
- type RegistryQuay
- func (d *RegistryQuay) DecryptExtras(aes encryption.AES) error
- func (d *RegistryQuay) DecryptSecret(aes encryption.AES) error
- func (d *RegistryQuay) EncryptExtras(aes encryption.AES) error
- func (d *RegistryQuay) EncryptSecret(aes encryption.AES) error
- func (d *RegistryQuay) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)
- func (d *RegistryQuay) GetExtras() map[string]interface{}
- func (d *RegistryQuay) GetNamespace() string
- func (d *RegistryQuay) GetRegistryType() string
- func (d *RegistryQuay) GetSecret() map[string]interface{}
- func (d *RegistryQuay) GetUsername() string
- func (d *RegistryQuay) IsValidCredential() bool
- func (d *RegistryQuay) ValidateFields(v *validator.Validate) error
- type RepoDetails
- type RepoTagsResp
- type ReposResp
- type Repositories
- type Secret
- type Tag
- type Tags
Constants ¶
View Source
const ( ParallelImageFetch = 10 ImageQueueBufferSize = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegistryQuay ¶
type RegistryQuay 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) (*RegistryQuay, error)
func (*RegistryQuay) DecryptExtras ¶
func (d *RegistryQuay) DecryptExtras(aes encryption.AES) error
func (*RegistryQuay) DecryptSecret ¶
func (d *RegistryQuay) DecryptSecret(aes encryption.AES) error
func (*RegistryQuay) EncryptExtras ¶
func (d *RegistryQuay) EncryptExtras(aes encryption.AES) error
func (*RegistryQuay) EncryptSecret ¶
func (d *RegistryQuay) EncryptSecret(aes encryption.AES) error
func (*RegistryQuay) FetchImagesFromRegistry ¶
func (d *RegistryQuay) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)
func (*RegistryQuay) GetExtras ¶
func (d *RegistryQuay) GetExtras() map[string]interface{}
func (*RegistryQuay) GetNamespace ¶
func (d *RegistryQuay) GetNamespace() string
func (*RegistryQuay) GetRegistryType ¶
func (d *RegistryQuay) GetRegistryType() string
func (*RegistryQuay) GetUsername ¶
func (d *RegistryQuay) GetUsername() string
func (*RegistryQuay) IsValidCredential ¶
func (d *RegistryQuay) IsValidCredential() bool
func (*RegistryQuay) ValidateFields ¶
func (d *RegistryQuay) ValidateFields(v *validator.Validate) error
type RepoDetails ¶
type RepoDetails struct { URL string Token string Password string NameSpace string Repository Repositories }
type RepoTagsResp ¶
type RepoTagsResp struct { Namespace string `json:"namespace"` Name string `json:"name"` Kind string `json:"kind"` Description string `json:"description"` IsPublic bool `json:"is_public"` IsOrganization bool `json:"is_organization"` IsStarred bool `json:"is_starred"` StatusToken string `json:"status_token"` TrustEnabled bool `json:"trust_enabled"` TagExpirationS int `json:"tag_expiration_s"` IsFreeAccount bool `json:"is_free_account"` State string `json:"state"` Tags Tags `json:"tags"` CanWrite bool `json:"can_write"` CanAdmin bool `json:"can_admin"` }
type ReposResp ¶
type ReposResp struct { Repositories []Repositories `json:"repositories"` NextPage string `json:"next_page"` }
type Repositories ¶
type Secret ¶
type Secret struct {
QuayAccessToken string `json:"quay_access_token" validate:"omitempty,min=2"`
}
Click to show internal directories.
Click to hide internal directories.