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, grpcDialer dnet.DialerFunc, podName, namespace string, ...) (*grpc.ClientConn, agent.AgentClient, *manager.VersionInfo2, error)
- func ConnectToManager(ctx context.Context, namespace string, grpcDialer dnet.DialerFunc) (*grpc.ClientConn, manager.ManagerClient, *manager.VersionInfo2, error)
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, grpcDialer dnet.DialerFunc, podName, namespace string, port uint16, ) (*grpc.ClientConn, agent.AgentClient, *manager.VersionInfo2, error)
func ConnectToManager ¶
func ConnectToManager(ctx context.Context, namespace string, grpcDialer dnet.DialerFunc) (*grpc.ClientConn, manager.ManagerClient, *manager.VersionInfo2, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.