models

package
v0.0.0-...-2b29b9b Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SecurityGroupRuleLessFunc

func SecurityGroupRuleLessFunc(rs []*SecurityGroupRule) func(i, j int) bool

Types

type DnsRecord

type DnsRecord struct {
	compute_models.SDnsRecord

	DnsZone *DnsZone
}

func (*DnsRecord) Copy

func (el *DnsRecord) Copy() *DnsRecord

type DnsRecords

type DnsRecords map[string]*DnsRecord

func (DnsRecords) AddModel

func (set DnsRecords) AddModel(i db.IModel)

func (DnsRecords) Copy

func (set DnsRecords) Copy() apihelper.IModelSet

func (DnsRecords) DBModelManager

func (set DnsRecords) DBModelManager() db.IModelManager

func (DnsRecords) ModelManager

func (set DnsRecords) ModelManager() mcclient_modulebase.IBaseManager

func (DnsRecords) NewModel

func (set DnsRecords) NewModel() db.IModel

type DnsZone

type DnsZone struct {
	compute_models.SDnsZone

	Records DnsRecords
}

func (*DnsZone) Copy

func (el *DnsZone) Copy() *DnsZone

type DnsZones

type DnsZones map[string]*DnsZone

func (DnsZones) AddModel

func (set DnsZones) AddModel(i db.IModel)

func (DnsZones) Copy

func (set DnsZones) Copy() apihelper.IModelSet

func (DnsZones) DBModelManager

func (set DnsZones) DBModelManager() db.IModelManager

func (DnsZones) ModelManager

func (set DnsZones) ModelManager() mcclient_modulebase.IBaseManager

func (DnsZones) NewModel

func (set DnsZones) NewModel() db.IModel

type Elasticip

type Elasticip struct {
	compute_models.SElasticip

	Network             *Network             `json:"-"`
	Guestnetwork        *Guestnetwork        `json:"-"`
	Groupnetwork        *Groupnetwork        `json:"-"`
	LoadbalancerNetwork *LoadbalancerNetwork `json:"-"`
}

func (*Elasticip) Copy

func (el *Elasticip) Copy() *Elasticip

type Elasticips

type Elasticips map[string]*Elasticip

func (Elasticips) AddModel

func (set Elasticips) AddModel(i db.IModel)

func (Elasticips) Copy

func (set Elasticips) Copy() apihelper.IModelSet

func (Elasticips) DBModelManager

func (set Elasticips) DBModelManager() db.IModelManager

func (Elasticips) ModelManager

func (set Elasticips) ModelManager() mcclient_modulebase.IBaseManager

func (Elasticips) NewModel

func (set Elasticips) NewModel() db.IModel

type Group

type Group struct {
	compute_models.SGroup

	Groupguests   Groupguests   `json:"-"`
	Groupnetworks Groupnetworks `json:"-"`
}

func (*Group) Copy

func (el *Group) Copy() *Group

type Groupguest

type Groupguest struct {
	compute_models.SGroupguest

	Group *Group `json:"-"`
	Guest *Guest `json:"-"`
}

func (*Groupguest) Copy

func (el *Groupguest) Copy() *Groupguest

type Groupguests

type Groupguests map[string]*Groupguest

func (Groupguests) AddModel

func (set Groupguests) AddModel(i db.IModel)

func (Groupguests) Copy

func (set Groupguests) Copy() apihelper.IModelSet

func (Groupguests) DBModelManager

func (set Groupguests) DBModelManager() db.IModelManager

func (Groupguests) ModelManager

func (set Groupguests) ModelManager() mcclient_modulebase.IBaseManager

func (Groupguests) NewModel

func (set Groupguests) NewModel() db.IModel

type Groupnetwork

type Groupnetwork struct {
	compute_models.SGroupnetwork

	Network *Network `json:"-"`
	Group   *Group   `json:"-"`

	Elasticip *Elasticip `json:"-"`
}

func (*Groupnetwork) Copy

func (el *Groupnetwork) Copy() *Groupnetwork

func (*Groupnetwork) GetGuestNetworks

func (el *Groupnetwork) GetGuestNetworks() []*Guestnetwork

type Groupnetworks

