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 ¶
- type Machine
- func (m *Machine) BindAppService(appName, serviceName, org string)
- func (m *Machine) CleanupApp(appName string)
- func (m *Machine) CleanupService(serviceName string)
- func (m *Machine) Client() *http.Client
- func (m *Machine) Curl(method, uri string, requestBody *strings.Reader) (*http.Response, error)
- func (m *Machine) DeleteApp(appName string)
- func (m *Machine) DeleteService(serviceName string)
- func (m *Machine) DeleteServiceUnbind(serviceName string)
- func (m *Machine) DeleteServiceWithUnbind(serviceName string, unbind bool)
- func (m *Machine) Epinio(dir, command string, arg ...string) (string, error)
- func (m *Machine) GetConfig() (*config.Config, error)
- func (m *Machine) GetConfigFrom(location string) (*config.Config, error)
- func (m *Machine) GetPodNames(appName, orgName string) []string
- func (m *Machine) MakeApp(appName string, instances int, deployFromCurrentDir bool) string
- func (m *Machine) MakeAppWithDir(appName string, instances int, deployFromCurrentDir bool, appDir string) string
- func (m *Machine) MakeCatalogService(serviceName string, dataJSON ...string)
- func (m *Machine) MakeCatalogServiceDontWait(serviceName string, dataJSON ...string)
- func (m *Machine) MakeCustomService(serviceName string)
- func (m *Machine) MakeDockerImageApp(appName string, instances int, dockerImageURL string) string
- func (m *Machine) MakeGolangApp(appName string, instances int, deployFromCurrentDir bool) string
- func (m *Machine) MakeWebSocketConnection(url string) *websocket.Conn
- func (m *Machine) SetupAndTargetOrg(org string)
- func (m *Machine) UnbindAppService(appName, serviceName, org string)
- func (m *Machine) VerifyAppServiceBound(appName, serviceName, org string, offset int)
- func (m *Machine) VerifyAppServiceNotbound(appName, serviceName, org string, offset int)
- func (m *Machine) VerifyOrgNotExist(org string)
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 (*Machine) BindAppService ¶
func (*Machine) CleanupApp ¶
func (*Machine) CleanupService ¶
func (*Machine) DeleteService ¶
func (*Machine) DeleteServiceUnbind ¶
func (*Machine) DeleteServiceWithUnbind ¶
func (*Machine) Epinio ¶
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) GetConfigFrom ¶
func (*Machine) GetPodNames ¶
func (*Machine) MakeAppWithDir ¶
func (*Machine) MakeCatalogService ¶
func (*Machine) MakeCatalogServiceDontWait ¶
func (*Machine) MakeCustomService ¶
func (*Machine) MakeDockerImageApp ¶
func (*Machine) MakeGolangApp ¶
func (*Machine) MakeWebSocketConnection ¶
func (*Machine) SetupAndTargetOrg ¶
func (*Machine) UnbindAppService ¶
func (*Machine) VerifyAppServiceBound ¶
func (*Machine) VerifyAppServiceNotbound ¶
func (*Machine) VerifyOrgNotExist ¶
Click to show internal directories.
Click to hide internal directories.