Help us shape the future of Go! Take the 2026 Go Developer Survey

ghcredentials

package
v1.25.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() (string, error)

func InstallPrepared

func InstallPrepared(ctx context.Context, port int) error

func Run

func Run(args []string) int

Types

type Account

type Account struct {
	Host  string `json:"host"`
	User  string `json:"user"`
	Token string `json:"token"`
}

type HostResult

type HostResult struct {
	Accounts []Account `json:"accounts"`
	Status   string    `json:"status"`
}

func HostAccounts

func HostAccounts(ctx context.Context) HostResult

type InstallResult

type InstallResult struct {
	Status string `json:"status"`
}

func DiscoverBackend

func DiscoverBackend() InstallResult

func Install

func Install(ctx context.Context, port int, targetUser string) (InstallResult, error)

Jump to

Keyboard shortcuts

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