package
0.0.0-20240313203549-8d48e90de1df
Repository: https://github.com/belak/go-gitdir.git
Documentation: pkg.go.dev
# Functions
GenerateEd25519PrivateKey generates a new ed25519 private key.
GenerateRSAPrivateKey generates a new RSA private key of size 4096.
NewAdminConfig returns a blank admin config with any defaults set.
NewAdminConfigUser returns a blank AdminConfigUser.
NewOrgConfig returns a new, empty OrgConfig.
NewRepoConfig returns a blank RepoConfig.
NewUserConfig returns a new, empty UserConfig.
ParseAdminConfig will return an AdminConfig parsed from the given data.
ParseEd25519PrivateKey parses an ed25519 private key.
ParseOrgConfig will return an OrgConfig parsed from the given data.
ParsePublicKey will return a PublicKey from the given data.
ParseRSAPrivateKey parses an RSA private key.
ParseUserConfig will return an UserConfig parsed from the given data.
# Variables
DefaultAdminConfigOptions is an object with all values set to their default.
# Structs
AdminConfig is the config.yml that comes from the admin repo.
AdminConfigOptions contains all the server level settings which can be changed at runtime.
AdminConfigUser defines additional fields which main be loaded from the admin config.
OrgConfig represents the values under orgs in the main admin config or the contents of the config file in the org config repo.
PublicKey is a wrapper around gossh.PublicKey to also store the comment.
RepoConfig represents the values under repos in the main admin config, any org configs, or any user configs.
UserConfig represents the values under users in the main admin config or the contents of the config file in the user config repo.
# Interfaces
PrivateKey is a wrapper to make dealing with private keys easier to deal with.