Documentation ¶
Index ¶
- func CanI(ctx context.Context, ra *v1.ResourceAttributes) (bool, error)
- func CanPortForward(ctx context.Context, namespace string) bool
- func CanWatchNamespaces(ctx context.Context) bool
- func ConnectToAgent(ctx context.Context, podName, namespace string, port uint16) (*grpc.ClientConn, agent.AgentClient, *manager.VersionInfo2, error)
- func ConnectToManager(ctx context.Context, namespace string) (*grpc.ClientConn, manager.ManagerClient, *manager.VersionInfo2, error)
- func GetK8sConfig(ctx context.Context) *rest.Config
- func WithK8sConfig(ctx context.Context, k8sConfig *rest.Config) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanPortForward ¶
CanPortForward answers the question if this client has the RBAC permissions necessary to perform a port-forward to the connected namespace.
func CanWatchNamespaces ¶
CanWatchNamespaces answers the question if this client has the RBAC permissions necessary to watch namespaces. The answer is likely false when using a namespaces scoped installation.
func ConnectToAgent ¶
func ConnectToAgent( ctx context.Context, podName, namespace string, port uint16, ) (*grpc.ClientConn, agent.AgentClient, *manager.VersionInfo2, error)
func ConnectToManager ¶
func ConnectToManager(ctx context.Context, namespace string) (*grpc.ClientConn, manager.ManagerClient, *manager.VersionInfo2, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.