api

package
v0.0.0-...-fcce1e6 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TeamMembers map[string][]string

Functions

func InitHTTPclient

func InitHTTPclient(cfg *config.Config)

Types

type Client

type Client struct {
	GithubToken  string
	GithubAPIurl *url.URL
	// contains filtered or unexported fields
}
var HttpClient *Client

Create global HTTP client

func (*Client) CheckListOfUsersInTeam

func (c *Client) CheckListOfUsersInTeam(username string, cfg *config.Config) bool

func (*Client) Get

func (c *Client) Get(path string) (*http.Response, error)

func (*Client) GetSSHKeysForUser

func (c *Client) GetSSHKeysForUser(username string) ([]UserSSHKeys, error)

type TeamMember

type TeamMember struct {
	Username string `json:"login"`
	SSHKeys  []string
}

type UserSSHKeys

type UserSSHKeys struct {
	ID     int    `json:"id"`
	SSHKey string `json:"key"`
}

Jump to

Keyboard shortcuts

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