model

package
v0.0.0-...-55bf436 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	AccessKey string
	SecretKey string
}

func (*Auth) IsAuthorized

func (a *Auth) IsAuthorized(accessKey string, secretKey string) bool

type Container

type Container struct {
}

type Health

type Health struct {
	Status     bool   `json:"status"`
	Uptime     string `json:"uptime"`
	ServerTime string `json:"server_time"`
}

func (*Health) SetServerTime

func (h *Health) SetServerTime()

func (*Health) SetUptime

func (h *Health) SetUptime()

type NetworkContainerInfo

type NetworkContainerInfo struct {
	Name        string `json:"Name"`
	EndpointId  string `json:"EndpointID"`
	MacAddress  string `json:"MacAddress"`
	IPv4Address string `json:"IPv4Address"`
}

type NetworkCreateReq

type NetworkCreateReq struct {
	Name           string      `json:"Name"`
	CheckDuplicate bool        `json:"CheckDuplicate"`
	Driver         string      `json:"Driver"`
	IPAM           NetworkIPAM `json:"IPAM"`
	Internal       bool        `json:"Internal"`
	Attachable     bool        `json:"Attachable"`
	Ingress        bool        `json:"Ingress"`
}

type NetworkCreateResp

type NetworkCreateResp struct {
	Id      string `json:"Id"`
	Warning string `json:"Warning"`
	Message string `json:"message"`
}

type NetworkDigest

type NetworkDigest struct {
	Id     string      `json:"Id"`
	Name   string      `json:"Name"`
	Scope  string      `json:"Scope"`
	Driver string      `json:"Driver"`
	IPAM   NetworkIPAM `json:"IPAM"`
}

type NetworkFull

type NetworkFull struct {
	Id         string                          `json:"Id"`
	Name       string                          `json:"Name"`
	Created    string                          `json:"Created"`
	Scope      string                          `json:"Scope"`
	Driver     string                          `json:"Driver"`
	IPAM       NetworkIPAM                     `json:"IPAM"`
	Internal   bool                            `json:"Internal"`
	Attachable bool                            `json:"Attachable"`
	Ingress    bool                            `json:"Ingress"`
	Containers map[string]NetworkContainerInfo `json:"Containers"`
}

type NetworkIPAM

type NetworkIPAM struct {
	Driver string              `json:"Driver"`
	Config []NetworkIPAMConfig `json:"Config"`
}

type NetworkIPAMConfig

type NetworkIPAMConfig struct {
	Subnet  string `json:"Subnet"`
	Gateway string `json:"Gateway"`
	IPRange string `json:"IPRange"`
}

type NetworkOptions

type NetworkOptions struct {
	BridgeDefaultBridge   string `json:"com.docker.network.bridge.default_bridge"`
	BridgeIPMasquerade    string `json:"com.docker.network.bridge.enable_ip_masquerade"`
	BridgeHostBindingIPv4 string `json:"com.docker.network.bridge.host_binding_ipv4"`
	BridgeName            string `json:"com.docker.network.bridge.name"`
	DriverMTU             string `json:"com.docker.network.driver.mtu"`
}

Jump to

Keyboard shortcuts

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