github

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccessTokenKey = "accessToken"
	VolumeName     = "github-binding"
	MountPath      = "/var/bindings/github"
)

Variables

This section is empty.

Functions

func AccessToken

func AccessToken() (string, error)

AccessToken reads the file named accessToken that is mounted by the GitHubBinding.

func New

func New(ctx context.Context) (*github.Client, error)

New instantiates a new github client from the access token from the GitHubBinding

func ReadKey

func ReadKey(key string) (string, error)

ReadKey may be used to read keys from the secret bound by the GitHubBinding.

Types

This section is empty.

Jump to

Keyboard shortcuts

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