collaborators

package
v0.1.30888 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CollaborationsPath = "me/collaborations"
)

Functions

func NewCollaboratorsRestClient

func NewCollaboratorsRestClient(config settings.Config) (*collaboratorsRestClient, error)

NewCollaboratorsRestClient returns a new collaboratorsRestClient satisfying the api.CollaboratorsClient interface via the REST API.

Types

type CollaborationResult

type CollaborationResult struct {
	VcsType   string `json:"vcs_type"`
	OrgSlug   string `json:"slug"`
	OrgName   string `json:"name"`
	OrgId     string `json:"id"`
	AvatarUrl string `json:"avatar_url"`
}

type CollaboratorsClient

type CollaboratorsClient interface {
	GetCollaborationBySlug(slug string) (*CollaborationResult, error)
	GetOrgCollaborations() ([]CollaborationResult, error)
}

Jump to

Keyboard shortcuts

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