app

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	Create(ctx context.Context, input *CreateInput) error
	Get(ctx context.Context, input *GetInput) error
	Delete(ctx context.Context, input *DeleteInput) error
}

func New

func New(logger *zap.SugaredLogger) App

type CreateInput

type CreateInput struct {
	Host              string
	Name              string
	NameAutogenerate  bool
	Namespace         string
	VCPU              int
	MemoryInMb        int
	KernelImage       string
	KernelAddNetConf  bool
	KernelFileName    string
	RootImage         string
	InitrdImage       string
	InitrdFilename    string
	NetworkInterfaces []string
	MetadataFromFile  []string
	Metadata          Metadata
}

type DeleteInput

type DeleteInput struct {
	Host string
	UID  string
}

type GetInput

type GetInput struct {
	Host      string
	Namespace string
	UID       string
}

type Metadata

type Metadata struct {
	Hostname   string
	SSHKeyFile string
	ResolvdFix bool
	Message    string
}

func (Metadata) IsEmpty

func (m Metadata) IsEmpty() bool

Jump to

Keyboard shortcuts

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