Documentation ¶
Index ¶
- type MemberRole
- type Team
- func (t *Team) AddMember(ctx context.Context, email string, role MemberRole) error
- func (t *Team) Create(ctx context.Context, name string, wts WriteTeamStore) error
- func (t *Team) List(ctx context.Context) ([]*TeamMembership, error)
- func (t *Team) ListMemberships(ctx context.Context) ([]*TeamMembership, error)
- func (t *Team) RemoveMember(ctx context.Context, email string) error
- func (t *Team) Show(ts TeamStore) string
- func (t *Team) Use(ctx context.Context, team string, wts WriteTeamStore) error
- type TeamMembership
- type TeamStore
- type WriteTeamStore
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 NewTeam ¶
func NewTeam(bff bffv1beta1connect.BFFServiceClient) *Team
func (*Team) ListMemberships ¶
func (t *Team) ListMemberships(ctx context.Context) ([]*TeamMembership, error)
type TeamMembership ¶
type WriteTeamStore ¶
Click to show internal directories.
Click to hide internal directories.