openstack

package
v0.0.0-...-e74992a Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxDetail = base.MaxDetail
)

Variables

View Source
var (
	RegionKind     = libref.ToKind(Region{})
	ProjectKind    = libref.ToKind(Project{})
	ImageKind      = libref.ToKind(Image{})
	FlavorKind     = libref.ToKind(Flavor{})
	VMKind         = libref.ToKind(VM{})
	SnapshotKind   = libref.ToKind(Snapshot{})
	VolumeKind     = libref.ToKind(Volume{})
	VolumeTypeKind = libref.ToKind(VolumeType{})
	NetworkKind    = libref.ToKind(Network{})
	SubnetKind     = libref.ToKind(Subnet{})
)

Kinds

View Source
var NotFound = libmodel.NotFound

Errors

Functions

func All

func All() []interface{}

Build all models.

Types

type AllocationPool

type AllocationPool struct {
	Start string `sql:""`
	End   string `sql:""`
}

type AttachedVolume

type AttachedVolume struct {
	ID string `sql:"d0,fk(volume)"`
}

type Attachment

type Attachment struct {
	AttachedAt   time.Time `sql:""`
	AttachmentID string    `sql:""`
	Device       string    `sql:""`
	HostName     string    `sql:""`
	ID           string    `sql:""`
	ServerID     string    `sql:""`
	VolumeID     string    `sql:""`
}

type Base

type Base struct {
	// Managed object ID.
	ID string `sql:"pk"`
	// Name
	Name string `sql:"d0,index(name)"`
	// Revision
	Revision int64 `sql:"incremented,d0,index(revision)"`
}

Base OpenStack model.

func (*Base) Pk

func (m *Base) Pk() string

Get the PK.

func (*Base) String

func (m *Base) String() string

String representation.

type BranchNavigator

type BranchNavigator = base.BranchNavigator

type Concern

type Concern = base.Concern

type Fault

type Fault struct {
	Code    int       `sql:""`
	Created time.Time `sql:""`
	Details string    `sql:""`
	Message string    `sql:""`
}

type Flavor

type Flavor struct {
	Base
	Disk        int               `sql:""`
	RAM         int               `sql:""`
	RxTxFactor  string            `sql:""`
	Swap        int               `sql:""`
	VCPUs       int               `sql:""`
	IsPublic    bool              `sql:""`
	Ephemeral   int               `sql:""`
	Description string            `sql:""`
	ExtraSpecs  map[string]string `sql:""`
}

type HostRoute

type HostRoute struct {
	DestinationCIDR string `sql:""`
	NextHop         string `sql:""`
}

type Image

type Image struct {
	Base
	Status                      string                 `sql:""`
	Tags                        []string               `sql:""`
	ContainerFormat             string                 `sql:""`
	DiskFormat                  string                 `sql:""`
	MinDiskGigabytes            int                    `sql:""`
	MinRAMMegabytes             int                    `sql:""`
	Owner                       string                 `sql:""`
	Protected                   bool                   `sql:""`
	Visibility                  string                 `sql:""`
	Hidden                      bool                   `sql:""`
	Checksum                    string                 `sql:""`
	SizeBytes                   int64                  `sql:""`
	Metadata                    map[string]string      `sql:""`
	Properties                  map[string]interface{} `sql:""`
	CreatedAt                   time.Time              `sql:""`
	UpdatedAt                   time.Time              `sql:""`
	File                        string                 `sql:""`
	Schema                      string                 `sql:""`
	VirtualSize                 int64                  `sql:""`
	OpenStackImageImportMethods []string               `sql:""`
	OpenStackImageStoreIDs      []string               `sql:""`
}

type InvalidRefError

type InvalidRefError = base.InvalidRefError

type ListOptions

type ListOptions = base.ListOptions

type Model

type Model = base.Model

Types

type Network

type Network struct {
	Base
	Description           string    `sql:""`
	AdminStateUp          bool      `sql:""`
	Status                string    `sql:""`
	Subnets               []string  `sql:""`
	TenantID              string    `sql:"d0,fk(project +cascade)"`
	UpdatedAt             time.Time `sql:""`
	CreatedAt             time.Time `sql:""`
	ProjectID             string    `sql:"d0,fk(project +cascade)"`
	Shared                bool      `sql:""`
	AvailabilityZoneHints []string  `sql:""`
	Tags                  []string  `sql:""`
	RevisionNumber        int       `sql:""`
}

