kube

package
v0.0.0-...-ddadb11 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkHandlerKube

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

func NewLinkHandlerKube

func NewLinkHandlerKube(namespace string, site *types.SiteConfig, routerConfig *qdr.RouterConfig, cli kubernetes.Interface, restConfig *rest.Config) *LinkHandlerKube

func (*LinkHandlerKube) Create

func (l *LinkHandlerKube) Create(secret *corev1.Secret, name string, cost int) error

func (*LinkHandlerKube) Delete

func (l *LinkHandlerKube) Delete(name string) error

func (*LinkHandlerKube) Detail

func (l *LinkHandlerKube) Detail(link types.LinkStatus) (map[string]string, error)

func (*LinkHandlerKube) List

func (l *LinkHandlerKube) List() ([]*corev1.Secret, error)
func (l *LinkHandlerKube) RemoteLinks(ctx context.Context) ([]*network.RemoteLinkInfo, error)

func (*LinkHandlerKube) Status

func (l *LinkHandlerKube) Status(name string) (types.LinkStatus, error)

func (*LinkHandlerKube) StatusAll

func (l *LinkHandlerKube) StatusAll() ([]types.LinkStatus, error)

Jump to

Keyboard shortcuts

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