securitygroup

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: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	XMLName        xml.Name        `xml:"SECURITY_GROUP_POOL"`
	SecurityGroups []SecurityGroup `xml:"SECURITY_GROUP"`
}

Pool represents an OpenNebula SecurityGroup pool

type Rule

type Rule struct {
	dyn.Vector
}

Rule is a security group rule vector

func NewRule

func NewRule() *Rule

NewRule returns a security group rule vector

func (*Rule) Add

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

Add adds a security group rule template key, value pair

func (*Rule) Get

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

Get return the string value of a security group rule template key

type SecurityGroup

type SecurityGroup struct {
	XMLName     xml.Name            `xml:"SECURITY_GROUP"`
	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"`
	Permissions *shared.Permissions `xml:"PERMISSIONS,omitempty"`
	UpdatedVMs  shared.EntitiesID   `xml:"UPDATED_VMS,omitempty"`
	OutdatedVMs shared.EntitiesID   `xml:"OUTDATED_VMS,omitempty"`
	UpdatingVMs shared.EntitiesID   `xml:"UPDATING_VMS,omitempty"`
	ErrorVMs    shared.EntitiesID   `xml:"ERROR_VMS,omitempty"`
	Template    Template            `xml:"TEMPLATE"`
}

SecurityGroup represents an OpenNebula SecurityGroup

type Template

type Template struct {
	dyn.Template
}

Template represent the template part of the OpenNebula SecurityGroup

func NewTemplate

func NewTemplate() *Template

NewTemplate returns a security group template

func (*Template) Add

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

Add adds a security group Template key, value pair

func (*Template) AddRule

func (t *Template) AddRule() *Rule

AddAR allow to add a security group rule to the template

func (*Template) Get

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

Get return the string value of a template security group key

func (*Template) GetI

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

GetI returns the integer value for a security group template key

func (*Template) GetRules

func (t *Template) GetRules() []Rule

GetRules allow to retrieve security group rules from template

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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