common

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MachineAliases          = []string{"machines", "mach", "machs"}
	MachineClassAliases     = []string{"machineclasses", "mc", "mcs"}
	VolumeAliases           = []string{"volumes", "vol", "vols"}
	NetworkInterfaceAliases = []string{"networkinterfaces", "nic", "nics"}
)
View Source
var (
	Renderer = renderer.NewRegistry()
)

Functions

This section is empty.

Types

type ClientFactory

type ClientFactory interface {
	New() (ori.MachineRuntimeClient, func() error, error)
}

type ClientOptions

type ClientOptions struct {
	Address string
}

func (*ClientOptions) AddFlags

func (o *ClientOptions) AddFlags(fs *pflag.FlagSet)

func (*ClientOptions) New

func (o *ClientOptions) New() (ori.MachineRuntimeClient, func() error, error)

type OutputOptions

type OutputOptions struct {
	Output string
}

func (*OutputOptions) AddFlags

func (o *OutputOptions) AddFlags(fs *pflag.FlagSet)

func (*OutputOptions) Renderer

func (o *OutputOptions) Renderer(ifEmpty string) (renderer.Renderer, error)

func (*OutputOptions) RendererOrNil

func (o *OutputOptions) RendererOrNil() (renderer.Renderer, error)

Jump to

Keyboard shortcuts

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