internal

package
v0.0.0-...-4a2ba69 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Namespace string
	*kubernetes.Clientset
	*rest.Config
}

Client is kubernetes client set wrapper

func NewClient

func NewClient(clientGetter genericclioptions.RESTClientGetter) (*Client, error)

NewClient return new kubernetes client

type Patch

type Patch struct {
	Operation string      `json:"op"`
	Path      string      `json:"path"`
	Value     interface{} `json:"value,omitempty"`
}

type ToggleOptions

type ToggleOptions struct {
	Service string
	Ingress string
	Kube    *kube.ConfigFlags
	Host    *string
}

func (*ToggleOptions) GetIngress

func (opts *ToggleOptions) GetIngress(resource string) (*networkv1.Ingress, error)

func (*ToggleOptions) Parse

func (opts *ToggleOptions) Parse() *flag.FlagSet

func (*ToggleOptions) Patch

func (opts *ToggleOptions) Patch(patch *Patch) error

Jump to

Keyboard shortcuts

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