org

package
v0.0.0-...-e61ee7f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTeamMember

func AddTeamMember(ctx *context.APIContext)

AddTeamMember api for add a member to a team

func AddTeamRepository

func AddTeamRepository(ctx *context.APIContext)

AddTeamRepository api for adding a repository to a team

func BlockUser

func BlockUser(ctx *context.APIContext)

func CheckUserBlock

func CheckUserBlock(ctx *context.APIContext)

func ConcealMember

func ConcealMember(ctx *context.APIContext)

ConcealMember make a member's membership not public

func Create

func Create(ctx *context.APIContext)

Create api for create organization

func CreateHook

func CreateHook(ctx *context.APIContext)

CreateHook create a hook for an organization

func CreateLabel

func CreateLabel(ctx *context.APIContext)

CreateLabel create a label for a repository

func CreateTeam

func CreateTeam(ctx *context.APIContext)

CreateTeam api for create a team

func Delete

func Delete(ctx *context.APIContext)

Delete an organization

func DeleteAvatar

func DeleteAvatar(ctx *context.APIContext)

DeleteAvatar deletes the Avatar of an Organisation

func DeleteHook

func DeleteHook(ctx *context.APIContext)

DeleteHook delete a hook of an organization

func DeleteLabel

func DeleteLabel(ctx *context.APIContext)

DeleteLabel delete a label for an organization

func DeleteMember

func DeleteMember(ctx *context.APIContext)

DeleteMember remove a member from an organization

func DeleteTeam

func DeleteTeam(ctx *context.APIContext)

DeleteTeam api for delete a team

func Edit

func Edit(ctx *context.APIContext)

Edit change an organization's information

func EditHook

func EditHook(ctx *context.APIContext)

EditHook modify a hook of an organization

func EditLabel

func EditLabel(ctx *context.APIContext)

EditLabel modify a label for an Organization

func EditTeam

func EditTeam(ctx *context.APIContext)

EditTeam api for edit a team

func Get

func Get(ctx *context.APIContext)

Get get an organization

func GetAll

func GetAll(ctx *context.APIContext)

GetAll return list of all public organizations

func GetHook

func GetHook(ctx *context.APIContext)

GetHook get an organization's hook by id

func GetLabel

func GetLabel(ctx *context.APIContext)

GetLabel get label by organization and label id

func GetTeam

func GetTeam(ctx *context.APIContext)

GetTeam api for get a team

func GetTeamMember

func GetTeamMember(ctx *context.APIContext)

GetTeamMember api for get a particular member of team

func GetTeamMembers

func GetTeamMembers(ctx *context.APIContext)

GetTeamMembers api for get a team's members

func GetTeamRepo

func GetTeamRepo(ctx *context.APIContext)

GetTeamRepo api for get a particular repo of team

func GetTeamRepos

func GetTeamRepos(ctx *context.APIContext)

GetTeamRepos api for get a team's repos

func GetUserOrgsPermissions

func GetUserOrgsPermissions(ctx *context.APIContext)

GetUserOrgsPermissions get user permissions in organization

func IsMember

func IsMember(ctx *context.APIContext)

IsMember check if a user is a member of an organization

func IsPublicMember

func IsPublicMember(ctx *context.APIContext)

IsPublicMember check if a user is a public member of an organization

func ListBlocks

func ListBlocks(ctx *context.APIContext)

func ListHooks

func ListHooks(ctx *context.APIContext)

ListHooks list an organziation's webhooks

func ListLabels

func ListLabels(ctx *context.APIContext)

ListLabels list all the labels of an organization

func ListMembers

func ListMembers(ctx *context.APIContext)

ListMembers list an organization's members

func ListMyOrgs

func ListMyOrgs(ctx *context.APIContext)

ListMyOrgs list all my orgs

func ListOrgActivityFeeds

func ListOrgActivityFeeds(ctx *context.APIContext)

func ListPublicMembers

func ListPublicMembers(ctx *context.APIContext)

ListPublicMembers list an organization's public members

func ListTeamActivityFeeds

func ListTeamActivityFeeds(ctx *context.APIContext)

func ListTeams

func ListTeams(ctx *context.APIContext)

ListTeams list all the teams of an organization

func ListUserOrgs

func ListUserOrgs(ctx *context.APIContext)

ListUserOrgs list user's orgs

func ListUserTeams

func ListUserTeams(ctx *context.APIContext)

ListUserTeams list all the teams a user belongs to

func NewAction

func NewAction() actions_service.API

NewAction creates a new Action service

func PublicizeMember

func PublicizeMember(ctx *context.APIContext)

PublicizeMember make a member's membership public

func RemoveTeamMember

func RemoveTeamMember(ctx *context.APIContext)

RemoveTeamMember api for remove one member from a team

func RemoveTeamRepository

func RemoveTeamRepository(ctx *context.APIContext)

RemoveTeamRepository api for removing a repository from a team

func SearchTeam

func SearchTeam(ctx *context.APIContext)

SearchTeam api for searching teams

func UnblockUser

func UnblockUser(ctx *context.APIContext)

func UpdateAvatar

func UpdateAvatar(ctx *context.APIContext)

UpdateAvatarupdates the Avatar of an Organisation

Types

type Action

type Action struct{}

Action implements actions_service.API

func (Action) CreateOrUpdateSecret

func (Action) CreateOrUpdateSecret(ctx *context.APIContext)

create or update one secret of the organization

func (Action) CreateVariable

func (Action) CreateVariable(ctx *context.APIContext)

CreateVariable create an org-level variable

func (Action) DeleteSecret

func (Action) DeleteSecret(ctx *context.APIContext)

DeleteSecret delete one secret of the organization

func (Action) DeleteVariable

func (Action) DeleteVariable(ctx *context.APIContext)

DeleteVariable delete an org-level variable

func (Action) GetRegistrationToken

func (Action) GetRegistrationToken(ctx *context.APIContext)

https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-registration-token-for-an-organization GetRegistrationToken returns the token to register org runners

func (Action) GetVariable

func (Action) GetVariable(ctx *context.APIContext)

GetVariable get an org-level variable

func (Action) ListActionsSecrets

func (Action) ListActionsSecrets(ctx *context.APIContext)

ListActionsSecrets list an organization's actions secrets

func (Action) ListVariables

func (Action) ListVariables(ctx *context.APIContext)

ListVariables list org-level variables

func (Action) UpdateVariable

func (Action) UpdateVariable(ctx *context.APIContext)

UpdateVariable update an org-level variable

Jump to

Keyboard shortcuts

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