Documentation
¶
Index ¶
- Variables
- func NewRepository(ctx context.Context, ref reference.Named) (distribution.Repository, error)
- func PingV2Registry(endpoint string, transport http.RoundTripper) (challenge.Manager, error)
- type Cipher
- type CipherParams
- type ContainerConfig
- type Digester
- type History
- type Image
- type Puller
- type PushDestination
- type Pusher
- type RootFS
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidChecksum = errors.New("checksum verification failed")
View Source
var ErrInvalidTag = errors.New("message authentication failed (password is wrong or data is corrupted)")
Functions ¶
func NewRepository ¶
func PingV2Registry ¶
Types ¶
type Cipher ¶
type Cipher struct { CipherParams // contains filtered or unexported fields }
type CipherParams ¶
type ContainerConfig ¶
type ContainerConfig struct { Hostname string Domainname string User string AttachStdin bool AttachStdout bool AttachStderr bool Tty bool OpenStdin bool StdinOnce bool Env []string Cmd []string Image string Volumes map[string]struct{} WorkingDir string Entrypoint []string OnBuild []string Labels map[string]string }
type Digester ¶
type Digester struct {
// contains filtered or unexported fields
}
func NewDigester ¶
func NewDigester(alg digest.Algorithm) *Digester
func NewDigesterFromDigest ¶
type Image ¶
type Image struct { ID string `json:"id,omitempty"` Parent string `json:"parent,omitempty"` Comment string `json:"comment,omitempty"` Created time.Time `json:"created"` Container string `json:"container,omitempty"` ContainerConfig *ContainerConfig `json:"container_config,omitempty"` DockerVersion string `json:"docker_version,omitempty"` Author string `json:"author,omitempty"` Config *ContainerConfig `json:"config,omitempty"` Architecture string `json:"architecture,omitempty"` Variant string `json:"variant,omitempty"` OS string `json:"os,omitempty"` Size int64 `json:",omitempty"` RootFS *RootFS `json:"rootfs,omitempty"` History []History `json:"history,omitempty"` OSVersion string `json:"os.version,omitempty"` OSFeatures []string `json:"os.features,omitempty"` }
func (*Image) MarshalJSON ¶
type Puller ¶
type Puller interface { CipherParams() []byte EncryptedFilename() []byte Filesize() uint64 Checksum() digest.Digest CreatedAt() time.Time Digest() digest.Digest ChunkCount() int ReadChunk(context.Context) ([]byte, error) }
func NewDockerPuller ¶
type PushDestination ¶
type PushDestination struct { Repository distribution.Repository Tags []string }
Click to show internal directories.
Click to hide internal directories.