v3

package
v1.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainResponse

type DomainResponse struct {
	Pagination struct {
		TotalResults int `json:"total_results"`
		TotalPages   int `json:"total_pages"`
		First        struct {
			Href string `json:"href"`
		} `json:"first"`
		Last struct {
			Href string `json:"href"`
		} `json:"last"`
		Next struct {
			Href string `json:"href"`
		} `json:"next"`
		Previous interface{} `json:"previous"`
	} `json:"pagination"`
	Resources []struct {
		GUID          string    `json:"guid"`
		CreatedAt     time.Time `json:"created_at"`
		UpdatedAt     time.Time `json:"updated_at"`
		Name          string    `json:"name"`
		Internal      bool      `json:"internal"`
		Relationships struct {
			Organization struct {
				Data interface{} `json:"data"`
			} `json:"organization"`
			SharedOrganizations struct {
				Data []interface{} `json:"data"`
			} `json:"shared_organizations"`
		} `json:"relationships"`
		Links struct {
			Self struct {
				Href string `json:"href"`
			} `json:"self"`
		} `json:"links"`
	} `json:"resources"`
}

DomainResponse reponse while loading domains

type Push

type Push interface {
	PushApplication(venAppName string, spaceGUID string, parsedArguments *arguments.ParserArguments, v2Resources v2.Resources) error
	SwitchRoutesOnly(venAppName string, appName string, routes []map[string]string) error
}

Push interface with all v3 actions

type ResourcesData

type ResourcesData struct {
	Cli cli.Calls

	Connection plugin.CliConnection
	Executor   cli.CfExecutor
	// contains filtered or unexported fields
}

ResourcesData internal struct with connection an tracing options etc

func NewV3Push

func NewV3Push(conn plugin.CliConnection, traceLogging bool) *ResourcesData

NewV3Push constructor

func (*ResourcesData) AssignAppManifest

func (resource *ResourcesData) AssignAppManifest(manifestPath string) (err error)

func (*ResourcesData) CreateApp

func (resource *ResourcesData) CreateApp(parsedArguments *arguments.ParserArguments) (err error)

func (*ResourcesData) GetDomain

func (resource *ResourcesData) GetDomain(domains []map[string]string) (*[]Routes, error)

func (*ResourcesData) MapRoute

func (resource *ResourcesData) MapRoute(appName string, host string, domain string) (err error)

MapRoute map route to application

func (*ResourcesData) PushApp

func (resource *ResourcesData) PushApp(parsedArguments *arguments.ParserArguments) (err error)

func (*ResourcesData) PushApplication

func (resource *ResourcesData) PushApplication(venAppName, spaceGUID string, parsedArguments *arguments.ParserArguments, v2Resources v2.Resources) error

PushApplication call all methods to push a complete application

func (*ResourcesData) SetHealthCheck

func (resource *ResourcesData) SetHealthCheck(appName string, healthCheckType string, healthCheckHTTPEndpoint string, invocationTimeout int, process string) (err error)

SetHealthCheckV3 sets the health check for the specified application using the given health check configuration

func (*ResourcesData) SwitchRoutes

func (resource *ResourcesData) SwitchRoutes(venAppName string, appName string, routes []map[string]string) (err error)

SwitchRoutes add new routes and switch "old" one from venerable app to the one

func (*ResourcesData) SwitchRoutesOnly

func (resource *ResourcesData) SwitchRoutesOnly(venAppName string, appName string, routes []map[string]string) (err error)

SwitchRoutes switch route interface method to provide switch routes only option

func (*ResourcesData) UnMapRoute

func (resource *ResourcesData) UnMapRoute(appName string, host string, domain string) (err error)

UnMapRoute remove route from application

type Routes

type Routes struct {
	Host   string
	Domain string
	Path   string
}

Jump to

Keyboard shortcuts

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