Documentation ¶
Index ¶
- type CloudConfigCmd
- func (c CloudConfigCmd) CaExist() bool
- func (c CloudConfigCmd) CreateAccount(kmsPassword string) (keyId, address string, err error)
- func (c CloudConfigCmd) CreateCaAndRead() ([]byte, []byte, error)
- func (c CloudConfigCmd) CreateSignCsrAndRead(domain string) ([]byte, []byte, []byte, error)
- func (c CloudConfigCmd) DeleteChain() error
- func (c CloudConfigCmd) Exist() bool
- func (c CloudConfigCmd) Init(chainId string) error
- func (c CloudConfigCmd) ReadCa() ([]byte, []byte, error)
- func (c CloudConfigCmd) ReadKmsDb(address string) ([]byte, error)
- func (c CloudConfigCmd) WriteCaCert(cert []byte) error
- func (c CloudConfigCmd) WriteCaKey(key []byte) error
- type Cmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudConfigCmd ¶
type CloudConfigCmd struct {
// contains filtered or unexported fields
}
func (CloudConfigCmd) CaExist ¶
func (c CloudConfigCmd) CaExist() bool
func (CloudConfigCmd) CreateAccount ¶
func (c CloudConfigCmd) CreateAccount(kmsPassword string) (keyId, address string, err error)
func (CloudConfigCmd) CreateCaAndRead ¶
func (c CloudConfigCmd) CreateCaAndRead() ([]byte, []byte, error)
CreateCaAndRead. if no errors, return content of cert.pem,key.pem
func (CloudConfigCmd) CreateSignCsrAndRead ¶
CreateCsrAndRead. if no errors, return content of domain's csr.pem, key.pem, cert.pem
func (CloudConfigCmd) DeleteChain ¶
func (c CloudConfigCmd) DeleteChain() error
func (CloudConfigCmd) Exist ¶
func (c CloudConfigCmd) Exist() bool
func (CloudConfigCmd) Init ¶
func (c CloudConfigCmd) Init(chainId string) error
func (CloudConfigCmd) WriteCaCert ¶
func (c CloudConfigCmd) WriteCaCert(cert []byte) error
func (CloudConfigCmd) WriteCaKey ¶
func (c CloudConfigCmd) WriteCaKey(key []byte) error
type Cmd ¶
type Cmd interface { Exist() bool Init(chainId string) error CreateAccount(kmsPassword string) (keyId, address string, err error) ReadKmsDb(address string) ([]byte, error) // CreateCaAndRead. if no errors, return content of cert.pem,key.pem CreateCaAndRead() ([]byte, []byte, error) CaExist() bool ReadCa() ([]byte, []byte, error) WriteCaCert(cert []byte) error WriteCaKey(key []byte) error CreateSignCsrAndRead(domain string) ([]byte, []byte, []byte, error) //ReadCsr(domain string) ([]byte, []byte, []byte, error) DeleteChain() error }
func NewCloudConfig ¶
Click to show internal directories.
Click to hide internal directories.