Documentation ¶
Index ¶
- Constants
- func NewClient() cli.ClientInterface
- func NewDSClient() v1beta1extensions.DaemonSetInterface
- func NewEClient() apicore.EndpointsInterface
- func NewJClient() v1batch.JobInterface
- func NewJob(succeeded int32) batch.Job
- func NewPClient() v1core.PodInterface
- func NewPod(ready bool, hostIP string) v1.Pod
- func NewSClient() v1core.ServiceInterface
- type Client
- func (c Client) DaemonSets(namespace string) v1beta1extensions.DaemonSetInterface
- func (c Client) Endpoints(namespace string) v1core.EndpointsInterface
- func (c Client) Jobs(namespace string) v1batch.JobInterface
- func (c Client) Pods(namespace string) v1core.PodInterface
- func (c Client) Services(namespace string) v1core.ServiceInterface
- type MockEntrypoint
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 NewDSClient ¶
func NewDSClient() v1beta1extensions.DaemonSetInterface
func NewEClient ¶
func NewEClient() apicore.EndpointsInterface
func NewJClient ¶
func NewJClient() v1batch.JobInterface
func NewPClient ¶
func NewPClient() v1core.PodInterface
func NewSClient ¶
func NewSClient() v1core.ServiceInterface
Types ¶
type Client ¶
type Client struct { v1core.PodInterface v1core.ServiceInterface v1beta1extensions.DaemonSetInterface v1core.EndpointsInterface v1batch.JobInterface }
func (Client) DaemonSets ¶
func (c Client) DaemonSets(namespace string) v1beta1extensions.DaemonSetInterface
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()
Click to show internal directories.
Click to hide internal directories.