Help us shape the future of Go! Take the 2026 Go Developer Survey

test

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SetError error
}

Config implements config.Config interface for testing

func (*Config) Get

func (c *Config) Get() *client.Config

Get implements the Get method for testing

func (*Config) GetObject

func (c *Config) GetObject() runtime.Object

GetObject implements the GetObject method for testing

func (*Config) NewConfig

func (c *Config) NewConfig(_ common.Params) (config.Config, error)

NewConfig creates a new test config

func (*Config) Reset

func (c *Config) Reset(_ common.Params) error

Reset implements the Reset method for testing

func (*Config) Set

func (c *Config) Set(_ bool, _ common.Params) error

Set implements the Set method for testing

func (*Config) Validate added in v0.15.1

func (c *Config) Validate() error

Validate implements the Validate method for testing

type Params

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

Params implements common.Params interface for testing

func (*Params) APIPath

func (p *Params) APIPath() string

APIPath implements the APIPath method for testing

func (*Params) Host

func (p *Params) Host() string

Host implements the Host method for testing

func (*Params) KubeConfigPath

func (p *Params) KubeConfigPath() string

KubeConfigPath implements the KubeConfigPath method for testing

func (*Params) KubeContext

func (p *Params) KubeContext() string

KubeContext implements the KubeContext method for testing

func (*Params) Namespace

func (p *Params) Namespace() string

Namespace implements the Namespace method for testing

func (*Params) SetAPIPath

func (p *Params) SetAPIPath(path string)

SetAPIPath implements the SetAPIPath method for testing

func (*Params) SetHost

func (p *Params) SetHost(host string)

SetHost implements the SetHost method for testing

func (*Params) SetKubeConfigPath

func (p *Params) SetKubeConfigPath(path string)

SetKubeConfigPath implements the SetKubeConfigPath method for testing

func (*Params) SetKubeContext

func (p *Params) SetKubeContext(context string)

SetKubeContext implements the SetKubeContext method for testing

func (*Params) SetNamespace

func (p *Params) SetNamespace(ns string)

SetNamespace implements the SetNamespace method for testing

func (*Params) SetSkipTLSVerify

func (p *Params) SetSkipTLSVerify(skip bool)

SetSkipTLSVerify implements the SetSkipTLSVerify method for testing

func (*Params) SetToken

func (p *Params) SetToken(token string)

SetToken implements the SetToken method for testing

func (*Params) SkipTLSVerify

func (p *Params) SkipTLSVerify() bool

SkipTLSVerify implements the SkipTLSVerify method for testing

func (*Params) Token

func (p *Params) Token() string

Token implements the Token method for testing

Jump to

Keyboard shortcuts

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