kubernetes

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KubeConfig

func KubeConfig() string

Types

type Client

type Client interface {
	ExecuteJob(string, map[string]string) (string, error)
	StreamJobLogs(string) (io.ReadCloser, error)
	JobExecutionStatus(string) (string, error)
}

func NewClient

func NewClient(kubeconfig string, httpClient *http.Client) Client

type MockClient

type MockClient struct {
	mock.Mock
}

func (*MockClient) ExecuteJob

func (m *MockClient) ExecuteJob(jobName string, envMap map[string]string) (string, error)

func (*MockClient) JobExecutionStatus

func (m *MockClient) JobExecutionStatus(jobExecutionID string) (string, error)

func (*MockClient) StreamJobLogs

func (m *MockClient) StreamJobLogs(jobName string) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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