identity

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(p *Profile, repo string) error

func Set

func Set(p *Profile) error

Types

type Config

type Config struct {
	Profiles map[string]*Profile
}

func ReadFile

func ReadFile() (*Config, error)

type Profile

type Profile struct {
	Name        string `toml:"name"`
	Email       string `toml:"email"`
	SignOff     bool   `toml:"signoff"`
	GPGSign     bool   `toml:"gpgsign"`
	IdentityKey string `toml:"identity_key"`
}

func Get

func Get() (*Profile, error)

Jump to

Keyboard shortcuts

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