github

package
v0.0.0-...-f28b7b0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertTokenRequest

func ConvertTokenRequest(req *api.TokenRequest) *github.InstallationTokenOptions

Types

type Client

type Client struct {
	*github.Client
	// contains filtered or unexported fields
}

type Clients

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

func NewClients

func NewClients(transport http.RoundTripper, configs map[string]Config) *Clients

func (*Clients) AppClient

func (c *Clients) AppClient(ctx context.Context, owner string) (*Client, error)

func (*Clients) Client

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

type Config

type Config struct {
	AppID          int64  `mapstructure:"app_id"`
	PrivateKeyPath string `mapstructure:"private_key_path"`
}

type Issuer

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

func NewIssuer

func NewIssuer(log *slog.Logger, tracer trace.Tracer, clients *Clients) *Issuer

func (*Issuer) IssueToken

func (g *Issuer) IssueToken(ctx context.Context, req *api.TokenRequest) (string, error)

Jump to

Keyboard shortcuts

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