machine

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package machine provides a number of utility functions encapsulating often-used sequences. I.e. create/delete applications/services, bind/unbind services, etc. This is done in the hope of enhancing the readability of various before/after blocks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Machine

type Machine struct {
	// contains filtered or unexported fields
}

func New

func New(dir string, user string, password string, root string, epinioBinaryPath string) Machine

func (*Machine) BindAppService

func (m *Machine) BindAppService(appName, serviceName, org string)

func (*Machine) CleanupApp

func (m *Machine) CleanupApp(appName string)

func (*Machine) CleanupService

func (m *Machine) CleanupService(serviceName string)

func (*Machine) Client

func (m *Machine) Client() *http.Client

func (*Machine) Curl

func (m *Machine) Curl(method, uri string, requestBody *strings.Reader) (*http.Response, error)

Curl is used to make requests against a server

func (*Machine) DeleteApp

func (m *Machine) DeleteApp(appName string)

func (*Machine) DeleteService

func (m *Machine) DeleteService(serviceName string)

func (*Machine) DeleteServiceUnbind

func (m *Machine) DeleteServiceUnbind(serviceName string)

func (*Machine) DeleteServiceWithUnbind

func (m *Machine) DeleteServiceWithUnbind(serviceName string, unbind bool)

func (*Machine) Epinio

func (m *Machine) Epinio(dir, command string, arg ...string) (string, error)

Epinio invokes the `epinio` binary, running the specified command. It returns the command output and/or error. dir parameter defines the directory from which the command should be run. It defaults to the current dir if left empty.

func (*Machine) GetConfig

func (m *Machine) GetConfig() (*config.Config, error)

func (*Machine) GetConfigFrom

func (m *Machine) GetConfigFrom(location string) (*config.Config, error)

func (*Machine) GetPodNames

func (m *Machine) GetPodNames(appName, orgName string) []string

func (*Machine) MakeApp

func (m *Machine) MakeApp(appName string, instances int, deployFromCurrentDir bool) string

func (*Machine) MakeAppWithDir

func (m *Machine) MakeAppWithDir(appName string, instances int, deployFromCurrentDir bool, appDir string) string

func (*Machine) MakeCatalogService

func (m *Machine) MakeCatalogService(serviceName string, dataJSON ...string)

func (*Machine) MakeCatalogServiceDontWait

func (m *Machine) MakeCatalogServiceDontWait(serviceName string, dataJSON ...string)

func (*Machine) MakeCustomService

func (m *Machine) MakeCustomService(serviceName string)

func (*Machine) MakeDockerImageApp

func (m *Machine) MakeDockerImageApp(appName string, instances int, dockerImageURL string) string

func (*Machine) MakeGolangApp

func (m *Machine) MakeGolangApp(appName string, instances int, deployFromCurrentDir bool) string

func (*Machine) MakeWebSocketConnection

func (m *Machine) MakeWebSocketConnection(url string) *websocket.Conn

func (*Machine) SetupAndTargetOrg

func (m *Machine) SetupAndTargetOrg(org string)

func (*Machine) UnbindAppService

func (m *Machine) UnbindAppService(appName, serviceName, org string)

func (*Machine) VerifyAppServiceBound

func (m *Machine) VerifyAppServiceBound(appName, serviceName, org string, offset int)

func (*Machine) VerifyAppServiceNotbound

func (m *Machine) VerifyAppServiceNotbound(appName, serviceName, org string, offset int)

func (*Machine) VerifyOrgNotExist

func (m *Machine) VerifyOrgNotExist(org string)

Jump to

Keyboard shortcuts

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