Documentation
¶
Index ¶
- func RenderSSLConf(w io.Writer, data *SSLTemplateArgs) error
- func RenderSignSSLConf(w io.Writer, data *SignSSLTemplateArgs) error
- type CaProjectConfig
- type Env
- type OpenSSLEnv
- func (env *OpenSSLEnv) Abs(str string) string
- func (env *OpenSSLEnv) CheckBin() bool
- func (env *OpenSSLEnv) CheckVersion() *OpenSSLVersion
- func (env *OpenSSLEnv) CreateSignedCrt(confLoc string, csrLoc string, crtLoc string, caCrtLoc string, caPriLoc string)
- func (env *OpenSSLEnv) GenerateCSR(confLoc string, priLoc string, csrLoc string)
- func (env *OpenSSLEnv) GenerateRSAKey(loc string)
- func (env *OpenSSLEnv) GenerateRootCACrt(confLoc string, priLoc string, crtLoc string)
- func (env *OpenSSLEnv) HasErr() bool
- func (env *OpenSSLEnv) MakeDir(path string)
- func (env *OpenSSLEnv) PopWd(wd string)
- func (env *OpenSSLEnv) PushWd(wd string)
- func (env *OpenSSLEnv) SetFile(path string, content string)
- func (env *OpenSSLEnv) VerifyCrt(confLoc string, crtLoc string)
- func (env *OpenSSLEnv) WriteConf(confLoc string, callback func(f *os.File) error)
- func (env *OpenSSLEnv) WriteSSLConf(confLoc string, args *SSLTemplateArgs)
- func (env *OpenSSLEnv) WriteSignSSLConf(confLoc string, args *SignSSLTemplateArgs)
- type OpenSSLVersion
- type SSLTemplateArgs
- type SignSSLTemplateArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderSSLConf ¶
func RenderSSLConf(w io.Writer, data *SSLTemplateArgs) error
func RenderSignSSLConf ¶
func RenderSignSSLConf(w io.Writer, data *SignSSLTemplateArgs) error
Types ¶
type CaProjectConfig ¶
type Env ¶
type Env struct { *OpenSSLEnv ProjectRoot string CaProjectConfig }
func (*Env) SwitchToProject ¶
type OpenSSLEnv ¶
type OpenSSLEnv struct { CmdName string Out *bytes.Buffer Err *bytes.Buffer // contains filtered or unexported fields }
func (*OpenSSLEnv) Abs ¶
func (env *OpenSSLEnv) Abs(str string) string
func (*OpenSSLEnv) CheckBin ¶
func (env *OpenSSLEnv) CheckBin() bool
func (*OpenSSLEnv) CheckVersion ¶
func (env *OpenSSLEnv) CheckVersion() *OpenSSLVersion
func (*OpenSSLEnv) CreateSignedCrt ¶
func (*OpenSSLEnv) GenerateCSR ¶
func (env *OpenSSLEnv) GenerateCSR(confLoc string, priLoc string, csrLoc string)
func (*OpenSSLEnv) GenerateRSAKey ¶
func (env *OpenSSLEnv) GenerateRSAKey(loc string)
func (*OpenSSLEnv) GenerateRootCACrt ¶
func (env *OpenSSLEnv) GenerateRootCACrt(confLoc string, priLoc string, crtLoc string)
func (*OpenSSLEnv) HasErr ¶
func (env *OpenSSLEnv) HasErr() bool
func (*OpenSSLEnv) MakeDir ¶
func (env *OpenSSLEnv) MakeDir(path string)
func (*OpenSSLEnv) PopWd ¶
func (env *OpenSSLEnv) PopWd(wd string)
func (*OpenSSLEnv) PushWd ¶
func (env *OpenSSLEnv) PushWd(wd string)
func (*OpenSSLEnv) SetFile ¶
func (env *OpenSSLEnv) SetFile(path string, content string)
func (*OpenSSLEnv) VerifyCrt ¶
func (env *OpenSSLEnv) VerifyCrt(confLoc string, crtLoc string)
func (*OpenSSLEnv) WriteConf ¶
func (env *OpenSSLEnv) WriteConf(confLoc string, callback func(f *os.File) error)
func (*OpenSSLEnv) WriteSSLConf ¶
func (env *OpenSSLEnv) WriteSSLConf(confLoc string, args *SSLTemplateArgs)
func (*OpenSSLEnv) WriteSignSSLConf ¶
func (env *OpenSSLEnv) WriteSignSSLConf(confLoc string, args *SignSSLTemplateArgs)
type OpenSSLVersion ¶
type SSLTemplateArgs ¶
Click to show internal directories.
Click to hide internal directories.