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: 0

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