Documentation
¶
Index ¶
- func DefaultKubeconfigPath() string
- func RewriteKubeconfigWithBearerToken(path string, token string) error
- type Client
- func (c *Client) ClusterHost() string
- func (c *Client) ClusterInfoText() string
- func (c *Client) CurrentContext() string
- func (c *Client) GatekeeperConstraints(ctx context.Context) ([]map[string]any, error)
- func (c *Client) List(ctx context.Context, resource string, allNamespaces bool) ([]map[string]any, error)
- func (c *Client) ListByGVR(ctx context.Context, gvr schema.GroupVersionResource, namespaced bool, ...) ([]map[string]any, error)
- func (c *Client) NodeMetrics(ctx context.Context) (map[string]NodeMetric, error)
- func (c *Client) Ping(ctx context.Context) error
- func (c *Client) Raw(ctx context.Context, path string) ([]byte, error)
- func (c *Client) ServerVersion(ctx context.Context) (string, error)
- type NodeMetric
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultKubeconfigPath ¶
func DefaultKubeconfigPath() string
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewFromBase64 ¶
func NewFromPath ¶
func (*Client) ClusterHost ¶
func (*Client) ClusterInfoText ¶
func (*Client) CurrentContext ¶
func (*Client) GatekeeperConstraints ¶
func (*Client) NodeMetrics ¶
type NodeMetric ¶
Click to show internal directories.
Click to hide internal directories.