fake

package
v0.0.0-...-7b34d14 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	NamespaceExists    bool
	NamespaceExistsErr error
}

func (*FakeClient) HasNamespace

func (c *FakeClient) HasNamespace(string) (bool, error)

type FakeKubeConfig

type FakeKubeConfig struct {
	Filename                 string
	CurrentContext           string
	Client                   kumactl_k8s.Client
	ClientErr                error
	ServiceProxyTransport    http.RoundTripper
	ServiceProxyTransportErr error
}

func (*FakeKubeConfig) GetCurrentContext

func (c *FakeKubeConfig) GetCurrentContext() string

func (*FakeKubeConfig) GetFilename

func (c *FakeKubeConfig) GetFilename() string

func (*FakeKubeConfig) NewClient

func (c *FakeKubeConfig) NewClient() (kumactl_k8s.Client, error)

func (*FakeKubeConfig) NewServiceProxyTransport

func (c *FakeKubeConfig) NewServiceProxyTransport(namespace, name string) (http.RoundTripper, error)

Jump to

Keyboard shortcuts

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