owners

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Endpoints []string
}

API struct containing our api data

func Init

func Init(org *models.Organization) (*API, error)

Init return API objects loaded with functions and powers

func (*API) GetTeamsList

func (api *API) GetTeamsList() ([]sdk.JSONTeam, error)

GetTeamsList show all teams available to pick from

func (*API) UserPartOfTeam

func (api *API) UserPartOfTeam(user *models.User, userTeam string) (bool, error)

UserPartOfTeam check if a user is part of a team

func (*API) UserPartOfTeams

func (api *API) UserPartOfTeams(user *models.User) ([]sdk.JSONTeam, error)

UserPartOfTeams show all teams an email is part of

Jump to

Keyboard shortcuts

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