Documentation ¶
Index ¶
- Variables
- func AddKubeconfigEnv(cr *connector.ConnectRequest)
- func AddSubCommands(ctx context.Context, commands ...*cobra.Command) context.Context
- func CommandInitializer(cmd *cobra.Command) (err error)
- func DescribeIntercepts(iis []*manager.InterceptInfo, volumeMountsPrevented error, debug bool) string
- func Disconnect(ctx context.Context, quitDaemons bool) error
- func EnsureRootDaemonRunning(ctx context.Context) error
- func ForcedUpdateCheck(cmd *cobra.Command, _ []string) error
- func GetConnectRequest(ctx context.Context) *connector.ConnectRequest
- func GetSubCommands(cmd *cobra.Command) []*cobra.Command
- func InitCommand(cmd *cobra.Command) (err error)
- func PrepareMount(cwd string, mountPoint string) (string, error)
- func RaiseCloudMessage(cmd *cobra.Command, _ []string) error
- func UpdateCheckIfDue(cmd *cobra.Command, _ []string) error
- func UserDaemonDisconnect(ctx context.Context, quitDaemons bool) (err error)
- func WithCommandInitializer(ctx context.Context, cmdInit func(cmd *cobra.Command) error) context.Context
- func WithConnectionRequest(ctx context.Context, rq *connector.ConnectRequest) context.Context
- func WithManager(ctx context.Context, fn func(context.Context, manager.ManagerClient) error) error
- type Session
- type UpdateChecker
- type UserDaemon
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddKubeconfigEnv ¶
func AddKubeconfigEnv(cr *connector.ConnectRequest)
func AddSubCommands ¶
func CommandInitializer ¶
func DescribeIntercepts ¶
func DescribeIntercepts(iis []*manager.InterceptInfo, volumeMountsPrevented error, debug bool) string
func Disconnect ¶
Disconnect shuts down a session in the root daemon. When it shuts down, it will tell the connector to shut down.
func EnsureRootDaemonRunning ¶
EnsureRootDaemonRunning ensures that the daemon is running.
func GetConnectRequest ¶
func GetConnectRequest(ctx context.Context) *connector.ConnectRequest
func InitCommand ¶
func RaiseCloudMessage ¶
RaiseCloudMessage is what is called from `PostRunE` in a command and is responsible for raising the message for the command used.
func UserDaemonDisconnect ¶
func WithCommandInitializer ¶
func WithConnectionRequest ¶
func WithManager ¶
Types ¶
type Session ¶
type Session struct { UserDaemon Info *connector.ConnectInfo Started bool }
func GetSession ¶
type UpdateChecker ¶
type UpdateChecker struct { NextCheck map[string]time.Time `json:"next_check"` // contains filtered or unexported fields }
func NewUpdateChecker ¶
func NewUpdateChecker(ctx context.Context, url string) (*UpdateChecker, error)
NewUpdateChecker returns a new update checker, possibly initialized from the users cache.
func (*UpdateChecker) StoreNextCheck ¶
func (*UpdateChecker) UpdateAvailable ¶
type UserDaemon ¶
type UserDaemon struct { connector.ConnectorClient Conn *grpc.ClientConn }
func GetUserDaemon ¶
func GetUserDaemon(ctx context.Context) *UserDaemon
Click to show internal directories.
Click to hide internal directories.