models

package
v0.0.0-...-6cdb919 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const RootGroupID = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	global.Model
	Name            string
	Path            string
	VisibilityLevel string
	Description     string
	ParentID        uint
	TraversalIDs    string
	RegionSelector  string
	CreatedBy       uint
	UpdatedBy       uint
}

type GroupOrApplication

type GroupOrApplication struct {
	global.Model
	Name        string
	Path        string
	Description string
	Type        string
}

type GroupRegionSelectors

type GroupRegionSelectors struct {
	*Group
	RegionSelectors RegionSelectors
}

type Groups

type Groups []*Group

func (Groups) Len

func (g Groups) Len() int

Len the length of the groups

func (Groups) Less

func (g Groups) Less(i, j int) bool

Less sort groups by the size of the traversalIDs array after split by ','

func (Groups) Swap

func (g Groups) Swap(i, j int)

Swap the two group

type RegionSelector

type RegionSelector struct {
	Key      string   `json:"key"`
	Values   []string `json:"values"`
	Operator string   `json:"operator" default:"in"` // not used currently
}

type RegionSelectors

type RegionSelectors []*RegionSelector

Jump to

Keyboard shortcuts

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