Documentation ¶
Index ¶
- Variables
- func CommandInitializer(cmd *cobra.Command) (err error)
- func DialDaemon(ctx context.Context, info *daemon.Info) (*grpc.ClientConn, error)
- func Disconnect(ctx context.Context)
- func DiscoverDaemon(ctx context.Context, match *regexp.Regexp, daemonID *daemon.Identifier) (*daemon.UserClient, error)
- func EnsureSession(ctx context.Context, useLine string, required bool) (context.Context, error)
- func EnsureUserDaemon(ctx context.Context, required bool) (_ context.Context, err error)
- func ExistingDaemon(ctx context.Context, info *daemon.Info) (*daemon.UserClient, error)
- func InitCommand(cmd *cobra.Command) (err error)
- func Initializer(ctx context.Context) (context.Context, error)
- func Quit(ctx context.Context)
- func RunConnect(cmd *cobra.Command, args []string) error
- func WithCommandInitializer(ctx context.Context, cmdInit func(cmd *cobra.Command) error) context.Context
- type ConnectError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoUserDaemon = errors.New("telepresence user daemon is not running") ErrNoRootDaemon = errors.New("telepresence root daemon is not running") )
View Source
var QuitDaemonFuncs = []func(context.Context){
quitHostConnector, quitDockerDaemons,
}
Functions ¶
func CommandInitializer ¶
func DialDaemon ¶ added in v2.16.0
DialDaemon dials the daemon appointed by the given info.
func Disconnect ¶
Disconnect disconnects from a session in the user daemon.
func DiscoverDaemon ¶ added in v2.16.0
func DiscoverDaemon(ctx context.Context, match *regexp.Regexp, daemonID *daemon.Identifier) (*daemon.UserClient, error)
DiscoverDaemon searches the daemon cache for an entry corresponding to the given name. A connection to that daemon is returned if such an entry is found.
func EnsureSession ¶ added in v2.16.0
func EnsureUserDaemon ¶ added in v2.16.0
func ExistingDaemon ¶ added in v2.18.0
func InitCommand ¶
func Initializer ¶ added in v2.19.0
Initializer ensures that the context is initialized with connection to the user daemon, and that the root daemon is running if necessary.
Types ¶
type ConnectError ¶ added in v2.18.0
type ConnectError struct {
// contains filtered or unexported fields
}
func (*ConnectError) Code ¶ added in v2.18.0
func (ce *ConnectError) Code() connector.ConnectInfo_ErrType
func (*ConnectError) Unwrap ¶ added in v2.18.0
func (ce *ConnectError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.