isolationSegment

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2017 License: Apache-2.0 Imports: 4 Imported by: 18

Documentation

Index

Constants

View Source
const DefaultIsolationSegmentGuid = "-1"
View Source
const SharedIsolationSegmentName = "shared"
View Source
const UnknownIsolationSegmentGuid = ""
View Source
const UnknownIsolationSegmentName = "unknown"

Variables

View Source
var (
	DefaultIsolationSegment = &IsolationSegment{Guid: DefaultIsolationSegmentGuid, Name: "default"}
	SharedIsolationSegment  *IsolationSegment
	UnknownIsolationSegment = &IsolationSegment{Guid: UnknownIsolationSegmentGuid, Name: UnknownIsolationSegmentName}
)

Functions

func FindName

func FindName(guid string) string

func LoadCache

func LoadCache(cliConnection plugin.CliConnection)

Types

type IsolationSegment

type IsolationSegment struct {
	Guid string `json:"guid"`
	Name string `json:"name"`
}

func All

func All() []*IsolationSegment

func FindMetadata

func FindMetadata(guid string) *IsolationSegment

func FindMetadataByName

func FindMetadataByName(name string) *IsolationSegment

func GetDefault

func GetDefault() *IsolationSegment

type IsolationSegmentResponse

type IsolationSegmentResponse struct {
	Pagination Pagination         `json:"pagination"`
	Resources  []IsolationSegment `json:"resources"`
}
type Link struct {
	Href string `json:"href"`
}

type Pagination

type Pagination struct {
	Count int  `json:"total_results"`
	Pages int  `json:"total_pages"`
	Next  Link `json:"next"`
}

Jump to

Keyboard shortcuts

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