models

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2017 License: Apache-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 CNIAddResult

type CNIAddResult struct {
	ContainerID string `json:"container_id"`
	GroupID     string `json:"group_id"`
	IP          string `json:"ip"`
}

type CNIDelResult

type CNIDelResult struct {
	ContainerID string `json:"container_id"`
}

type Container

type Container struct {
	ID string
	IP string
}

type Destination

type Destination struct {
	ID       string `json:"id"`
	Port     int    `json:"port"`
	Protocol string `json:"protocol"`
}

type Policy

type Policy struct {
	Source      Source      `json:"source"`
	Destination Destination `json:"destination"`
}

type PolicySlice added in v0.13.0

type PolicySlice []Policy

func (PolicySlice) Len added in v0.13.0

func (s PolicySlice) Len() int

func (PolicySlice) Less added in v0.13.0

func (s PolicySlice) Less(i, j int) bool

func (PolicySlice) Swap added in v0.13.0

func (s PolicySlice) Swap(i, j int)

type Source

type Source struct {
	ID  string `json:"id"`
	Tag string `json:"tag,omitempty"`
}

Jump to

Keyboard shortcuts

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