Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calls ¶
type Calls interface { GetJSON(path string) (string, error) PostJSON(path string, jsonBody string) (string, error) PatchJSON(path string, jsonBody string) (string, error) }
Calls cli curl calls
type CfExecutor ¶
func NewExecutor ¶
func NewExecutor(traceLogging bool) CfExecutor
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection cli connection object
func (*Connection) GetJSON ¶
func (conn *Connection) GetJSON(path string) (string, error)
GetJSON make an get call to an url
type FakeExecutor ¶
type FakeExecutor struct {
// contains filtered or unexported fields
}
Test struct for executro
func (*FakeExecutor) Execute ¶
func (tx *FakeExecutor) Execute(arguments []string) (err error)
func (*FakeExecutor) ExecutorArgumentsOutput ¶
func (tx *FakeExecutor) ExecutorArgumentsOutput() map[int][]string
func (*FakeExecutor) ExecutorCallCount ¶
func (tx *FakeExecutor) ExecutorCallCount() int
func (*FakeExecutor) NewFakeExecutor ¶
func (tx *FakeExecutor) NewFakeExecutor() CfExecutor
type HttpCalls ¶
type HttpCalls interface { PostJSON(path string, body []byte) (string, error) PostFormData(path string, body []byte, contentType string) (string, error) }
Calls interface
type HttpConnection ¶
type HttpConnection struct {
// contains filtered or unexported fields
}
HttpConnection
func NewHttpClient ¶
func NewHttpClient(cliConnection plugin.CliConnection, traceLogging bool, timeout int, skipSSLValidation bool) *HttpConnection
NewHttpClient ff
func (*HttpConnection) PostFormData ¶
Click to show internal directories.
Click to hide internal directories.