Documentation ¶
Index ¶
- Constants
- type ContainerConfig
- type FsLayers
- type Header
- type History
- type HistoryV1Compatibility
- type Jwk
- type Labels
- type Manifest
- type NonSecret
- type RegistryDockerPrivate
- func (d *RegistryDockerPrivate) DecryptExtras(aes encryption.AES) error
- func (d *RegistryDockerPrivate) DecryptSecret(aes encryption.AES) error
- func (d *RegistryDockerPrivate) EncryptExtras(aes encryption.AES) error
- func (d *RegistryDockerPrivate) EncryptSecret(aes encryption.AES) error
- func (d *RegistryDockerPrivate) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)
- func (d *RegistryDockerPrivate) GetExtras() map[string]interface{}
- func (d *RegistryDockerPrivate) GetNamespace() string
- func (d *RegistryDockerPrivate) GetRegistryType() string
- func (d *RegistryDockerPrivate) GetSecret() map[string]interface{}
- func (d *RegistryDockerPrivate) GetUsername() string
- func (d *RegistryDockerPrivate) IsValidCredential() bool
- func (d *RegistryDockerPrivate) ValidateFields(v *validator.Validate) error
- type RepoDetails
- type RepoTagsResp
- type ReposResp
- type Secret
- type Signatures
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 RegistryDockerPrivate ¶
type RegistryDockerPrivate 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) (*RegistryDockerPrivate, error)
func (*RegistryDockerPrivate) DecryptExtras ¶
func (d *RegistryDockerPrivate) DecryptExtras(aes encryption.AES) error
func (*RegistryDockerPrivate) DecryptSecret ¶
func (d *RegistryDockerPrivate) DecryptSecret(aes encryption.AES) error
func (*RegistryDockerPrivate) EncryptExtras ¶
func (d *RegistryDockerPrivate) EncryptExtras(aes encryption.AES) error
func (*RegistryDockerPrivate) EncryptSecret ¶
func (d *RegistryDockerPrivate) EncryptSecret(aes encryption.AES) error
func (*RegistryDockerPrivate) FetchImagesFromRegistry ¶
func (d *RegistryDockerPrivate) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)
func (*RegistryDockerPrivate) GetExtras ¶
func (d *RegistryDockerPrivate) GetExtras() map[string]interface{}
func (*RegistryDockerPrivate) GetNamespace ¶
func (d *RegistryDockerPrivate) GetNamespace() string
func (*RegistryDockerPrivate) GetRegistryType ¶
func (d *RegistryDockerPrivate) GetRegistryType() string
func (*RegistryDockerPrivate) GetSecret ¶
func (d *RegistryDockerPrivate) GetSecret() map[string]interface{}
getters
func (*RegistryDockerPrivate) GetUsername ¶
func (d *RegistryDockerPrivate) GetUsername() string
func (*RegistryDockerPrivate) IsValidCredential ¶
func (d *RegistryDockerPrivate) IsValidCredential() bool
func (*RegistryDockerPrivate) ValidateFields ¶
func (d *RegistryDockerPrivate) ValidateFields(v *validator.Validate) error
type RepoDetails ¶
type RepoTagsResp ¶
type Secret ¶
type Secret struct {
DockerPassword string `json:"docker_password" validate:"omitempty,min=2"`
}
type Signatures ¶
Click to show internal directories.
Click to hide internal directories.