Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultAdminSocketPath = common.DefaultAdminSocketPath
Variables ¶
This section is empty.
Functions ¶
func NewGRPCClient ¶
func NewGRPCClient(addr string) (*grpc.ClientConn, error)
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func AdaptCommand ¶
func AdaptCommand(env *common_cli.Env, cmd Command) *Adapter
AdaptCommand converts a command into one conforming to the Command interface from github.com/mitchellh/cli
type AgentClient ¶
type AgentClient interface {
Release()
NewLoggerClient() loggerv1.LoggerClient
}
func NewAgentClient ¶
func NewAgentClient(addr string) (AgentClient, error)
type Command ¶
type Command interface {
Name() string
Synopsis() string
AppendFlags(*flag.FlagSet)
Run(context.Context, *common_cli.Env, AgentClient) error
}
Command is a common interface for commands in this package. The adapter adapts this interface to the Command interface from github.com/mitchellh/cli.
Click to show internal directories.
Click to hide internal directories.