Documentation
¶
Index ¶
- Constants
- Variables
- func AppContext(context *cli.Context) (gocontext.Context, gocontext.CancelFunc)
- func AskForConfirm(s string, tries int) bool
- func CompleteShortId(ctx gocontext.Context, ctr *containerd.Client, shortId string) (string, error)
- func NetworkAgentFlags() []cli.Flag
- func NewDefaultContainerdClient(context *cli.Context) (*containerd.Client, gocontext.Context, error)
- func NewGrpcConn(context *cli.Context) (*grpc.ClientConn, gocontext.Context, gocontext.CancelFunc, error)
- func PrintAsJSON(x interface{})
- func ResolveNetworkAgentEndpoint(clictx *cli.Context) (string, error)
- type Display
Constants ¶
View Source
const ( DefaultCubeletConfigPath = "/usr/local/services/cubetoolbox/Cubelet/config/config.toml" DefaultNetworkAgentGRPCEndpoint = "grpc+unix:///tmp/cube/network-agent-grpc.sock" )
Variables ¶
View Source
var ( SnapshotterFlags = []cli.Flag{ &cli.StringFlag{ Name: "snapshotter", Usage: "snapshotter name. Empty value stands for the default value.", EnvVars: []string{"CONTAINERD_SNAPSHOTTER"}, Value: "overlayfs", }, } )
Functions ¶
func AppContext ¶
func AskForConfirm ¶
func CompleteShortId ¶
func NetworkAgentFlags ¶
func NewGrpcConn ¶
func NewGrpcConn(context *cli.Context) (*grpc.ClientConn, gocontext.Context, gocontext.CancelFunc, error)
func PrintAsJSON ¶
func PrintAsJSON(x interface{})
Types ¶
type Display ¶
type Display struct {
// contains filtered or unexported fields
}
func NewDefaultTableDisplay ¶
func NewDefaultTableDisplay() *Display
func (*Display) ClearScreen ¶
func (d *Display) ClearScreen()
Click to show internal directories.
Click to hide internal directories.