models

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.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 Destination

type Destination struct {
	ID       string `json:"id"`
	Tag      string `json:"tag,omitempty"`
	Protocol string `json:"protocol"`
	Port     int    `json:"port,omitempty"`
	Ports    Ports  `json:"ports"`
}

func (Destination) MarshalJSON added in v1.2.0

func (d Destination) MarshalJSON() ([]byte, error)

func (*Destination) UnmarshalJSON added in v1.2.0

func (d *Destination) UnmarshalJSON(input []byte) error

type Policy

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

type PolicySlice added in v1.0.0

type PolicySlice []Policy

func (PolicySlice) Len added in v1.0.0

func (s PolicySlice) Len() int

func (PolicySlice) Less added in v1.0.0

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

func (PolicySlice) Swap added in v1.0.0

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

type Ports added in v1.2.0

type Ports struct {
	Start int `json:"start"`
	End   int `json:"end"`
}

type Source

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

type Space added in v0.12.0

type Space struct {
	Name    string `json:name`
	OrgGUID string `json:organization_guid`
}

type Tag

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

Jump to

Keyboard shortcuts

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