group

package
v0.30.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: BSD-3-Clause Imports: 1 Imported by: 13

Documentation

Index

Constants

View Source
const (
	GroupIssuedAPI         = "api"
	GroupIssuedJWT         = "jwt"
	GroupIssuedIntegration = "integration"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	// ID of the group
	ID string

	// AccountID is a reference to Account that this object belongs
	AccountID string `json:"-" gorm:"index"`

	// Name visible in the UI
	Name string

	// Issued defines how this group was created (enum of "api", "integration" or "jwt")
	Issued string

	// Peers list of the group
	Peers []string `gorm:"serializer:json"`

	IntegrationReference integration_reference.IntegrationReference `gorm:"embedded;embeddedPrefix:integration_ref_"`
}

Group of the peers for ACL

func (*Group) Copy

func (g *Group) Copy() *Group

func (*Group) EventMeta

func (g *Group) EventMeta() map[string]any

EventMeta returns activity event meta related to the group

func (*Group) HasPeers added in v0.30.3

func (g *Group) HasPeers() bool

HasPeers checks if the group has any peers.

Jump to

Keyboard shortcuts

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