kube

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 14 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 {
	// contains filtered or unexported fields
}

func InClusterClient

func InClusterClient(name string) (*Client, error)

func NewClient

func NewClient(name string, config *rest.Config) (*Client, error)

func (*Client) Create

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, gvk schema.GroupVersionKind, ns string, name string) error

func (*Client) Get

func (*Client) Update

type ExposeOperator

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

func NewExposeOperator

func NewExposeOperator(name string, kc *Client, namespace string) *ExposeOperator

func (*ExposeOperator) HijackService

func (o *ExposeOperator) HijackService(ctx context.Context, serviceName string, appName string, port int) error

func (*ExposeOperator) RestoreService

func (o *ExposeOperator) RestoreService(ctx context.Context, serviceName string) error

Jump to

Keyboard shortcuts

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