forge

package
v0.0.0-...-483e9f6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	transport.AuthMethod

	AuthorName  string
	AuthorEmail string
	// Expires is the time when the token expires.
	// So it can be used to cache the token.
	Expires time.Time
}

type Cacher

type Cacher struct {
	Forge
	// contains filtered or unexported fields
}

func NewCacher

func NewCacher(f Forge) *Cacher

func (*Cacher) GetAuthenticator

func (c *Cacher) GetAuthenticator() (*Authenticator, error)

type Forge

type Forge interface {
	GetAuthenticator() (*Authenticator, error)
	GetRemote(repo string) string
	GetCommitViewerURL(repo string, commit string) string
	EnsureRepositoryExists(auth *Authenticator, repo string) error
	WithNamespace(namespace string) Forge
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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