type Groupnetworks map[string]*Groupnetwork

func (Groupnetworks) AddModel

func (set Groupnetworks) AddModel(i db.IModel)

func (Groupnetworks) Copy

func (set Groupnetworks) Copy() apihelper.IModelSet

func (Groupnetworks) DBModelManager

func (set Groupnetworks) DBModelManager() db.IModelManager

func (Groupnetworks) ModelManager

func (set Groupnetworks) ModelManager() mcclient_modulebase.IBaseManager

func (Groupnetworks) NewModel

func (set Groupnetworks) NewModel() db.IModel

type Groups

type Groups map[string]*Group

func (Groups) AddModel

func (set Groups) AddModel(i db.IModel)

func (Groups) Copy

func (set Groups) Copy() apihelper.IModelSet

func (Groups) DBModelManager

func (set Groups) DBModelManager() db.IModelManager

func (Groups) ModelManager

func (set Groups) ModelManager() mcclient_modulebase.IBaseManager

func (Groups) NewModel

func (set Groups) NewModel() db.IModel

type Guest

type Guest struct {
	compute_models.SGuest

	Host               *Host          `json:"-"`
	AdminSecurityGroup *SecurityGroup `json:"-"`
	SecurityGroups     SecurityGroups `json:"-"`
	Guestnetworks      Guestnetworks  `json:"-"`

	Groups Groups `json:"-"`
}

func (*Guest) Copy

func (el *Guest) Copy() *Guest

func (*Guest) FixIsDefaults

func (el *Guest) FixIsDefaults()

func (*Guest) GetVips

func (el *Guest) GetVips() []string

func (*Guest) OrderedSecurityGroupRules

func (el *Guest) OrderedSecurityGroupRules() []*SecurityGroupRule

type Guestnetwork

type Guestnetwork struct {
	compute_models.SGuestnetwork

	// Guest could be nil for when the guest is pending_deleted
	Guest     *Guest           `json:"-"`
	Network   *Network         `json:"-"`
	Elasticip *Elasticip       `json:"-"`
	SubIPs    NetworkAddresses `json:"-"`
}

func (*Guestnetwork) Copy

func (el *Guestnetwork) Copy() *Guestnetwork

type GuestnetworkList

type GuestnetworkList []*Guestnetwork

func (GuestnetworkList) Len

func (a GuestnetworkList) Len() int

func (GuestnetworkList) Less

func (a GuestnetworkList) Less(i, j int) bool

func (GuestnetworkList) Swap

func (a GuestnetworkList) Swap(i, j int)

type Guestnetworks

type Guestnetworks map[string]*Guestnetwork // key: rowId

func (Guestnetworks) AddModel

func (set Guestnetworks) AddModel(i db.IModel)

func (Guestnetworks) Copy

func (set Guestnetworks) Copy() apihelper.IModelSet

func (Guestnetworks) DBModelManager

func (set Guestnetworks) DBModelManager() db.IModelManager

func (Guestnetworks) ModelManager

func (set Guestnetworks) ModelManager() mcclient_modulebase.IBaseManager

func (Guestnetworks) NewModel

func (set Guestnetworks) NewModel() db.IModel

type Guests

type Guests map[string]*Guest

func (Guests) AddModel

func (set Guests) AddModel(i db.IModel)

func (Guests) Copy

func (set Guests) Copy() apihelper.IModelSet

func (Guests) DBModelManager

func (set Guests) DBModelManager() db.IModelManager

func (Guests) ModelManager

func (set Guests) ModelManager() mcclient_modulebase.IBaseManager

func (Guests) ModelParamFilter

func (set Guests) ModelParamFilter() jsonutils.JSONObject

func (Guests) NewModel

func (set Guests) NewModel() db.IModel

type Guestsecgroup

type Guestsecgroup struct {
	compute_models.SGuestsecgroup

	Guest         *Guest         `json:"-"`
	SecurityGroup *SecurityGroup `json:"-"`
}

func (*Guestsecgroup) Copy

func (el *Guestsecgroup) Copy() *Guestsecgroup

func (*Guestsecgroup) ModelSetKey

func (el *Guestsecgroup) ModelSetKey() string

type Guestsecgroups

