Documentation ¶
Index ¶
- func HandleAuthHeaders(mockAuthCrypt rest.AuthCrypt, request, response string, ...) func(w http.ResponseWriter, r *http.Request, body string) *string
- func Init()
- type FakeCLI
- func (c *FakeCLI) AddFakeResponse(inArgs []string, inExtraEnvVars []string, outResponse string, ...) string
- func (c *FakeCLI) ApplyFilter(filter *streams.Filter)
- func (c *FakeCLI) ExecutablePath() string
- func (c *FakeCLI) ExpectFakeRequest(key string)
- func (c *FakeCLI) GetPipedErrorBuffer() io.Reader
- func (c *FakeCLI) GetPipedOutputBuffer() io.Reader
- func (c *FakeCLI) IsExpectedRequestStackEmpty() bool
- func (c *FakeCLI) Reset()
- func (c *FakeCLI) Run(args []string) error
- func (c *FakeCLI) RunWithEnv(args []string, extraEnvVars []string) error
- func (c *FakeCLI) Start(args []string) error
- func (c *FakeCLI) StartWithEnv(args []string, extraEnvVars []string) error
- func (c *FakeCLI) Stop(timeout ...time.Duration) error
- func (c *FakeCLI) Wait(timeout ...time.Duration) error
- func (c *FakeCLI) WorkingDirectory() string
- type MockAuthCrypt
- type MockHttpServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAuthHeaders ¶
Types ¶
type FakeCLI ¶
type FakeCLI struct {
FuncRunCounter, FuncRunWithEnvCounter int
// contains filtered or unexported fields
}
func NewFakeCLI ¶
func (*FakeCLI) AddFakeResponse ¶
func (*FakeCLI) ApplyFilter ¶
func (*FakeCLI) ExecutablePath ¶
func (*FakeCLI) ExpectFakeRequest ¶
func (*FakeCLI) GetPipedErrorBuffer ¶
func (*FakeCLI) GetPipedOutputBuffer ¶
func (*FakeCLI) IsExpectedRequestStackEmpty ¶
func (*FakeCLI) RunWithEnv ¶
func (*FakeCLI) StartWithEnv ¶
func (*FakeCLI) WorkingDirectory ¶
type MockAuthCrypt ¶
type MockAuthCrypt struct {
// contains filtered or unexported fields
}
func NewMockAuthCrypt ¶
func NewMockAuthCrypt(key string, encryptionKey []byte) (*MockAuthCrypt, error)
func (*MockAuthCrypt) AuthTokenKey ¶
func (a *MockAuthCrypt) AuthTokenKey() string
func (*MockAuthCrypt) IsAuthenticated ¶
func (a *MockAuthCrypt) IsAuthenticated() bool
func (*MockAuthCrypt) WaitForAuth ¶
func (a *MockAuthCrypt) WaitForAuth() bool
type MockHttpServer ¶
type MockHttpServer struct {
// contains filtered or unexported fields
}
func NewMockHttpServer ¶
func NewMockHttpServer(port int) *MockHttpServer
func NewMockHttpsServer ¶
func NewMockHttpsServer(port int) (*MockHttpServer, string, error)
func (*MockHttpServer) Done ¶
func (ms *MockHttpServer) Done() bool
func (*MockHttpServer) ExpectCommonHeader ¶
func (ms *MockHttpServer) ExpectCommonHeader(name, value string)
func (*MockHttpServer) PushRequest ¶
func (ms *MockHttpServer) PushRequest() *request
func (*MockHttpServer) Start ¶
func (ms *MockHttpServer) Start()
func (*MockHttpServer) Stop ¶
func (ms *MockHttpServer) Stop()
Click to show internal directories.
Click to hide internal directories.