requests

package
v2.2.27 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerCreate

type ContainerCreate struct {
	Name            string                  `form:"name" json:"name"`
	Image           string                  `form:"image" json:"image"`
	Ports           []types.ContainerPort   `form:"ports" json:"ports"`
	Network         string                  `form:"network" json:"network"`
	Volumes         []types.ContainerVolume `form:"volumes" json:"volumes"`
	Labels          []types.KV              `form:"labels" json:"labels"`
	Env             []types.KV              `form:"env" json:"env"`
	Entrypoint      []string                `form:"entrypoint" json:"entrypoint"`
	Command         []string                `form:"command" json:"command"`
	RestartPolicy   string                  `form:"restart_policy" json:"restart_policy"`
	AutoRemove      bool                    `form:"auto_remove" json:"auto_remove"`
	Privileged      bool                    `form:"privileged" json:"privileged"`
	OpenStdin       bool                    `form:"openStdin" json:"open_stdin"`
	PublishAllPorts bool                    `form:"publish_all_ports" json:"publish_all_ports"`
	Tty             bool                    `form:"tty" json:"tty"`
	CPUShares       int64                   `form:"cpu_shares" json:"cpu_shares"`
	CPUs            int64                   `form:"cpus" json:"cpus"`
	Memory          int64                   `form:"memory" json:"memory"`
}

func (*ContainerCreate) Attributes

func (r *ContainerCreate) Attributes(ctx http.Context) map[string]string

func (*ContainerCreate) Authorize

func (r *ContainerCreate) Authorize(ctx http.Context) error

func (*ContainerCreate) Filters

func (r *ContainerCreate) Filters(ctx http.Context) map[string]string

func (*ContainerCreate) Messages

func (r *ContainerCreate) Messages(ctx http.Context) map[string]string

func (*ContainerCreate) PrepareForValidation

func (r *ContainerCreate) PrepareForValidation(ctx http.Context, data validation.Data) error

func (*ContainerCreate) Rules

func (r *ContainerCreate) Rules(ctx http.Context) map[string]string

type ContainerRename

type ContainerRename struct {
	ID   string `form:"id" json:"id"`
	Name string `form:"name" json:"name"`
}

func (*ContainerRename) Attributes

func (r *ContainerRename) Attributes(ctx http.Context) map[string]string

func (*ContainerRename) Authorize

func (r *ContainerRename) Authorize(ctx http.Context) error

func (*ContainerRename) Filters

func (r *ContainerRename) Filters(ctx http.Context) map[string]string

func (*ContainerRename) Messages

func (r *ContainerRename) Messages(ctx http.Context) map[string]string

func (*ContainerRename) PrepareForValidation

func (r *ContainerRename) PrepareForValidation(ctx http.Context, data validation.Data) error

func (*ContainerRename) Rules

func (r *ContainerRename) Rules(ctx http.Context) map[string]string

type ContainerUpdate

type ContainerUpdate struct {
	ID              string                  `form:"id" json:"id"`
	Name            string                  `form:"name" json:"name"`
	Image           string                  `form:"image" json:"image"`
	Ports           []types.ContainerPort   `form:"ports" json:"ports"`
	Network         string                  `form:"network" json:"network"`
	Volumes         []types.ContainerVolume `form:"volumes" json:"volumes"`
	Labels          []string                `form:"labels" json:"labels"`
	Env             []string                `form:"env" json:"env"`
	Entrypoint      []string                `form:"entrypoint" json:"entrypoint"`
	Command         []string                `form:"command" json:"command"`
	RestartPolicy   string                  `form:"restart_policy" json:"restart_policy"`
	AutoRemove      bool                    `form:"auto_remove" json:"auto_remove"`
	Privileged      bool                    `form:"privileged" json:"privileged"`
	OpenStdin       bool                    `form:"openStdin" json:"open_stdin"`
	PublishAllPorts bool                    `form:"publish_all_ports" json:"publish_all_ports"`
	Tty             bool                    `form:"tty" json:"tty"`
	CPUShares       int64                   `form:"cpu_shares" json:"cpu_shares"`
	CPUs            int64                   `form:"cpus" json:"cpus"`
	Memory          int64                   `form:"memory" json:"memory"`
}

func (*ContainerUpdate) Attributes

func (r *ContainerUpdate) Attributes(ctx http.Context) map[string]string

func (*ContainerUpdate) Authorize

func (r *ContainerUpdate) Authorize(ctx http.Context) error

func (*ContainerUpdate) Filters

func (r *ContainerUpdate) Filters(ctx http.Context) map[string]string

func (*ContainerUpdate) Messages

func (r *ContainerUpdate) Messages(ctx http.Context) map[string]string

func (*ContainerUpdate) PrepareForValidation

func (r *ContainerUpdate) PrepareForValidation(ctx http.Context, data validation.Data) error

