github

package
v0.1.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package github provides utilities for talking to github API.

Index

Constants

View Source
const (
	// EnvGitProvider is the provider name.
	EnvGitProvider = "GIT_PROVIDER"

	// EnvGitOrgName is the git org name.
	EnvGitOrgName = "GIT_ORG_NAME"

	// EnvGitRepositoryName is the repository name.
	EnvGitRepositoryName = "GIT_REPOSITORY_NAME"

	// EnvGitAccessToken used for accessing private repositories.
	EnvGitAccessToken = "GIT_ACCESS_TOKEN"
)

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() assetsclient.Factory

NewFactory returns a new factory for Github clients.

Types

type GitConfig

type GitConfig struct {
	GitProvider    string
	GitOrgName     string
	GitRepoName    string
	GitAccessToken string
}

GitConfig contains necessary data to connect to github.

func NewGitConfig

func NewGitConfig() (GitConfig, error)

NewGitConfig ensures the environment variables required for the operator to run are set. Returns false if any of the required environment variables are not set.

Jump to

Keyboard shortcuts

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