type Guestsecgroups map[string]*Guestsecgroup // key: guestId/secgroupId

func (Guestsecgroups) AddModel

func (set Guestsecgroups) AddModel(i db.IModel)

func (Guestsecgroups) Copy

func (set Guestsecgroups) Copy() apihelper.IModelSet

func (Guestsecgroups) DBModelManager

func (set Guestsecgroups) DBModelManager() db.IModelManager

func (Guestsecgroups) ModelManager

func (set Guestsecgroups) ModelManager() mcclient_modulebase.IBaseManager

func (Guestsecgroups) NewModel

func (set Guestsecgroups) NewModel() db.IModel

type Host

type Host struct {
	compute_models.SHost
}

func (*Host) Copy

func (el *Host) Copy() *Host

type Hosts

type Hosts map[string]*Host

func (Hosts) AddModel

func (set Hosts) AddModel(i db.IModel)

func (Hosts) Copy

func (set Hosts) Copy() apihelper.IModelSet

func (Hosts) DBModelManager

func (set Hosts) DBModelManager() db.IModelManager

func (Hosts) ModelManager

func (set Hosts) ModelManager() mcclient_modulebase.IBaseManager

func (Hosts) ModelParamFilter

func (set Hosts) ModelParamFilter() jsonutils.JSONObject

func (Hosts) NewModel

func (set Hosts) NewModel() db.IModel

type LoadbalancerAcl

type LoadbalancerAcl struct {
	compute_models.SLoadbalancerAcl
}

func (*LoadbalancerAcl) Copy

func (el *LoadbalancerAcl) Copy() *LoadbalancerAcl

type LoadbalancerAcls

type LoadbalancerAcls map[string]*LoadbalancerAcl

func (LoadbalancerAcls) AddModel

func (set LoadbalancerAcls) AddModel(i db.IModel)

func (LoadbalancerAcls) Copy

func (LoadbalancerAcls) DBModelManager

func (set LoadbalancerAcls) DBModelManager() db.IModelManager

func (LoadbalancerAcls) ModelManager

func (LoadbalancerAcls) NewModel

func (set LoadbalancerAcls) NewModel() db.IModel

type LoadbalancerListener

type LoadbalancerListener struct {
	compute_models.SLoadbalancerListener

	LoadbalancerAcl *LoadbalancerAcl `json:"-"`
}

func (*LoadbalancerListener) Copy

type LoadbalancerListeners

type LoadbalancerListeners map[string]*LoadbalancerListener

func (LoadbalancerListeners) AddModel

func (set LoadbalancerListeners) AddModel(i db.IModel)

func (LoadbalancerListeners) Copy

func (LoadbalancerListeners) DBModelManager

func (set LoadbalancerListeners) DBModelManager() db.IModelManager

func (LoadbalancerListeners) ModelManager

func (LoadbalancerListeners) NewModel

func (set LoadbalancerListeners) NewModel() db.IModel

type LoadbalancerNetwork

type LoadbalancerNetwork struct {
	compute_models.SLoadbalancerNetwork

	Network               *Network              `json:"-"`
	Elasticip             *Elasticip            `json:"-"`
	LoadbalancerListeners LoadbalancerListeners `json:"-"`
}

func (*LoadbalancerNetwork) Copy

func (*LoadbalancerNetwork) OrderedLoadbalancerListeners

func (el *LoadbalancerNetwork) OrderedLoadbalancerListeners() []*LoadbalancerListener

type LoadbalancerNetworks

type LoadbalancerNetworks map[string]*LoadbalancerNetwork // key: networkId/loadbalancerId

func (LoadbalancerNetworks) AddModel

func (set LoadbalancerNetworks) AddModel(i db.IModel)

func (LoadbalancerNetworks) Copy

func (LoadbalancerNetworks) DBModelManager

func (set LoadbalancerNetworks) DBModelManager() db.IModelManager

func (LoadbalancerNetworks) ModelManager

func (LoadbalancerNetworks) NewModel

func (set LoadbalancerNetworks) NewModel() db.IModel

type ModelSets

