user

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginToken

type LoginToken struct {
	Token          string `xml:"TOKEN"`
	ExpirationTime int    `xml:"EXPIRATION_TIME"`
	EGID           int    `xml:"EGID"`
}

type Pool

type Pool struct {
	XMLName           xml.Name          `xml:"USER_POOL"`
	Users             []User            `xml:"USER"`
	Quotas            []shared.Quotas   `xml:"QUOTAS"`
	DefaultUserQuotas shared.QuotasList `xml:"DEFAULT_USER_QUOTAS"`
}

Pool represents an OpenNebula User pool

type User

type User struct {
	UserShort

	// Variable part between one.userpool.info and one.user.info
	shared.QuotasList
	DefaultUserQuotas shared.QuotasList `xml:"DEFAULT_USER_QUOTAS"`
}

User represents an OpenNebula user

type UserShort

type UserShort struct {
	XMLName     xml.Name          `xml:"USER"`
	ID          int               `xml:"ID,omitempty"`
	GID         int               `xml:"GID,omitempty"`
	Groups      shared.EntitiesID `xml:"GROUPS,omitempty"`
	GName       string            `xml:"GNAME,omitempty"`
	Name        string            `xml:"NAME,omitempty"`
	Password    string            `xml:"PASSWORD,omitempty"`
	AuthDriver  string            `xml:"AUTH_DRIVER,omitempty"`
	Enabled     int               `xml:"ENABLED,omitempty"`
	LoginTokens []LoginToken      `xml:"LOGIN_TOKEN,omitempty"`
	Template    dyn.Template      `xml:"TEMPLATE"`
}

UserShort keeps summary information on a user

Jump to

Keyboard shortcuts

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