ccclient

package
v0.0.0-...-7ca00ca Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MaxResultsPerPage int = 5000

determined by CC API: https://v3-apidocs.cloudfoundry.org/version/3.76.0/index.html#get-a-route

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Guid    string
	Process Process
}

type Client

type Client struct {
	JSONClient jsonClient
	BaseURL    string
}

func (*Client) ListDomains

func (c *Client) ListDomains(token string) ([]Domain, error)

func (*Client) ListRoutes

func (c *Client) ListRoutes(token string) ([]Route, error)

func (*Client) ListSpaces

func (c *Client) ListSpaces(token string) ([]Space, error)

type Destination

type Destination struct {
	Guid   string
	App    App
	Weight *int
	Port   int
}

type Domain

type Domain struct {
	Guid     string
	Name     string
	Internal bool
}

type Process

type Process struct {
	Type string
}

type Route

type Route struct {
	Guid          string
	Host          string
	Path          string
	Url           string
	Destinations  []Destination
	Relationships struct {
		Domain struct {
			Data struct {
				Guid string
			}
		}
		Space struct {
			Data struct {
				Guid string
			}
		}
	}
}

type Space

type Space struct {
	Guid          string
	Relationships struct {
		Organization struct {
			Data struct {
				Guid string
			}
		}
	}
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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