organization

package
v0.0.0-...-9c90d3e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleList

func HandleList(orgStore core.OrganizationStore, logger lumber.Logger) gin.HandlerFunc

HandleList lists the users organizations

func HandleSynapseCount

func HandleSynapseCount(synapseStore core.SynapseStore, userStore core.GitUserStore, logger lumber.Logger) gin.HandlerFunc

HandleSynapseCount returns the count of connected and total register synapse

func HandleSynapseList

func HandleSynapseList(synapseStore core.SynapseStore, userStore core.GitUserStore, logger lumber.Logger) gin.HandlerFunc

HandleSynapseList returns list of synapse for an org

func HandleSynapsePatch

func HandleSynapsePatch(synapseStore core.SynapseStore, userStore core.GitUserStore, logger lumber.Logger) gin.HandlerFunc

HandleSynapsePatch updates is_active in db

func HandleSynapseTestConnection

func HandleSynapseTestConnection(synapseStore core.SynapseStore, userStore core.GitUserStore, logger lumber.Logger) gin.HandlerFunc

HandleSynapseTestConnection tests if synapse for an org is connected exist or not

func HandleSync

func HandleSync(userStore core.GitUserStore,
	orgService core.OrganizationService,
	orgStore core.OrganizationStore,
	tokenHandler core.GitTokenHandler,
	loginStore core.LoginStore,
	logger lumber.Logger) gin.HandlerFunc

HandleSync lists the users organizations after refetching it from scm

func HandleUpdateConfigInfo

func HandleUpdateConfigInfo(orgStore core.OrganizationStore, userStore core.GitUserStore, logger lumber.Logger) gin.HandlerFunc

HandleUpdateConfigInfo updates the config info for an org

func HandleUpdateSynapseToken

func HandleUpdateSynapseToken(orgStore core.OrganizationStore, userStore core.GitUserStore, logger lumber.Logger) gin.HandlerFunc

HandleUpdateSynapseToken updates the synapse token for an org

Types

type OrgRunnerInfo

type OrgRunnerInfo struct {
	Org        string `json:"org"`
	RunnerType string `json:"runner_type"`
}

OrgRunnerInfo is the request struct of synapse runner

type TokenInfo

type TokenInfo struct {
	Org   string `json:"org"`
	Token string `json:"token"`
}

TokenInfo is the request struct of tokrn creation

Jump to

Keyboard shortcuts

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