exec

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func (c CloudConfigCmd) CreateSignCsrAndRead(domain string) ([]byte, []byte, []byte, error)

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) ReadCa

func (c CloudConfigCmd) ReadCa() ([]byte, []byte, error)

func (CloudConfigCmd) ReadKmsDb

func (c CloudConfigCmd) ReadKmsDb(address string) ([]byte, 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

func NewCloudConfig(chainName string, configDir string) Cmd

Jump to

Keyboard shortcuts

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