Documentation
¶
Index ¶
- Variables
- func ViperDecoderHook() libmap.DecodeHookFuncType
- type Cert
- type Certif
- func (o *Certif) Cert() Cert
- func (o *Certif) Chain() (string, error)
- func (o *Certif) GetCerts() []string
- func (o *Certif) IsChain() bool
- func (o *Certif) IsFile() bool
- func (o *Certif) IsPair() bool
- func (o *Certif) MarshalBinary() (data []byte, err error)
- func (o *Certif) MarshalCBOR() ([]byte, error)
- func (o *Certif) MarshalJSON() ([]byte, error)
- func (o *Certif) MarshalTOML() ([]byte, error)
- func (o *Certif) MarshalText() (text []byte, err error)
- func (o *Certif) MarshalYAML() (interface{}, error)
- func (o *Certif) Model() Certif
- func (o *Certif) Pair() (pub string, key string, err error)
- func (o *Certif) String() string
- func (o *Certif) TLS() tls.Certificate
- func (o *Certif) UnmarshalBinary(data []byte) error
- func (o *Certif) UnmarshalCBOR(bytes []byte) error
- func (o *Certif) UnmarshalJSON(bytes []byte) error
- func (o *Certif) UnmarshalTOML(i interface{}) error
- func (o *Certif) UnmarshalText(text []byte) error
- func (o *Certif) UnmarshalYAML(value *yaml.Node) error
- type Config
- type ConfigChain
- type ConfigPair
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ViperDecoderHook ¶
func ViperDecoderHook() libmap.DecodeHookFuncType
Types ¶
type Cert ¶
type Cert interface { encoding.TextMarshaler encoding.TextUnmarshaler encoding.BinaryMarshaler encoding.BinaryUnmarshaler json.Marshaler json.Unmarshaler yaml.Marshaler yaml.Unmarshaler toml.Marshaler toml.Unmarshaler cbor.Marshaler cbor.Unmarshaler fmt.Stringer TLS() tls.Certificate Model() Certif IsChain() bool IsPair() bool IsFile() bool GetCerts() []string }
type Certif ¶
type Certif struct {
// contains filtered or unexported fields
}
func (*Certif) MarshalBinary ¶
func (*Certif) MarshalCBOR ¶
func (*Certif) MarshalJSON ¶
func (*Certif) MarshalTOML ¶
func (*Certif) MarshalText ¶
func (*Certif) MarshalYAML ¶
func (*Certif) TLS ¶
func (o *Certif) TLS() tls.Certificate
func (*Certif) UnmarshalBinary ¶
func (*Certif) UnmarshalCBOR ¶
func (*Certif) UnmarshalJSON ¶
func (*Certif) UnmarshalTOML ¶
func (*Certif) UnmarshalText ¶
func (*Certif) UnmarshalYAML ¶
type ConfigChain ¶
type ConfigChain string
func (*ConfigChain) Cert ¶
func (c *ConfigChain) Cert() (*tls.Certificate, error)
func (*ConfigChain) GetCerts ¶
func (c *ConfigChain) GetCerts() []string
func (*ConfigChain) IsChain ¶
func (c *ConfigChain) IsChain() bool
func (*ConfigChain) IsFile ¶
func (c *ConfigChain) IsFile() bool
func (*ConfigChain) IsPair ¶
func (c *ConfigChain) IsPair() bool
type ConfigPair ¶
type ConfigPair struct { Key string `mapstructure:"key" json:"key" yaml:"key" toml:"key"` Pub string `mapstructure:"pub" json:"pub" yaml:"pub" toml:"pub"` }
func (*ConfigPair) Cert ¶
func (c *ConfigPair) Cert() (*tls.Certificate, error)
func (*ConfigPair) GetCerts ¶
func (c *ConfigPair) GetCerts() []string
func (*ConfigPair) IsChain ¶
func (c *ConfigPair) IsChain() bool
func (*ConfigPair) IsFile ¶
func (c *ConfigPair) IsFile() bool
func (*ConfigPair) IsPair ¶
func (c *ConfigPair) IsPair() bool
Click to show internal directories.
Click to hide internal directories.