resources

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildPack added in v0.0.2

type BuildPack struct {
	Metadata struct {
		GUID string `json:"guid"`
		URL  string `json:"url"`
	} `json:"metadata"`
	Entity struct {
		Name     string `json:"name"`
		Stack    string `json:"stack"`
		Position int    `json:"position"`
		Enabled  bool   `json:"enabled"`
		Locked   bool   `json:"locked"`
		Filename string `json:"filename"`
	} `json:"entity"`
}

type BuildpacksJSON added in v0.0.2

type BuildpacksJSON struct {
	TotalResults int         `json:"total_results"`
	TotalPages   int         `json:"total_pages"`
	PrevURL      string      `json:"prev_url"`
	NextURL      string      `json:"next_url"`
	BuildPacks   []BuildPack `json:"resources"`
}

type Orgs

type Orgs []plugin_models.GetOrgs_Model

func (Orgs) Map

func (o Orgs) Map() map[string]string

type Spaces

type Spaces []SpacesJSON

func (Spaces) MakeSpaceOrgAndNameMap

func (s Spaces) MakeSpaceOrgAndNameMap() (map[string]string, map[string]string)

type SpacesJSON

type SpacesJSON struct {
	TotalResults int    `json:"total_results"`
	TotalPages   int    `json:"total_pages"`
	PrevURL      string `json:"prev_url"`
	NextURL      string `json:"next_url"`
	Resources    []struct {
		Metadata struct {
			GUID string `json:"guid"`
			URL  string `json:"url"`
		} `json:"metadata"`
		Entity struct {
			Name             string `json:"name"`
			OrganizationGUID string `json:"organization_guid"`
		} `json:"entity"`
	} `json:"resources"`
}

type Stacks

type Stacks []StacksJSON

func (Stacks) MakeStackMap

func (s Stacks) MakeStackMap() map[string]string

type StacksJSON

type StacksJSON struct {
	TotalResults int    `json:"total_results"`
	TotalPages   int    `json:"total_pages"`
	PrevURL      string `json:"prev_url"`
	NextURL      string `json:"next_url"`
	Resources    []struct {
		Metadata struct {
			GUID string `json:"guid"`
			URL  string `json:"url"`
		} `json:"metadata"`
		Entity struct {
			Name string `json:"name"`
		} `json:"entity"`
	} `json:"resources"`
}

type V2App added in v0.0.2

type V2App struct {
	Metadata struct {
		GUID string `json:"guid"`
	} `json:"metadata"`
	Entity struct {
		Name      string `json:"name"`
		SpaceGUID string `json:"space_guid"`
		StackGUID string `json:"stack_guid"`
		State     string `json:"state"`
	} `json:"entity"`
}

type V2AppsJSON added in v0.0.2

type V2AppsJSON struct {
	NextURL string  `json:"next_url"`
	Apps    []V2App `json:"resources"`
}

Partial structure of JSON when hitting the /v2/apps endpoint

type V3App added in v0.0.2

type V3App struct {
	GUID      string `json:"guid"`
	Name      string `json:"name"`
	State     string `json:"state"`
	Lifecycle struct {
		Data struct {
			Stack string `json:"stack"`
		} `json:"data"`
	} `json:"lifecycle"`
	Relationships struct {
		Space struct {
			Data struct {
				GUID string `json:"guid"`
			} `json:"data"`
		} `json:"space"`
	} `json:"relationships"`
}

type V3AppsJSON added in v0.0.2

type V3AppsJSON struct {
	Pagination struct {
		Next struct {
			Href string `json:"href"`
		} `json:"next"`
	} `json:"pagination"`
	Apps []V3App `json:"resources"`
}

Partial structure of JSON when hitting the /v3/apps endpoint

Jump to

Keyboard shortcuts

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