organization

package
v0.51.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Organization

type Organization struct {
	// contains filtered or unexported fields
}

Organization represents a Grafana organization domain object

func New

func New(id int64, name string, tenantIDs []string, admins []string, editors []string, viewers []string) *Organization

New creates a new Organization domain object

func NewFromGrafana

func NewFromGrafana(id int64, name string) *Organization

NewFromGrafana creates a new Organization with only ID and name (for basic cases)

func (*Organization) Admins

func (o *Organization) Admins() []string

func (*Organization) Editors

func (o *Organization) Editors() []string

func (*Organization) ID

func (o *Organization) ID() int64

Getters (pure accessors)

func (*Organization) Name

func (o *Organization) Name() string

func (*Organization) SetID

func (o *Organization) SetID(id int64)

SetID updates the organization ID (used when the organization is created in Grafana)

func (*Organization) String

func (o *Organization) String() string

String provides a string representation for debugging

func (*Organization) TenantIDs

func (o *Organization) TenantIDs() []string

func (*Organization) Viewers

func (o *Organization) Viewers() []string

Jump to

Keyboard shortcuts

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