github

package
v1.1.51 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClient

func WithClient(client *http.Client) func(*Client) error

WithClient will create a github API client using the provided API client

func WithDefaults

func WithDefaults(config config.Config, creds credentials.Credentials, vaultClientFactory func() (*vault.Client, error)) func(*Client) error

WithDefaults will use Thelma's configuration and credential store to construct an http.Client with sane defaults that will be used in a github api client

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(options ...func(*Client) error) (*Client, error)

New creates a new instantiation of a github API client

func (*Client) GetCallingUser

func (c *Client) GetCallingUser(ctx context.Context) (string, error)

GetCallingUser looks up the authenticated identity of the user that will be issuing github API commands

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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