Documentation
¶
Index ¶
- type Organization
- func (o *Organization) Admins() []string
- func (o *Organization) Editors() []string
- func (o *Organization) ID() int64
- func (o *Organization) Name() string
- func (o *Organization) SetID(id int64)
- func (o *Organization) String() string
- func (o *Organization) TenantIDs() []string
- func (o *Organization) Viewers() []string
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) 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
Click to show internal directories.
Click to hide internal directories.