cmd

package
v0.0.0-...-ba90866 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentUsage     = "agent [ARG...]"
	AgentShortDesc = "Start the coral agent"
	AgentLongDesc  = `Starts the coral agent which ensures the image state of the node is in sync with the configured images.`

	AgentConnectionTimeout  time.Duration = 30 * time.Second
	AgentMaxCallRecvMsgSize int           = 1024 * 1024 * 32
)
View Source
const (
	ControllerUsage     = "controller [ARG...]"
	ControllerShortDesc = "Start the build controller"
	ControllerLongDesc  = `Starts the build controller providing management of the
kubernetes resources and services.`
)
View Source
const (
	DefaultCertDir              string        = "/etc/webhook/tls"
	DefaultEnableLeaderElection bool          = false
	DefaultSkipInsecureVerify   bool          = false
	DefaultLogLevel             int8          = 0
	DefaultPollInterval         time.Duration = 10 * time.Second
	DefaultContainerdAddr       string        = "unix:///kubelet/containerd/containerd.sock"
	DefaultNamespace            string        = ""
	DefaultScope                string        = ""
	DefaultLabels               string        = "app=coral,component=mirror"
	DefaultParallel             int           = 1

	ConnectionTimeout  time.Duration = 30 * time.Second
	MaxCallRecvMsgSize int           = 1024 * 1024 * 32
)
View Source
const (
	MirrorUsage     = "mirror [ARG...]"
	MirrorShortDesc = "Start the coral mirror utility"
	MirrorLongDesc  = `` /* 129-byte string literal not displayed */

	MirrorConnectionTimeout  time.Duration = 30 * time.Second
	MirrorMaxCallRecvMsgSize int           = 1024 * 1024 * 32
)
View Source
const (
	RootUsage     = "coral [COMMAND] [ARG...]"
	RootShortDesc = "Build controller and image sync tool for kubernetes"
	RootLongDesc  = `` /* 347-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent() *Agent

func (*Agent) Command

func (w *Agent) Command() *cobra.Command

func (*Agent) RunE

func (a *Agent) RunE(cmd *cobra.Command, args []string) error

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController() *Controller

func (*Controller) Command

func (c *Controller) Command() *cobra.Command

func (*Controller) RunE

func (c *Controller) RunE(cmd *cobra.Command, args []string) error

type Mirror

type Mirror struct {
	// contains filtered or unexported fields
}

func NewMirror

func NewMirror() *Mirror

func (*Mirror) Command

func (m *Mirror) Command() *cobra.Command

func (*Mirror) RunE

func (m *Mirror) RunE(cmd *cobra.Command, args []string) error

type Root

type Root struct{}

func NewRoot

func NewRoot() *Root

func (*Root) Command

func (r *Root) Command() *cobra.Command

func (*Root) Execute

func (r *Root) Execute() error

Jump to

Keyboard shortcuts

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