Documentation ¶
Index ¶
- Constants
- type Extras
- type Manifest
- type Manifests
- type ManifestsResp
- type NonSecret
- type Platform
- type RegistryGCR
- func (d *RegistryGCR) DecryptExtras(aes encryption.AES) error
- func (d *RegistryGCR) DecryptSecret(aes encryption.AES) error
- func (d *RegistryGCR) EncryptExtras(aes encryption.AES) error
- func (d *RegistryGCR) EncryptSecret(aes encryption.AES) error
- func (d *RegistryGCR) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)
- func (d *RegistryGCR) GetExtras() map[string]interface{}
- func (d *RegistryGCR) GetNamespace() string
- func (d *RegistryGCR) GetRegistryType() string
- func (d *RegistryGCR) GetSecret() map[string]interface{}
- func (d *RegistryGCR) GetUsername() string
- func (d *RegistryGCR) IsValidCredential() bool
- func (d *RegistryGCR) ValidateFields(v *validator.Validate) error
- type RepoDetails
- type RepoTagsResp
- type ReposResp
- type Secret
- type ServiceAccountJSON
Constants ¶
View Source
const ( PerPageCount = 100 ParallelImageFetch = 10 ImageQueueBufferSize = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extras ¶
type Extras struct {
ServiceAccountJSON string `json:"service_account_json" formData:"service_account_json"`
}
type ManifestsResp ¶
type RegistryGCR ¶
type RegistryGCR struct { Name string `json:"name" validate:"required,min=2,max=64"` NonSecret NonSecret `json:"non_secret"` Secret Secret `json:"secret"` Extras Extras `json:"extras"` RegistryType string `json:"registry_type" validate:"required"` }
func New ¶
func New(data []byte) (*RegistryGCR, error)
func (*RegistryGCR) DecryptExtras ¶
func (d *RegistryGCR) DecryptExtras(aes encryption.AES) error
func (*RegistryGCR) DecryptSecret ¶
func (d *RegistryGCR) DecryptSecret(aes encryption.AES) error
func (*RegistryGCR) EncryptExtras ¶
func (d *RegistryGCR) EncryptExtras(aes encryption.AES) error
func (*RegistryGCR) EncryptSecret ¶
func (d *RegistryGCR) EncryptSecret(aes encryption.AES) error
func (*RegistryGCR) FetchImagesFromRegistry ¶
func (d *RegistryGCR) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)
func (*RegistryGCR) GetExtras ¶
func (d *RegistryGCR) GetExtras() map[string]interface{}
func (*RegistryGCR) GetNamespace ¶
func (d *RegistryGCR) GetNamespace() string
func (*RegistryGCR) GetRegistryType ¶
func (d *RegistryGCR) GetRegistryType() string
func (*RegistryGCR) GetUsername ¶
func (d *RegistryGCR) GetUsername() string
func (*RegistryGCR) IsValidCredential ¶
func (d *RegistryGCR) IsValidCredential() bool
func (*RegistryGCR) ValidateFields ¶
func (d *RegistryGCR) ValidateFields(v *validator.Validate) error
type RepoDetails ¶
type RepoTagsResp ¶
type Secret ¶
type Secret struct {
PrivateKeyID string `json:"private_key_id" validate:"required"`
}
type ServiceAccountJSON ¶
type ServiceAccountJSON struct { Type string `json:"type"` ProjectID string `json:"project_id"` PrivateKeyID string `json:"private_key_id"` PrivateKey string `json:"private_key"` ClientEmail string `json:"client_email"` ClientID string `json:"client_id"` AuthURI string `json:"auth_uri"` TokenURI string `json:"token_uri"` AuthProviderX509CertURL string `json:"auth_provider_x509_cert_url"` ClientX509CertURL string `json:"client_x509_cert_url"` }
Click to show internal directories.
Click to hide internal directories.