cmd

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package cmd - 어플리케이션 실행을 위한 Cobra 기반의 CLI Commands 기능 제공

Index

Constants

View Source
const (
	// CLIVersion - cbadm cli 버전
	CLIVersion = "1.0"
)

Variables

This section is empty.

Functions

func NewCommandConfig added in v0.7.2

func NewCommandConfig(options *app.Options) *cobra.Command

returns a cobra command

func NewCreateCmd added in v0.7.2

func NewCreateCmd(o *app.Options) *cobra.Command

func NewDeleteCmd added in v0.7.2

func NewDeleteCmd(o *app.Options) *cobra.Command

returns a cobra command

func NewGetCmd added in v0.7.2

func NewGetCmd(o *app.Options) *cobra.Command

func NewHealthyCmd

func NewHealthyCmd(o *app.Options) *cobra.Command

NewHealthyCmd - Ladybug 상태를 수행하는 Cobra Command 생성

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd - 어플리케이션 진입점으로 사용할 Root Cobra Command 생성

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd - 버전 표시 기능을 수행하는 Cobra Command 생성

func SetupAndRun

func SetupAndRun(cmd *cobra.Command, o *app.Options)

SetupAndRun - Ladybug GRPC CLI 구동

Types

type CbadmOptions added in v0.7.2

type CbadmOptions struct {
	app.Options
}

type ConfigOptions added in v0.7.2

type ConfigOptions struct {
	*app.Options
	Ladybug_Server_addr  string
	Ladybug_Timeout      string
	Ladybug_Endpoint     string
	Ladybug_Service_name string
	Ladybug_Sample_rate  string
	Spider_Server_addr   string
	Spider_Timeout       string
	Spider_Endpoint      string
	Spider_Service_name  string
	Spider_Sample_rate   string
}

type CreateClusterOptions added in v0.7.2

type CreateClusterOptions struct {
	*app.Options
	ControlPlane struct {
		Connection string
		Count      int
		Spec       string
	}
	Worker struct {
		Connection string
		Count      int
		Spec       string
	}
}

func (*CreateClusterOptions) Validate added in v0.7.2

func (o *CreateClusterOptions) Validate() error

type CreateNodeOptions added in v0.7.2

type CreateNodeOptions struct {
	*app.Options

	Worker struct {
		Connection string
		Count      int
		Spec       string
	}
	// contains filtered or unexported fields
}

func (*CreateNodeOptions) Validate added in v0.7.2

func (o *CreateNodeOptions) Validate() error

Jump to

Keyboard shortcuts

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