handlers

package
v5.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeChanges

func DecodeChanges(changes []string) []string

DecodeChanges reads one or more changes from a slice and cleans them up, since what we've advertised as being acceptable in the past isn't really.

func NewAPIDecoder

func NewAPIDecoder() *schema.Decoder

NewAPIDecoder returns a configured schema.Decoder

func NewCompatAPIDecoder

func NewCompatAPIDecoder() *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 {
	registry.AuthConfig
}

type BuildCachePruneReport

type BuildCachePruneReport struct {
	docker.BuildCachePruneReport
}

type BuildResult

type BuildResult struct {
	docker.BuildResult
}

type ConfigCreateResponse

type ConfigCreateResponse struct {
	docker.ConfigCreateResponse
}

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 ContainersPruneReportLibpod

type ContainersPruneReportLibpod struct {
	ID             string `json:"Id"`
	SpaceReclaimed int64  `json:"Size"`
	// Error which occurred during prune operation (if any).
	// This field is optional and may be omitted if no error occurred.
	//
	// Extensions:
	// x-omitempty: true
	// x-nullable: true
	PruneError string `json:"Err,omitempty"`
}

type CreateContainerConfig

type CreateContainerConfig struct {
	Name                   string                         // container name
	dockerContainer.Config                                // desired container configuration
	HostConfig             dockerContainer.HostConfig     // host dependent configuration for container
	NetworkingConfig       dockerNetwork.NetworkingConfig // network configuration for container
	EnvMerge               []string                       // preprocess env variables from image before injecting into containers
	UnsetEnv               []string                       // unset specified default environment variables
	UnsetEnvAll            bool                           // unset all default environment variables
}

CreateContainerConfig used when compatible endpoint creates a container swagger:model

type DiskUsage

type DiskUsage struct {
	docker.DiskUsage
}

type ExecCreateConfig

type ExecCreateConfig struct {
	docker.ExecConfig
}

type ExecRemoveConfig

type ExecRemoveConfig struct {
	Force bool `json:"Force"`
}

type ExecStartConfig

type ExecStartConfig struct {
	Detach bool   `json:"Detach"`
	Tty    bool   `json:"Tty"`
	Height uint16 `json:"h"`
	Width  uint16 `json:"w"`
}

type HistoryResponse

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

HistoryResponse provides details on image layers

type ImageInspect

type ImageInspect struct {
	docker.ImageInspect
}

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 LibpodContainersRmReport

type LibpodContainersRmReport struct {
	ID string `json:"Id"`
	// Error which occurred during Rm operation (if any).
	// This field is optional and may be omitted if no error occurred.
	//
	// Extensions:
	// x-omitempty: true
	// x-nullable: true
	RmError string `json:"Err,omitempty"`
}

type LibpodImagesPullReport

type LibpodImagesPullReport struct {
	entities.ImagePullReport
}

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 LibpodImagesResolveReport

type LibpodImagesResolveReport struct {
	// Fully-qualified image references.
	Names []string
}

LibpodImagesResolveReport includes a list of fully-qualified image references.

type NetworkPruneReport

type NetworkPruneReport struct {
	docker.NetworksPruneReport
}

type PodTopOKBody

type PodTopOKBody struct {
	dockerContainer.ContainerTopOKBody
}

type PushResult

type PushResult struct {
	docker.PushResult
}

type UpdateEntities

type UpdateEntities struct {
	Resources *specs.LinuxResources
}

UpdateEntities used to wrap the oci resource spec in a swagger model swagger:model

type VolumesPruneReport

type VolumesPruneReport struct {
	docker.VolumesPruneReport
}

Directories

Path Synopsis
Package swagger defines the payloads used by the Podman API
Package swagger defines the payloads used by the Podman API

Jump to

Keyboard shortcuts

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