func (*ContainerUpdate) Rules

func (r *ContainerUpdate) Rules(ctx http.Context) map[string]string

type ID

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

func (*ID) Attributes

func (r *ID) Attributes(ctx http.Context) map[string]string

func (*ID) Authorize

func (r *ID) Authorize(ctx http.Context) error

func (*ID) Filters

func (r *ID) Filters(ctx http.Context) map[string]string

func (*ID) Messages

func (r *ID) Messages(ctx http.Context) map[string]string

func (*ID) PrepareForValidation

func (r *ID) PrepareForValidation(ctx http.Context, data validation.Data) error

func (*ID) Rules

func (r *ID) Rules(ctx http.Context) map[string]string

type ImagePull

type ImagePull struct {
	Name     string `form:"name" json:"name"`
	Auth     bool   `form:"auth" json:"auth"`
	Username string `form:"username" json:"username"`
	Password string `form:"password" json:"password"`
}

func (*ImagePull) Attributes

func (r *ImagePull) Attributes(ctx http.Context) map[string]string

func (*ImagePull) Authorize

func (r *ImagePull) Authorize(ctx http.Context) error

func (*ImagePull) Filters

func (r *ImagePull) Filters(ctx http.Context) map[string]string

func (*ImagePull) Messages

func (r *ImagePull) Messages(ctx http.Context) map[string]string

func (*ImagePull) PrepareForValidation

func (r *ImagePull) PrepareForValidation(ctx http.Context, data validation.Data) error

func (*ImagePull) Rules

func (r *ImagePull) Rules(ctx http.Context) map[string]string

type NetworkConnectDisConnect

type NetworkConnectDisConnect struct {
	Network   string `form:"network" json:"network"`
	Container string `form:"container" json:"container"`
}

func (*NetworkConnectDisConnect) Attributes

func (r *NetworkConnectDisConnect) Attributes(ctx http.Context) map[string]string

func (*NetworkConnectDisConnect) Authorize

func (r *NetworkConnectDisConnect) Authorize(ctx http.Context) error

func (*NetworkConnectDisConnect) Filters

func (r *NetworkConnectDisConnect) Filters(ctx http.Context) map[string]string

func (*NetworkConnectDisConnect) Messages

func (r *NetworkConnectDisConnect) Messages(ctx http.Context) map[string]string

func (*NetworkConnectDisConnect) PrepareForValidation

func (r *NetworkConnectDisConnect) PrepareForValidation(ctx http.Context, data validation.Data) error

func (*NetworkConnectDisConnect) Rules

type NetworkCreate

type NetworkCreate struct {
	Name    string                 `form:"name" json:"name"`
	Driver  string                 `form:"driver" json:"driver"`
	Ipv4    types.ContainerNetwork `form:"ipv4" json:"ipv4"`
	Ipv6    types.ContainerNetwork `form:"ipv6" json:"ipv6"`
	Labels  []types.KV             `form:"labels" json:"labels"`
	Options []types.KV             `form:"options" json:"options"`
}

func (*NetworkCreate) Attributes

func (r *NetworkCreate) Attributes(ctx http.Context) map[string]string

func (*NetworkCreate) Authorize

func (r *NetworkCreate) Authorize(ctx http.Context) error

func (*NetworkCreate) Filters

func (r *NetworkCreate) Filters(ctx http.Context) map[string]string

func (*NetworkCreate) Messages

func (r *NetworkCreate) Messages(ctx http.Context) map[string]string

func (*NetworkCreate) PrepareForValidation

func (r *NetworkCreate) PrepareForValidation(ctx http.Context, data validation.Data) error

func (*NetworkCreate) Rules

func (r *NetworkCreate) Rules(ctx http.Context) map[string]string

type VolumeCreate

type VolumeCreate struct {
	Name    string     `form:"name" json:"name"`
	Driver  string     `form:"driver" json:"driver"`
	Labels  []types.KV `form:"labels" json:"labels"`
	Options []types.KV `form:"options" json:"options"`
}

func (*VolumeCreate) Attributes

func (r *VolumeCreate) Attributes(ctx http.Context) map[string]string

func (*VolumeCreate) Authorize

func (r *VolumeCreate) Authorize(ctx http.Context) error

func (*VolumeCreate) Filters

func (r *VolumeCreate) Filters(ctx http.Context) map[string]string

func (*VolumeCreate) Messages

func (r *VolumeCreate) Messages(ctx http.Context) map[string]string

func (*VolumeCreate) PrepareForValidation

func (r *VolumeCreate) PrepareForValidation(ctx http.Context, data validation.Data) error

func (*VolumeCreate) Rules

func (r *VolumeCreate) Rules(ctx http.Context) map[string]string

Jump to

Keyboard shortcuts

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