Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Server string
}
Client enables communication with the Kubernetes API Server through kubectl commands. The Server field enables discovery of the API server when kube-proxy is not configured (see README.md for more information).
func (*Client) Apply ¶
Apply attempts to "kubectl apply" the file located at path. It returns the full apply command and its output.
func (*Client) CheckVersion ¶
CheckVersion returns an error if the server and client have incompatible versions, otherwise returns nil.
type ClientInterface ¶
ClientInterface allows for mocking out the functionality of Client when testing the full process of an apply run.
type MockClientInterface ¶
type MockClientInterface struct {
// contains filtered or unexported fields
}
Mock of ClientInterface interface
func NewMockClientInterface ¶
func NewMockClientInterface(ctrl *gomock.Controller) *MockClientInterface
func (*MockClientInterface) Apply ¶
func (_m *MockClientInterface) Apply(_param0 string) (string, string, error)
func (*MockClientInterface) CheckVersion ¶
func (_m *MockClientInterface) CheckVersion() error
func (*MockClientInterface) EXPECT ¶
func (_m *MockClientInterface) EXPECT() *_MockClientInterfaceRecorder
Click to show internal directories.
Click to hide internal directories.