marketplace

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 MarketPlace

type MarketPlace struct {
	XMLName            xml.Name            `xml:"MARKETPLACE"`
	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"`
	Name               string              `xml:"NAME"`
	MarketMad          string              `xml:"MARKET_MAD,omitempty"`
	ZoneID             string              `xml:"ZONE_ID,omitempty"`
	TotalMB            int                 `xml:"TOTAL_MB,omitempty"`
	FreeMB             int                 `xml:"FREE_MB,omitempty"`
	UsedMB             int                 `xml:"USED_MB,omitempty"`
	MarketPlaceAppsIDs shared.EntitiesID   `xml:"MARKETPLACEAPPS,omitempty"`
	Permissions        *shared.Permissions `xml:"PERMISSIONS,omitempty"`
	StateRaw           int                 `xml:"STATE,omitempty"`
	Template           Template            `xml:"TEMPLATE"`
}

MarketPlace represents an OpenNebula MarketPlace

func (*MarketPlace) State

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

State looks up the state of the marketplace

func (*MarketPlace) StateString

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

StateString returns the state in string format

type Pool

type Pool struct {
	XMLName      xml.Name      `xml:"MARKETPLACE_POOL"`
	MarketPlaces []MarketPlace `xml:"MARKETPLACE"`
}

Pool represents an OpenNebula MarketPlace pool

type State

type State int

State is the state of an OpenNebula marketplace

const (
	Enabled State = iota
	Disabled
)

func (State) String

func (s State) String() string

type Template

type Template struct {
	dyn.Template
}

Template is the dynamic part of the marketplace entity

func NewTemplate

func NewTemplate() *Template

NewTemplate returns a marketplace template

func (*Template) Add

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

Add adds a marketplace 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 key

func (*Template) GetI

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

GetI returns the integer value for a marketplace template key

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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