type ModelSets struct {
	Vpcs               Vpcs
	Wires              Wires
	Networks           Networks
	Guests             Guests
	Hosts              Hosts
	SecurityGroups     SecurityGroups
	SecurityGroupRules SecurityGroupRules
	Guestnetworks      Guestnetworks
	Guestsecgroups     Guestsecgroups
	Elasticips         Elasticips
	NetworkAddresses   NetworkAddresses

	DnsZones   DnsZones
	DnsRecords DnsRecords

	RouteTables RouteTables

	Groupguests   Groupguests
	Groupnetworks Groupnetworks
	Groups        Groups

	LoadbalancerNetworks  LoadbalancerNetworks
	LoadbalancerListeners LoadbalancerListeners
	LoadbalancerAcls      LoadbalancerAcls
}

func NewModelSets

func NewModelSets() *ModelSets

func (*ModelSets) ApplyUpdates

func (mss *ModelSets) ApplyUpdates(mssNews apihelper.IModelSets) apihelper.ModelSetsUpdateResult

func (*ModelSets) Copy

func (mss *ModelSets) Copy() apihelper.IModelSets

func (*ModelSets) CopyJoined

func (mss *ModelSets) CopyJoined() apihelper.IModelSets

func (*ModelSets) FetchFromAPIMap

func (mss *ModelSets) FetchFromAPIMap(s *mcclient.ClientSession) (apihelper.IModelSets, error)

func (*ModelSets) ModelSetList

func (mss *ModelSets) ModelSetList() []apihelper.IModelSet

func (*ModelSets) NewEmpty

func (mss *ModelSets) NewEmpty() apihelper.IModelSets

type ModelSetsMaxUpdatedAt

type ModelSetsMaxUpdatedAt struct {
	Vpcs               time.Time
	Wires              time.Time
	Networks           time.Time
	Guests             time.Time
	Hosts              time.Time
	SecurityGroups     time.Time
	SecurityGroupRules time.Time
	Guestnetworks      time.Time
	Guestsecgroups     time.Time
	Elasticips         time.Time
	NetworkAddresses   time.Time

	DnsZones   time.Time
	DnsRecords time.Time

	RouteTables time.Time

	Groupguests   time.Time
	Groupnetworks time.Time

	LoadbalancerNetworks  time.Time
	LoadbalancerListeners time.Time
	LoadbalancerAcls      time.Time
}

func NewModelSetsMaxUpdatedAt

func NewModelSetsMaxUpdatedAt() *ModelSetsMaxUpdatedAt

type Network

type Network struct {
	compute_models.SNetwork

	Vpc                  *Vpc                 `json:"-"`
	Wire                 *Wire                `json:"-"`
	Guestnetworks        Guestnetworks        `json:"-"`
	Groupnetworks        Groupnetworks        `json:"-"`
	LoadbalancerNetworks LoadbalancerNetworks `json:"-"`
	Elasticips           Elasticips           `json:"-"`
}

func (*Network) Copy

func (el *Network) Copy() *Network

type NetworkAddress

type NetworkAddress struct {
	compute_models.SNetworkAddress

	Guestnetwork *Guestnetwork `json:"-"`
	Network      *Network      `json:"-"`
}

func (*NetworkAddress) Copy

func (el *NetworkAddress) Copy() *NetworkAddress

type NetworkAddresses

type NetworkAddresses map[string]*NetworkAddress

func (NetworkAddresses) AddModel

func (set NetworkAddresses) AddModel(i db.IModel)

func (NetworkAddresses) Copy

func (NetworkAddresses) DBModelManager

func (set NetworkAddresses) DBModelManager() db.IModelManager

func (NetworkAddresses) ModelManager

func (NetworkAddresses) NewModel

func (set NetworkAddresses) NewModel() db.IModel

type Networks

type Networks map[string]*Network

func (Networks) AddModel

func (set Networks) AddModel(i db.IModel)

func (Networks) Copy

func (set Networks) Copy() apihelper.IModelSet

func (Networks) DBModelManager

func (set Networks) DBModelManager() db.IModelManager

func (Networks) ModelManager

func (set Networks) ModelManager() mcclient_modulebase.IBaseManager

func (Networks) ModelParamFilter

func (set Networks) ModelParamFilter() jsonutils.JSONObject

func (Networks) NewModel

