Documentation ¶
Index ¶
- type ImageTag
- type ImageWithTag
- type Images
- type NonSecret
- type RegistryDockerHub
- func (d *RegistryDockerHub) DecryptExtras(aes encryption.AES) error
- func (d *RegistryDockerHub) DecryptSecret(aes encryption.AES) error
- func (d *RegistryDockerHub) EncryptExtras(aes encryption.AES) error
- func (d *RegistryDockerHub) EncryptSecret(aes encryption.AES) error
- func (d *RegistryDockerHub) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)
- func (d *RegistryDockerHub) GetExtras() map[string]interface{}
- func (d *RegistryDockerHub) GetNamespace() string
- func (d *RegistryDockerHub) GetRegistryType() string
- func (d *RegistryDockerHub) GetSecret() map[string]interface{}
- func (d *RegistryDockerHub) GetUsername() string
- func (d *RegistryDockerHub) IsValidCredential() bool
- func (d *RegistryDockerHub) 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 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 RegistryDockerHub ¶
type RegistryDockerHub 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) (*RegistryDockerHub, error)
func (*RegistryDockerHub) DecryptExtras ¶
func (d *RegistryDockerHub) DecryptExtras(aes encryption.AES) error
func (*RegistryDockerHub) DecryptSecret ¶
func (d *RegistryDockerHub) DecryptSecret(aes encryption.AES) error
func (*RegistryDockerHub) EncryptExtras ¶
func (d *RegistryDockerHub) EncryptExtras(aes encryption.AES) error
func (*RegistryDockerHub) EncryptSecret ¶
func (d *RegistryDockerHub) EncryptSecret(aes encryption.AES) error
func (*RegistryDockerHub) FetchImagesFromRegistry ¶
func (d *RegistryDockerHub) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)
func (*RegistryDockerHub) GetExtras ¶
func (d *RegistryDockerHub) GetExtras() map[string]interface{}
func (*RegistryDockerHub) GetNamespace ¶
func (d *RegistryDockerHub) GetNamespace() string
func (*RegistryDockerHub) GetRegistryType ¶
func (d *RegistryDockerHub) GetRegistryType() string
func (*RegistryDockerHub) GetSecret ¶
func (d *RegistryDockerHub) GetSecret() map[string]interface{}
getters
func (*RegistryDockerHub) GetUsername ¶
func (d *RegistryDockerHub) GetUsername() string
func (*RegistryDockerHub) IsValidCredential ¶
func (d *RegistryDockerHub) IsValidCredential() bool
func (*RegistryDockerHub) ValidateFields ¶
func (d *RegistryDockerHub) 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.