gitea

package
v0.0.0-...-bd3f3ed Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPath

func ConfigPath() string

func New

func New() schema.Plugin

func PersonalAccessToken

func PersonalAccessToken() schema.CredentialType

func TryGiteaConfigFile

func TryGiteaConfigFile() sdk.Importer

Types

type Config

type Config struct {
	Logins []Login `yaml:"logins"`
}

type Login

type Login struct {
	Name              string `yaml:"name"`
	URL               string `yaml:"url"`
	Token             string `yaml:"token"`
	Default           bool   `yaml:"default"`
	SSHHost           string `yaml:"ssh_host"`
	SSHKey            string `yaml:"ssh_key"`
	Insecure          bool   `yaml:"insecure"`
	SSHCertPrincipal  string `yaml:"ssh_certificate_principal"`
	SSHAgent          bool   `yaml:"ssh_agent"`
	SSHKeyFingerprint string `yaml:"ssh_key_agent_pub"`
	SSHPassphrase     string `yaml:"-"`
	VersionCheck      bool   `yaml:"version_check"`
	User              string `yaml:"user"`
	Created           int64  `yaml:"created"`
}

Jump to

Keyboard shortcuts

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