func (set Networks) NewModel() db.IModel

type RouteTable

type RouteTable struct {
	compute_models.SRouteTable

	Vpc *Vpc
}

func (*RouteTable) Copy

func (el *RouteTable) Copy() *RouteTable

type RouteTables

type RouteTables map[string]*RouteTable

func (RouteTables) AddModel

func (set RouteTables) AddModel(i db.IModel)

func (RouteTables) Copy

func (set RouteTables) Copy() apihelper.IModelSet

func (RouteTables) DBModelManager

func (set RouteTables) DBModelManager() db.IModelManager

func (RouteTables) ModelManager

func (set RouteTables) ModelManager() mcclient_modulebase.IBaseManager

func (RouteTables) NewModel

func (set RouteTables) NewModel() db.IModel

type SecurityGroup

type SecurityGroup struct {
	compute_models.SSecurityGroup

	SecurityGroupRules SecurityGroupRules `json:"-"`
}

func (*SecurityGroup) Copy

func (el *SecurityGroup) Copy() *SecurityGroup

type SecurityGroupRule

type SecurityGroupRule struct {
	compute_models.SSecurityGroupRule

	SecurityGroup *SecurityGroup `json:"-"`
}

func (*SecurityGroupRule) Copy

type SecurityGroupRules

type SecurityGroupRules map[string]*SecurityGroupRule

func (SecurityGroupRules) AddModel

func (set SecurityGroupRules) AddModel(i db.IModel)

func (SecurityGroupRules) Copy

func (SecurityGroupRules) DBModelManager

func (set SecurityGroupRules) DBModelManager() db.IModelManager

func (SecurityGroupRules) ModelManager

func (SecurityGroupRules) NewModel

func (set SecurityGroupRules) NewModel() db.IModel

type SecurityGroups

type SecurityGroups map[string]*SecurityGroup

func (SecurityGroups) AddModel

func (set SecurityGroups) AddModel(i db.IModel)

func (SecurityGroups) Copy

func (set SecurityGroups) Copy() apihelper.IModelSet

func (SecurityGroups) DBModelManager

func (set SecurityGroups) DBModelManager() db.IModelManager

func (SecurityGroups) ModelManager

func (set SecurityGroups) ModelManager() mcclient_modulebase.IBaseManager

func (SecurityGroups) NewModel

func (set SecurityGroups) NewModel() db.IModel

type Vpc

type Vpc struct {
	compute_models.SVpc

	RouteTable *RouteTable `json:"-"`

	Wire     *Wire    `json:"-"`
	Networks Networks `json:"-"`
}

func (*Vpc) Copy

func (el *Vpc) Copy() *Vpc

type Vpcs

type Vpcs map[string]*Vpc

func (Vpcs) AddModel

func (set Vpcs) AddModel(i db.IModel)

func (Vpcs) Copy

func (set Vpcs) Copy() apihelper.IModelSet

func (Vpcs) DBModelManager

func (set Vpcs) DBModelManager() db.IModelManager

func (Vpcs) ModelManager

func (set Vpcs) ModelManager() mcclient_modulebase.IBaseManager

func (Vpcs) ModelParamFilter

func (set Vpcs) ModelParamFilter() jsonutils.JSONObject

func (Vpcs) NewModel

func (set Vpcs) NewModel() db.IModel

type Wire

type Wire struct {
	compute_models.SWire

	Vpc *Vpc
}

func (*Wire) Copy

func (el *Wire) Copy() *Wire

type Wires

type Wires map[string]*Wire

func (Wires) AddModel

func (set Wires) AddModel(i db.IModel)

func (Wires) Copy

func (set Wires) Copy() apihelper.IModelSet

func (Wires) DBModelManager

func (set Wires) DBModelManager() db.IModelManager

func (Wires) IncludeEmulated

func (set Wires) IncludeEmulated() bool

func (Wires) ModelManager

func (set Wires) ModelManager() mcclient_modulebase.IBaseManager

func (Wires) ModelParamFilter

func (set Wires) ModelParamFilter() jsonutils.JSONObject

func (Wires) NewModel

func (set Wires) NewModel() db.IModel

Jump to

Keyboard shortcuts

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