team

package
v0.0.0-cloud Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind struct {
	kindsys.Core
	// contains filtered or unexported fields
}

TODO standard generated docs

func NewKind

func NewKind(rt *thema.Runtime, opts ...thema.BindOption) (*Kind, error)

TODO standard generated docs

func (*Kind) ConvergentLineage

func (k *Kind) ConvergentLineage() thema.ConvergentLineage[*Team]

ConvergentLineage returns the same thema.Lineage as Lineage, but bound (see thema.BindType) to the the Team type generated from the current schema, v0.0.

func (*Kind) JSONValueMux

func (k *Kind) JSONValueMux(b []byte) (*Team, thema.TranslationLacunas, error)

JSONValueMux is a version multiplexer that maps a []byte containing JSON data at any schematized dashboard version to an instance of Team.

Validation and translation errors emitted from this func will identify the input bytes as "dashboard.json".

This is a thin wrapper around Thema's vmux.ValueMux.

type Permission

type Permission int

Permission defines model for Permission.

const (
	PermissionN0 Permission = 0
	PermissionN1 Permission = 1
	PermissionN2 Permission = 2
	PermissionN4 Permission = 4
)

Defines values for Permission.

type Team

type Team struct {
	// AccessControl metadata associated with a given resource.
	AccessControl map[string]bool `json:"accessControl,omitempty"`

	// AvatarUrl is the team's avatar URL.
	AvatarUrl *string `json:"avatarUrl,omitempty"`

	// Created indicates when the team was created.
	Created time.Time `json:"created"`

	// Email of the team.
	Email *string `json:"email,omitempty"`

	// MemberCount is the number of the team members.
	MemberCount int64 `json:"memberCount"`

	// Name of the team.
	Name string `json:"name"`

	// OrgId is the ID of an organisation the team belongs to.
	OrgId      int64      `json:"orgId"`
	Permission Permission `json:"permission"`

	// Updated indicates when the team was updated.
	Updated time.Time `json:"updated"`
}

Team defines model for Team.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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