extapi

package
v0.0.0-...-2581cb9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UsersBySshKey

func UsersBySshKey(keyBase64 string, keyFingerprintSHA256 string) ([]string, error)

func UsersByTeam

func UsersByTeam(teamId string) ([]string, error)

Types

type AuthTeam

type AuthTeam struct {
	Members []AuthTeamMember
}

type AuthTeamMember

type AuthTeamMember struct {
	Id     string
	Status string
}

type AuthUser

type AuthUser struct {
	Uid          string
	Organization string
	Groups       []string
}

func Login

func Login(username string, password string) (*AuthUser, error)

type AuthUserPass

type AuthUserPass struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type HubTeam

type HubTeam struct {
	Id   string
	Name string
	Role string
}

type HubTemplate

type HubTemplate struct {
	OwnerId          string    `json:"ownerId"`
	TeamsPermissions []HubTeam `json:"teamsPermissions"`
}

type HubUserKey

type HubUserKey struct {
	UserId    string `json:"userId"`
	PublicKey string `json:"publicKey"`
}

type Org

type Org struct {
	Id         string
	ShowSource bool
}

func OrgById

func OrgById(orgId string) (*Org, error)

type TeamAccess

type TeamAccess struct {
	TeamId   string
	TeamName string
	CanWrite bool
}

type Template

type Template struct {
	OwnerUserId string
	Teams       []TeamAccess
}

func TemplateById

func TemplateById(templateId string) (*Template, error)

Jump to

Keyboard shortcuts

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