cf

package
v0.0.0-...-a105d23 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const PATH_HTTP_ROUTES = "/v1/routes"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetToken() (string, error)
	StartApp(appID string) error
	StopApp(appID string) error
	GetApp(appID string) (gcf.App, error)
	SetAppInstance(appID string, instances int) error
	GetAppRoutes(appID string) ([]string, error)
	RegisterRoute(route gcf.Route, ip string, port, ttl int) error
	UnRegisterRoute(route gcf.Route, ip string, port int) error
	GetSharedDomainByGuid(domainID string) (gcf.SharedDomain, error)
}

func NewClient

func NewClient(conf *Config, logger lager.Logger) (Client, error)

type Config

type Config struct {
	API               string `yaml:"api"`
	ClientID          string `yaml:"client_id"`
	Secret            string `yaml:"secret"`
	RoutingAPI        string `yaml:routing_api`
	SkipSSLValidation bool   `yaml:"skip_ssl_validation"`
}

type RouteResource

type RouteResource struct {
	Route string `json:"route"`
	IP    string `json:ip`
	Port  int    `json:port`
	TTL   int    `json:ttl,omitempty`
}

Jump to

Keyboard shortcuts

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