daemon

package
v2.12.1-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDefaultRequest

func WithDefaultRequest(ctx context.Context, cmd *cobra.Command) context.Context

func WithSession

func WithSession(ctx context.Context, s *Session) context.Context

func WithUserClient

func WithUserClient(ctx context.Context, ud *UserClient) context.Context

Types

type Request

type Request struct {
	connector.ConnectRequest
	Docker bool

	// Request is created on-demand, not by InitRequest
	Implicit bool
	// contains filtered or unexported fields
}

func GetRequest

func GetRequest(ctx context.Context) *Request

func InitRequest

func InitRequest(cmd *cobra.Command) *Request

InitRequest adds the networking flags and Kubernetes flags to the given command and returns a Request and a FlagSet with the Kubernetes flags. The FlagSet is returned here so that a map of flags that gets modified can be extracted using FlagMap once the flag parsing has completed.

func (*Request) CommitFlags

func (cr *Request) CommitFlags(cmd *cobra.Command)

type Session

type Session struct {
	UserClient
	Info    *connector.ConnectInfo
	Started bool
}

func GetSession

func GetSession(ctx context.Context) *Session

type UserClient

type UserClient struct {
	connector.ConnectorClient
	Conn   *grpc.ClientConn
	Remote bool
}

func GetUserClient

func GetUserClient(ctx context.Context) *UserClient

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL