config

package
v0.0.0-...-04d108c Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ca

type Ca struct {
	ExpiryTime int `yaml:"expiryTime"`
	Dn         Dn  `yaml:"dn"`
}

type Cert

type Cert struct {
	Name       string   `yaml:"name"`
	ExpiryTime int      `yaml:"expiryTime"`
	Dns        []string `yaml:"dns"`
	Ip         []string `yaml:"ip"`
	Dn         Dn       `yaml:"dn"`
}

type Cfg

type Cfg struct {
	Outfile string
	Config  *Config
}

func (*Cfg) Get

func (c *Cfg) Get() error

func (*Cfg) Write

func (c *Cfg) Write() error

type Config

type Config struct {
	Ca   Ca     `yaml:"ca"`
	Cert []Cert `yaml:"cert"`
}

type Dn

type Dn struct {
	Organization  string `yaml:"organization"`
	Country       string `yaml:"country"`
	Province      string `yaml:"province"`
	Locality      string `yaml:"locality"`
	StreetAddress string `yaml:"streetAddress"`
	PostalCode    string `yaml:"postalCode"`
	CommonName    string `yaml:"commonName"`
}

Jump to

Keyboard shortcuts

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