clients

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	VCS() config.VCSType
	Organization() string
}

type ClientMap

type ClientMap map[string]Client

func InitClients

func InitClients(logger *slog.Logger, config []config.Client) (ClientMap, error)

type Github

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

func NewGithub

func NewGithub(logger *slog.Logger, organizationID string, config *config.GithubClient) (*Github, error)

func (*Github) GetV3AppClient

func (a *Github) GetV3AppClient() *v3.Client

func (*Github) GetV3Client

func (a *Github) GetV3Client() *v3.Client

func (*Github) GitToken

func (a *Github) GitToken(ctx context.Context) (string, error)

func (*Github) Organization

func (a *Github) Organization() string

func (*Github) Owner added in v0.3.16

func (a *Github) Owner() string

func (*Github) VCS

func (a *Github) VCS() config.VCSType

type Gitlab

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

func NewGitlab

func NewGitlab(logger *slog.Logger, token string) (*Gitlab, error)

func (*Gitlab) Organization

func (a *Gitlab) Organization() string

func (*Gitlab) VCS

func (a *Gitlab) VCS() config.VCSType

Jump to

Keyboard shortcuts

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