type ParentNavigator

type ParentNavigator = base.ParentNavigator

type Project

type Project struct {
	Base
	Description string `sql:""`
	DomainID    string `sql:""`
	ParentID    string `sql:""`
	Enabled     bool   `sql:""`
	IsDomain    bool   `sql:""`
}

type Ref

type Ref = base.Ref

type Region

type Region struct {
	Base
	Description    string `sql:""`
	ParentRegionID string `sql:""`
}

type Snapshot

type Snapshot struct {
	Base
	CreatedAt   time.Time         `sql:""`
	UpdatedAt   time.Time         `sql:""`
	Description string            `sql:""`
	VolumeID    string            `sql:""`
	Status      string            `sql:""`
	Size        int               `sql:""`
	Metadata    map[string]string `sql:""`
}

type Subnet

type Subnet struct {
	Base
	NetworkID       string           `sql:"d0,fk(network +cascade)"`
	Description     string           `sql:""`
	IPVersion       int              `sql:""`
	CIDR            string           `sql:""`
	GatewayIP       string           `sql:""`
	DNSNameservers  []string         `sql:""`
	ServiceTypes    []string         `sql:""`
	AllocationPools []AllocationPool `sql:""`
	HostRoutes      []HostRoute      `sql:""`
	EnableDHCP      bool             `sql:""`
	TenantID        string           `sql:""`
	ProjectID       string           `sql:""`
	IPv6AddressMode string           `sql:""`
	IPv6RAMode      string           `sql:""`
	SubnetPoolID    string           `sql:""`
	Tags            []string         `sql:""`
	RevisionNumber  int              `sql:""`
}

type Tree

type Tree = base.Tree

Types.

type TreeNode

type TreeNode = base.TreeNode

type VM

type VM struct {
	Base
	RevisionValidated int64                    `sql:"d0,index(revisionValidated)"`
	PolicyVersion     int                      `sql:"d0,index(policyVersion)" eq:"-"`
	TenantID          string                   `sql:"d0,fk(project +cascade)"`
	UserID            string                   `sql:""`
	Updated           time.Time                `sql:""`
	Created           time.Time                `sql:""`
	HostID            string                   `sql:""`
	Status            string                   `sql:""`
	Progress          int                      `sql:""`
	AccessIPv4        string                   `sql:""`
	AccessIPv6        string                   `sql:""`
	ImageID           string                   `sql:"d0,fk(image +cascade)"`
	FlavorID          string                   `sql:"d0,fk(flavor +cascade)"`
	Addresses         map[string]interface{}   `sql:""`
	Metadata          map[string]string        `sql:""`
	KeyName           string                   `sql:""`
	AdminPass         string                   `sql:""`
	SecurityGroups    []map[string]interface{} `sql:""`
	AttachedVolumes   []AttachedVolume         `sql:""`
	Fault             Fault                    `sql:""`
	Tags              *[]string                `sql:""`
	ServerGroups      *[]string                `sql:""`
	Concerns          []Concern                `sql:"" eq:"-"`
}

func (*VM) Validated

func (m *VM) Validated() bool

Determine if current revision has been validated.

type Volume

type Volume struct {
	Base
	Status              string            `sql:""`
	Size                int               `sql:""`
	AvailabilityZone    string            `sql:""`
	CreatedAt           time.Time         `sql:""`
	UpdatedAt           time.Time         `sql:""`
	Attachments         []Attachment      `sql:""`
	Description         string            `sql:""`
	VolumeType          string            `sql:""`
	SnapshotID          string            `sql:""`
	SourceVolID         string            `sql:""`
	BackupID            *string           `sql:""`
	Metadata            map[string]string `sql:""`
	UserID              string            `sql:""`
	Bootable            string            `sql:""`
	Encrypted           bool              `sql:""`
	ReplicationStatus   string            `sql:""`
	ConsistencyGroupID  string            `sql:""`
	Multiattach         bool              `sql:""`
	VolumeImageMetadata map[string]string `sql:""`
}

type VolumeType

type VolumeType struct {
	Base
	Description  string            `sql:""`
	ExtraSpecs   map[string]string `sql:""`
	IsPublic     bool              `sql:""`
	QosSpecID    string            `sql:""`
	PublicAccess bool              `sql:""`
}

Jump to

Keyboard shortcuts

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