mocks

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagParse

func FlagParse()

func FlagString

func FlagString(name string, value string, usage string) *string

Types

type Client

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

func NewClient

func NewClient(expectError bool) *Client

func (*Client) BuildConfigFromFlags

func (c *Client) BuildConfigFromFlags(masterUrl string, kubeconfigPath string) (*rest.Config, error)

func (*Client) InClusterConfig

func (c *Client) InClusterConfig() (*rest.Config, error)

func (*Client) NewForConfig

func (c *Client) NewForConfig(*rest.Config) (*kubernetes.Clientset, error)

NewForConfig returns a new Kubernetes clientset

func (*Client) NewIngressRouteClientForConfig

func (c *Client) NewIngressRouteClientForConfig(*rest.Config) (*ingressroute.CustomResourceClient, error)

NewIngressRouteClientForConfig returns a new ingressroute client

func (*Client) OsUserHomeDir

func (c *Client) OsUserHomeDir() (string, error)

type MockRoundTripper

type MockRoundTripper struct {
	RoundTripFunc func(req *http.Request) (*http.Response, error)
}

MockRoundTripper is a mock implementation of the RoundTripper interface.

func (*MockRoundTripper) RoundTrip

func (m *MockRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip calls the RoundTripFunc method of the mock.

Jump to

Keyboard shortcuts

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