codehost

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitLabProvider  = "gitlab"
	GitHubProvider  = "github"
	GerritProvider  = "gerrit"
	CodeHubProvider = "codehub"
	IlyshinProvider = "ilyshin"
)

Variables

This section is empty.

Functions

func GetCodeHostInfo

func GetCodeHostInfo(option *Option) (*poetry.CodeHost, error)

func GetCodeHostInfoByID

func GetCodeHostInfoByID(id int) (*poetry.CodeHost, error)

func GetCodeHostList

func GetCodeHostList() ([]*poetry.CodeHost, error)

Types

type CodeHost

type CodeHost struct {
	ID          int    `json:"id"`
	OrgID       int    `json:"orgId"`
	Address     string `json:"address"`
	Type        string `json:"type"`
	AccessToken string `json:"accessToken"`
	Namespace   string `json:"namespace"`
}

type Detail

type Detail struct {
	ID         int    `json:"id"`
	Name       string `json:"name"`
	Address    string `json:"address"`
	Owner      string `json:"repoowner"`
	Source     string `json:"source"`
	OauthToken string `json:"oauth_token"`
	Region     string `json:"region"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	AccessKey  string `json:"applicationId"`
	SecretKey  string `json:"clientSecret"`
}

func GetCodehostDetail

func GetCodehostDetail(codehostID int) (*Detail, error)

func ListCodehostDetial

func ListCodehostDetial() ([]*Detail, error)

type Option

type Option struct {
	CodeHostType string
	Address      string
	Namespace    string
	CodeHostID   int
}

Jump to

Keyboard shortcuts

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