Documentation ¶
Index ¶
- type AWSSelfQuery
- type ImageTag
- type ImageWithTag
- type Images
- type NonSecret
- type RegistryECR
- func (e *RegistryECR) DecryptExtras(aes encryption.AES) error
- func (e *RegistryECR) DecryptSecret(aes encryption.AES) error
- func (e *RegistryECR) EncryptExtras(aes encryption.AES) error
- func (e *RegistryECR) EncryptSecret(aes encryption.AES) error
- func (e *RegistryECR) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)
- func (e *RegistryECR) GetExtras() map[string]interface{}
- func (e *RegistryECR) GetNamespace() string
- func (e *RegistryECR) GetRegistryType() string
- func (e *RegistryECR) GetSecret() map[string]interface{}
- func (e *RegistryECR) GetUsername() string
- func (e *RegistryECR) IsValidCredential() bool
- func (e *RegistryECR) ValidateFields(v *validator.Validate) error
- type Results
- type Secret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSSelfQuery ¶
type AWSSelfQuery struct {
AccountID string `json:"accountId"`
}
type ImageWithTag ¶
type Images ¶
type Images struct { Architecture string `json:"architecture,omitempty"` Features string `json:"features,omitempty"` Variant interface{} `json:"variant,omitempty"` Digest string `json:"digest,omitempty"` Os string `json:"os,omitempty"` OsFeatures string `json:"os_features,omitempty"` OsVersion interface{} `json:"os_version,omitempty"` Size int `json:"size,omitempty"` Status string `json:"status,omitempty"` LastPulled time.Time `json:"last_pulled,omitempty"` LastPushed time.Time `json:"last_pushed,omitempty"` }
type NonSecret ¶
type NonSecret struct { UseIAMRole string `json:"use_iam_role" validate:"required,oneof=true false"` IsPublic string `json:"is_public" validate:"required,oneof=true false"` AWSAccessKeyID string `json:"aws_access_key_id" validate:"omitempty,min=16,max=128"` AWSRegionName string `` /* 350-byte string literal not displayed */ AWSAccountID string `json:"aws_account_id" validate:"required,min=10,max=12"` // legacy: registry_id TargetAccountRoleARN string `json:"target_account_role_arn" validate:"omitempty,startswith=arn,min=8"` }
type RegistryECR ¶
type RegistryECR 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(requestByte []byte) (*RegistryECR, error)
func (*RegistryECR) DecryptExtras ¶
func (e *RegistryECR) DecryptExtras(aes encryption.AES) error
func (*RegistryECR) DecryptSecret ¶
func (e *RegistryECR) DecryptSecret(aes encryption.AES) error
func (*RegistryECR) EncryptExtras ¶
func (e *RegistryECR) EncryptExtras(aes encryption.AES) error
func (*RegistryECR) EncryptSecret ¶
func (e *RegistryECR) EncryptSecret(aes encryption.AES) error
func (*RegistryECR) FetchImagesFromRegistry ¶
func (e *RegistryECR) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)
func (*RegistryECR) GetExtras ¶
func (e *RegistryECR) GetExtras() map[string]interface{}
func (*RegistryECR) GetNamespace ¶
func (e *RegistryECR) GetNamespace() string
func (*RegistryECR) GetRegistryType ¶
func (e *RegistryECR) GetRegistryType() string
func (*RegistryECR) GetUsername ¶
func (e *RegistryECR) GetUsername() string
func (*RegistryECR) IsValidCredential ¶
func (e *RegistryECR) IsValidCredential() bool
func (*RegistryECR) ValidateFields ¶
func (e *RegistryECR) ValidateFields(v *validator.Validate) error
type Results ¶
type Results struct { Creator int `json:"creator,omitempty"` ID int `json:"id,omitempty"` Images []Images `json:"images,omitempty"` LastUpdated time.Time `json:"last_updated,omitempty"` LastUpdater int `json:"last_updater,omitempty"` LastUpdaterUsername string `json:"last_updater_username,omitempty"` Name string `json:"name,omitempty"` Repository int `json:"repository,omitempty"` FullSize int `json:"full_size,omitempty"` V2 bool `json:"v2,omitempty"` TagStatus string `json:"tag_status,omitempty"` TagLastPulled time.Time `json:"tag_last_pulled,omitempty"` TagLastPushed time.Time `json:"tag_last_pushed,omitempty"` MediaType string `json:"media_type,omitempty"` ContentType string `json:"content_type,omitempty"` Digest string `json:"digest,omitempty"` }
Click to show internal directories.
Click to hide internal directories.