handlers

package
v2.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageToImageSummary

func ImageToImageSummary(l *libpodImage.Image) (*entities.ImageSummary, error)

func NewAPIDecoder

func NewAPIDecoder() *schema.Decoder

NewAPIDecoder returns a configured schema.Decoder

func ParseDateTime

func ParseDateTime(query string) time.Time

ParseDateTime is a helper function to aid in parsing different Time/Date formats isZero() can be used to determine if parsing failed.

Types

type AuthConfig

type AuthConfig struct {
	docker.AuthConfig
}

type BuildCachePruneReport

type BuildCachePruneReport struct {
	docker.BuildCachePruneReport
}

type BuildResult

type BuildResult struct {
	docker.BuildResult
}

type ConfigCreateResponse

type ConfigCreateResponse struct {
	docker.ConfigCreateResponse
}

type Container

type Container struct {
	docker.Container
	docker.ContainerCreateConfig
}

type ContainerConfig

type ContainerConfig struct {
	dockerContainer.Config
}

type ContainerTopOKBody

type ContainerTopOKBody struct {
	dockerContainer.ContainerTopOKBody
}

type ContainerWaitOKBody

type ContainerWaitOKBody struct {
	StatusCode int
	Error      struct {
		Message string
	}
}

type ContainersPruneReport

type ContainersPruneReport struct {
	docker.ContainersPruneReport
}

type CreateContainerConfig

type CreateContainerConfig struct {
	Name string
	dockerContainer.Config
	HostConfig       dockerContainer.HostConfig
	NetworkingConfig dockerNetwork.NetworkingConfig
}

type DiskUsage

type DiskUsage struct {
	docker.DiskUsage
}

type ExecCreateConfig

type ExecCreateConfig struct {
	docker.ExecConfig
}

type ExecCreateResponse

type ExecCreateResponse struct {
	docker.IDResponse
}

type ExecStartConfig

type ExecStartConfig struct {
	Detach bool `json:"Detach"`
	Tty    bool `json:"Tty"`
}

type HistoryResponse

type HistoryResponse struct {
	ID        string   `json:"Id"`
	Created   int64    `json:"Created"`
	CreatedBy string   `json:"CreatedBy"`
	Tags      []string `json:"Tags"`
	Size      int64    `json:"Size"`
	Comment   string   `json:"Comment"`
}

type IDResponse

type IDResponse struct {
	// ID
	ID string `json:"Id"`
}

swagger:model IDResponse

type ImageInspect

type ImageInspect struct {
	docker.ImageInspect
}

func ImageDataToImageInspect

func ImageDataToImageInspect(ctx context.Context, l *libpodImage.Image) (*ImageInspect, error)

type ImageLayer

type ImageLayer struct{}

type ImageTreeResponse

type ImageTreeResponse struct {
	ID     string       `json:"id"`
	Tags   []string     `json:"tags"`
	Size   string       `json:"size"`
	Layers []ImageLayer `json:"layers"`
}

type ImagesPruneReport

type ImagesPruneReport struct {
	docker.ImagesPruneReport
}

type Info

type Info struct {
	docker.Info
	BuildahVersion     string
	CPURealtimePeriod  bool
	CPURealtimeRuntime bool
	CgroupVersion      string
	Rootless           bool
	SwapFree           int64
	SwapTotal          int64
	Uptime             string
}

type LibpodContainersPruneReport

type LibpodContainersPruneReport struct {
	ID             string `json:"id"`
	SpaceReclaimed int64  `json:"space"`
	PruneError     string `json:"error"`
}

type LibpodImagesLoadReport

type LibpodImagesLoadReport struct {
	ID string `json:"id"`
}

type LibpodImagesPullReport

type LibpodImagesPullReport struct {
	ID string `json:"id"`
}

type LibpodImagesRemoveReport

type LibpodImagesRemoveReport struct {
	entities.ImageRemoveReport
	// Image removal requires is to return data and an error.
	Errors []string
}

LibpodImagesRemoveReport is the return type for image removal via the rest api.

type NetworkPruneReport

type NetworkPruneReport struct {
	docker.NetworksPruneReport
}

type PodCreateConfig

type PodCreateConfig struct {
	Name         string   `json:"name"`
	CGroupParent string   `json:"cgroup-parent"`
	Hostname     string   `json:"hostname"`
	Infra        bool     `json:"infra"`
	InfraCommand string   `json:"infra-command"`
	InfraImage   string   `json:"infra-image"`
	Labels       []string `json:"labels"`
	Publish      []string `json:"publish"`
	Share        string   `json:"share"`
}

swagger:model PodCreateConfig

type PodTopOKBody

type PodTopOKBody struct {
	dockerContainer.ContainerTopOKBody
}

type PushResult

type PushResult struct {
	docker.PushResult
}

type VolumesPruneReport

type VolumesPruneReport struct {
	docker.VolumesPruneReport
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL