marketplaceapp

package
v0.0.0-...-884d9dc Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MarketPlaceApp

type MarketPlaceApp struct {
	XMLName       xml.Name            `xml:"MARKETPLACEAPP"`
	ID            int                 `xml:"ID,omitempty"`
	UID           int                 `xml:"UID,omitempty"`
	GID           int                 `xml:"GID,omitempty"`
	UName         string              `xml:"UNAME,omitempty"`
	GName         string              `xml:"GNAME,omitempty"`
	LockInfos     *shared.Lock        `xml:"LOCK,omitempty"`
	Permissions   *shared.Permissions `xml:"PERMISSIONS,omitempty"`
	RegTime       int                 `xml:"REGTIME,omitempty"`
	Name          string              `xml:"NAME"`
	ZoneID        string              `xml:"ZONE_ID,omitempty"`
	OriginID      int                 `xml:"ORIGIN_ID"`
	Source        string              `xml:"SOURCE,omitempty"`
	MD5           string              `xml:"MD5,omitempty"`
	Size          int                 `xml:"SIZE,omitempty"`
	Description   string              `xml:"DESCRIPTION,omitempty"`
	Version       string              `xml:"VERSION,omitempty"`
	Format        string              `xml:"FORMAT,omitempty"`
	AppTemplate64 string              `xml:"APPTEMPLATE64,omitempty"`
	MarketPlaceID *int                `xml:"MARKETPLACE_ID,omitempty"`
	MarketPlace   string              `xml:"MARKETPLACE,omitempty"`
	StateRaw      int                 `xml:"STATE,omitempty"`
	Type          int                 `xml:"TYPE,omitempty"`
	Template      Template            `xml:"TEMPLATE"`
}

MarketPlaceApp represents an OpenNebula MarketPlaceApp

func (*MarketPlaceApp) State

func (app *MarketPlaceApp) State() (State, error)

State looks up the state of the marketplace appliance

func (*MarketPlaceApp) StateString

func (app *MarketPlaceApp) StateString() (string, error)

StateString returns the state in string format

type Pool

type Pool struct {
	XMLName         xml.Name         `xml:"MARKETPLACEAPP_POOL"`
	MarketPlaceApps []MarketPlaceApp `xml:"MARKETPLACEAPP"`
}

Pool represents an OpenNebula MarketPlaceApp pool

type State

type State int

State is the state of an OpenNebula marketplace

const (
	Init State = iota
	Ready
	Locked
	Error
	Disabled
)

func (State) String

func (s State) String() string

type Template

type Template struct {
	dyn.Template
}

Template is the dynamic part of the marketplace app entity

func NewTemplate

func NewTemplate() *Template

NewTemplate returns a marketplace app template

func (*Template) Add

func (t *Template) Add(key keys.Template, value interface{})

Add adds a marketplace app template key, value pair

func (*Template) Get

func (t *Template) Get(key keys.Template) (string, error)

Get return the string value of a template marketplace app key

func (*Template) GetI

func (n *Template) GetI(key keys.Template) (int, error)

GetI returns the integer value for a marketplace app template key

func (*Template) SetType

func (t *Template) SetType(typ Types)

SetType set a Datastore type

type Types

type Types string

Types is a type used to enumerate marketplace app types

const (
	// Virtual Machine disks
	Datablock Types = "DATABLOCK"
	Image     Types = "IMAGE"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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