api

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntityTypeOrg        = "organization"
	EntityTypeRepository = "repository"
)

Variables

This section is empty.

Functions

func AddOrgVariable

func AddOrgVariable(org, name, value, visibility, token string, hostname ...string) error

Creates an organization-level variable in GitHub

func AddRepoVariable

func AddRepoVariable(org, repo, name, value, visibility, token string, hostname ...string) error

Creates a repository-level variable in GitHub

func FetchAllRepositories

func FetchAllRepositories(org, token string, hostname ...string) ([]string, error)

Retrieves a list of repositories for a given organization

func FetchOrgVariables

func FetchOrgVariables(org, token string, hostname ...string) ([]map[string]string, error)

Retrieves organization-level variables from GitHub

func FetchRepoVariables

func FetchRepoVariables(org, repo, token string, hostname ...string) ([]map[string]string, error)

Retrieves repository-level variables from GitHub

Types

type GitHubClientConfig

type GitHubClientConfig struct {
	Token    string
	Hostname string
}

type ProxyConfig

type ProxyConfig struct {
	HTTPProxy  string
	HTTPSProxy string
	NoProxy    string
}

Jump to

Keyboard shortcuts

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