k8s

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEndpointsFlags

func RegisterEndpointsFlags(f []cli.Flag) []cli.Flag

func RegisterNodesStatFlags

func RegisterNodesStatFlags(f []cli.Flag) []cli.Flag

Types

type Client

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

func NewClient

func NewClient() *Client

func (*Client) Get

func (s *Client) Get() (*kubernetes.Clientset, error)

type Endpoints

type Endpoints struct {
	lazymap.LazyMap[*corev1.Endpoints]
	// contains filtered or unexported fields
}

func NewEndpoints

func NewEndpoints(c *cli.Context, cl *Client) *Endpoints

func (*Endpoints) Get

func (s *Endpoints) Get(name string) (*corev1.Endpoints, error)

type NodeStat

type NodeStat struct {
	Name         string
	RolesAllowed []string
	RolesDenied  []string
}

func (*NodeStat) IsAllowed

func (s *NodeStat) IsAllowed(role string) bool

type NodesStat

type NodesStat struct {
	lazymap.LazyMap[[]NodeStat]
	// contains filtered or unexported fields
}

func NewNodesStat

func NewNodesStat(c *cli.Context, kcl *Client) *NodesStat

func (*NodesStat) Get

func (s *NodesStat) Get() ([]NodeStat, error)

Jump to

Keyboard shortcuts

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