Documentation ¶
Index ¶
- Constants
- type ContainerConfig
- type FsLayers
- type Header
- type History
- type HistoryV1Compatibility
- type Jwk
- type Labels
- type Manifest
- type NonSecret
- type RegistryJfrog
- func (d *RegistryJfrog) DecryptExtras(aes encryption.AES) error
- func (d *RegistryJfrog) DecryptSecret(aes encryption.AES) error
- func (d *RegistryJfrog) EncryptExtras(aes encryption.AES) error
- func (d *RegistryJfrog) EncryptSecret(aes encryption.AES) error
- func (d *RegistryJfrog) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)
- func (d *RegistryJfrog) GetExtras() map[string]interface{}
- func (d *RegistryJfrog) GetNamespace() string
- func (d *RegistryJfrog) GetRegistryType() string
- func (d *RegistryJfrog) GetSecret() map[string]interface{}
- func (d *RegistryJfrog) GetUsername() string
- func (d *RegistryJfrog) IsValidCredential() bool
- func (d *RegistryJfrog) ValidateFields(v *validator.Validate) error
- type RepoDetails
- type RepoTagsResp
- type ReposResp
- type Secret
- type Signatures
- type TagInfo
Constants ¶
View Source
const ( PerPageCount = 100 ParallelImageFetch = 10 ImageQueueBufferSize = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerConfig ¶
type ContainerConfig struct { Hostname string `json:"Hostname"` Domainname string `json:"Domainname"` User string `json:"User"` AttachStdin bool `json:"AttachStdin"` AttachStdout bool `json:"AttachStdout"` AttachStderr bool `json:"AttachStderr"` ExposedPorts map[string]interface{} `json:"ExposedPorts"` Tty bool `json:"Tty"` OpenStdin bool `json:"OpenStdin"` StdinOnce bool `json:"StdinOnce"` Env []string `json:"Env"` Cmd []string `json:"Cmd"` Image string `json:"Image"` Volumes interface{} `json:"Volumes"` WorkingDir string `json:"WorkingDir"` Entrypoint []string `json:"Entrypoint"` OnBuild interface{} `json:"OnBuild"` Labels Labels `json:"Labels"` StopSignal string `json:"StopSignal"` }
type HistoryV1Compatibility ¶
type HistoryV1Compatibility struct { Architecture string `json:"architecture"` Config ContainerConfig `json:"config"` Container string `json:"container"` ContainerConfig ContainerConfig `json:"container_config"` Created time.Time `json:"created"` DockerVersion string `json:"docker_version"` ID string `json:"id"` Os string `json:"os"` Parent string `json:"parent"` Throwaway bool `json:"throwaway"` }
type RegistryJfrog ¶
type RegistryJfrog 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) (*RegistryJfrog, error)
func (*RegistryJfrog) DecryptExtras ¶
func (d *RegistryJfrog) DecryptExtras(aes encryption.AES) error
func (*RegistryJfrog) DecryptSecret ¶
func (d *RegistryJfrog) DecryptSecret(aes encryption.AES) error
func (*RegistryJfrog) EncryptExtras ¶
func (d *RegistryJfrog) EncryptExtras(aes encryption.AES) error
func (*RegistryJfrog) EncryptSecret ¶
func (d *RegistryJfrog) EncryptSecret(aes encryption.AES) error
func (*RegistryJfrog) FetchImagesFromRegistry ¶
func (d *RegistryJfrog) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)
func (*RegistryJfrog) GetExtras ¶
func (d *RegistryJfrog) GetExtras() map[string]interface{}
func (*RegistryJfrog) GetNamespace ¶
func (d *RegistryJfrog) GetNamespace() string
func (*RegistryJfrog) GetRegistryType ¶
func (d *RegistryJfrog) GetRegistryType() string
func (*RegistryJfrog) GetSecret ¶
func (d *RegistryJfrog) GetSecret() map[string]interface{}
getters
func (*RegistryJfrog) GetUsername ¶
func (d *RegistryJfrog) GetUsername() string
func (*RegistryJfrog) IsValidCredential ¶
func (d *RegistryJfrog) IsValidCredential() bool
func (*RegistryJfrog) ValidateFields ¶
func (d *RegistryJfrog) ValidateFields(v *validator.Validate) error
type RepoDetails ¶
type RepoTagsResp ¶
type Secret ¶
type Secret struct {
JfrogPassword string `json:"jfrog_password" validate:"omitempty,min=2"`
}
type Signatures ¶
Click to show internal directories.
Click to hide internal directories.