cmd

package
v0.0.89 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 112 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBinaryVersion added in v0.0.73

func FormatBinaryVersion(out io.Writer, v *storage.NamespaceBinaryVersion)

func FormatVersionInfo

func FormatVersionInfo(out io.Writer, v *VersionInfo)

func NewAttachCmd

func NewAttachCmd() *cobra.Command

func NewBuildBinaryCmd

func NewBuildBinaryCmd() *cobra.Command

func NewBuildCmd

func NewBuildCmd() *cobra.Command

func NewCacheCmd

func NewCacheCmd() *cobra.Command

func NewDebugShellCmd

func NewDebugShellCmd() *cobra.Command

func NewDeployCmd

func NewDeployCmd() *cobra.Command

func NewDeployPlanCmd

func NewDeployPlanCmd() *cobra.Command

func NewDeploymentCmd

func NewDeploymentCmd() *cobra.Command

func NewDevCmd

func NewDevCmd() *cobra.Command

func NewDoctorCmd

func NewDoctorCmd() *cobra.Command

func NewFmtCmd

func NewFmtCmd() *cobra.Command

func NewGenerateCmd

func NewGenerateCmd() *cobra.Command

func NewImagesCmd

func NewImagesCmd() *cobra.Command

func NewKeysCmd

func NewKeysCmd() *cobra.Command

func NewLintCmd

func NewLintCmd() *cobra.Command

func NewLoginCmd

func NewLoginCmd() *cobra.Command

func NewLogsCmd

func NewLogsCmd() *cobra.Command

func NewLsCmd

func NewLsCmd() *cobra.Command

func NewModCmd

func NewModCmd() *cobra.Command

func NewTestCmd

func NewTestCmd() *cobra.Command

func NewTidyCmd

func NewTidyCmd() *cobra.Command

func NewUnprepareCmd

func NewUnprepareCmd() *cobra.Command

func NewUpdateNSCmd added in v0.0.84

func NewUpdateNSCmd() *cobra.Command

func NewUseCmd

func NewUseCmd() *cobra.Command

func NewVersionCmd

func NewVersionCmd() *cobra.Command

func RegisterCommands

func RegisterCommands(root *cobra.Command)

func RunCommand

func RunCommand(ctx context.Context, args []string) error

Programmatically trigger an `ns` command.

Types

type Binary

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

type DoctorResults added in v0.0.80

type DoctorResults struct {
	NSVersion     *VersionInfo                    `json:"ns"`
	NSBootVersion *storage.NamespaceBinaryVersion `json:"nsboot"`
	DockerInfo    *DoctorResults_DockerInfo       `json:"docker_info"`
	DockerRun     *DoctorResults_DockerRun        `json:"docker_run"`
	Buildkit      *DoctorResults_BuildkitResults  `json:"buildkit"`
	KubeResults   *DoctorResults_KubeResults      `json:"kubernetes"`
}

type DoctorResults_BuildkitResults added in v0.0.80

type DoctorResults_BuildkitResults struct {
	BuildLatency time.Duration `json:"build_latency"`
	ImageDigest  string        `json:"image_digest"`
}

type DoctorResults_DockerInfo added in v0.0.80

type DoctorResults_DockerInfo struct {
	dockertypes.Version
	dockertypes.Info
}

type DoctorResults_DockerRun added in v0.0.80

type DoctorResults_DockerRun struct {
	ImageLatency time.Duration `json:"image_latency"`
	RunLatency   time.Duration `json:"run_latency"`
}

type DoctorResults_KubeResults added in v0.0.80

type DoctorResults_KubeResults struct {
	ConnectLatency time.Duration `json:"connect_latency"`
	RunLatency     time.Duration `json:"run_latency"`
}

type Ingress

type Ingress struct {
	Owner    string   `json:"owner"`
	Fdqn     string   `json:"fdqn"`
	Protocol []string `json:"protocol"`
}

type Output

type Output struct {
	Ingress []Ingress `json:"ingress"`
}

type VersionInfo

type VersionInfo struct {
	Binary         *storage.NamespaceBinaryVersion `json:"binary"`
	GOOS           string                          `json:"GOOS"`
	GOARCH         string                          `json:"GOARCH"`
	APIVersion     int                             `json:"api_version"`
	CacheVersion   int                             `json:"cache_version"`
	ToolAPIVersion int                             `json:"tool_api_version"`
}

func CollectVersionInfo

func CollectVersionInfo() (*VersionInfo, error)

Directories

Path Synopsis
Runs a Language Server Protocol (LSP) server ready to comminicate with any editor/IDE.
Runs a Language Server Protocol (LSP) server ready to comminicate with any editor/IDE.

Jump to

Keyboard shortcuts

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