githubutil

package
v0.0.0-...-d956a41 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitHub

func NewGitHub(opts *GitHubOptions) (*github.Client, *github.Client, string, error)

Types

type GitHubOptions

type GitHubOptions struct {
	Token               string `cfg:"token"`
	AppPrivateKey       string `cfg:"app_private_key" validate:"omitempty,required_without=Token"`
	AppPrivateKeyPath   string `cfg:"app_private_key_path" validate:"omitempty,file,required_without=Token"`
	AppID               int64  `cfg:"app_id" validate:"omitempty,required_with=AppPrivateKey"`
	EnterpriseURL       string `cfg:"enterprise_url" validate:"omitempty,url"`
	EnterpriseUploadURL string `cfg:"enterprise_upload_url" validate:"omitempty,url,required_with=EnterpriseURL"`

	Owner string `cfg:"-"`
	Repo  string `cfg:"-"`
}

Jump to

Keyboard shortcuts

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