mocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SucceedingDaemonsetName         = "DAEMONSET_SUCCEED"
	FailingDaemonsetName            = "DAEMONSET_FAIL"
	CorrectNamespaceDaemonsetName   = "CORRECT_DAEMONSET_NAMESPACE"
	IncorrectNamespaceDaemonsetName = "INCORRECT_DAEMONSET_NAMESPACE"
	CorrectDaemonsetNamespace       = "CORRECT_DAEMONSET"

	FailingMatchLabelsDaemonsetName  = "DAEMONSET_INCORRECT_MATCH_LABELS"
	NotReadyMatchLabelsDaemonsetName = "DAEMONSET_NOT_READY_MATCH_LABELS"
)
View Source
const (
	SucceedingJobName  = "succeed"
	FailingJobName     = "fail"
	SucceedingJobLabel = "succeed"
	FailingJobLabel    = "fail"
)
View Source
const (
	PodNotPresent                   = "NOT_PRESENT"
	PodEnvVariableValue             = "podlist"
	FailingMatchLabel               = "INCORRECT"
	SameHostNotReadyMatchLabel      = "SAME_HOST_NOT_READY"
	SameHostReadyMatchLabel         = "SAME_HOST_READY"
	SameHostSomeReadyMatchLabel     = "SAME_HOST_SOME_READY"
	DifferentHostReadyMatchLabel    = "DIFFERENT_HOST_READY"
	DifferentHostNotReadyMatchLabel = "DIFFERENT_HOST_NOT_READY"
	NoPodsMatchLabel                = "NO_PODS"
)
View Source
const (
	MockServiceError        = "Mock service didnt work"
	SucceedingServiceName   = "succeed"
	EmptySubsetsServiceName = "empty-subsets"
	FailingServiceName      = "fail"
)
View Source
const MockContainerName = "TEST_CONTAINER"
View Source
const (
	MockEndpointError = "Mock endpoint didnt work"
)

Variables

This section is empty.

Functions

func NewClient

func NewClient() cli.ClientInterface

func NewEClient

func NewEClient() apicore.EndpointsInterface

func NewJClient

func NewJClient() v1batch.JobInterface

func NewJob added in v0.3.1

func NewJob(succeeded int32) batch.Job

func NewPClient

func NewPClient() v1core.PodInterface

func NewPod added in v0.3.0

func NewPod(ready bool, hostIP string) v1.Pod

func NewSClient

func NewSClient() v1core.ServiceInterface

Types

type Client

func (Client) DaemonSets

func (c Client) DaemonSets(namespace string) v1beta1extensions.DaemonSetInterface

func (Client) Endpoints

func (c Client) Endpoints(namespace string) v1core.EndpointsInterface

func (Client) Jobs

func (c Client) Jobs(namespace string) v1batch.JobInterface

func (Client) Pods

func (c Client) Pods(namespace string) v1core.PodInterface

func (Client) Services

func (c Client) Services(namespace string) v1core.ServiceInterface

type MockEntrypoint

type MockEntrypoint struct {
	// contains filtered or unexported fields
}

func NewEntrypoint

func NewEntrypoint() MockEntrypoint

func NewEntrypointInNamespace added in v0.1.1

func NewEntrypointInNamespace(namespace string) MockEntrypoint

func (MockEntrypoint) Client

func (m MockEntrypoint) Client() (client cli.ClientInterface)

func (MockEntrypoint) GetNamespace

func (m MockEntrypoint) GetNamespace() (namespace string)

func (MockEntrypoint) Resolve

func (m MockEntrypoint) Resolve()

Jump to

Keyboard shortcuts

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