team

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemberRole

type MemberRole string
const (
	MemberRoleOwner  MemberRole = "owner"
	MemberRoleMember MemberRole = "member"
)

func (*MemberRole) Set

func (m *MemberRole) Set(v string) error

func (*MemberRole) String

func (m *MemberRole) String() string

func (*MemberRole) Type

func (m *MemberRole) Type() string

type Team

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

Team is responsible for team management with Lekko

func (*Team) AddMember

func (t *Team) AddMember(ctx context.Context, email string, role MemberRole) error

func (*Team) Create

func (t *Team) Create(ctx context.Context, name string, wts WriteTeamStore) error

func (*Team) List

func (t *Team) List(ctx context.Context) ([]*TeamMembership, error)

func (*Team) ListMemberships

func (t *Team) ListMemberships(ctx context.Context) ([]*TeamMembership, error)

func (*Team) RemoveMember

func (t *Team) RemoveMember(ctx context.Context, email string) error

func (*Team) Show

func (t *Team) Show(ts TeamStore) string

func (*Team) Use

func (t *Team) Use(ctx context.Context, team string, wts WriteTeamStore) error

type TeamMembership

type TeamMembership struct {
	TeamName   string
	User       string
	Role       string
	UserStatus string
}

type TeamStore

type TeamStore interface {
	GetLekkoTeam() string
}

type WriteTeamStore

type WriteTeamStore interface {
	TeamStore
	SetLekkoTeam(team string)
}

Jump to

Keyboard shortcuts

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