certs

package
v0.14.9 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(id, name string, v *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

Create 创建驱动实例

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	Name string `json:"name" label:"证书名"`
	Key  string `json:"key" label:"密钥内容" format:"file" description:"密钥文件的后缀名一般为.key"`
	Pem  string `json:"pem" label:"证书内容" format:"file" description:"证书文件的后缀名一般为.crt 或 .pem"`
}

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController() *Controller

func (*Controller) AllWorkers

func (c *Controller) AllWorkers() []string

func (*Controller) Check

func (c *Controller) Check(cfg interface{}) (profession, name, driver, desc string, err error)

func (*Controller) ConfigType

func (c *Controller) ConfigType() reflect.Type

func (*Controller) Del

func (c *Controller) Del(id string)

func (*Controller) Get

func (c *Controller) Get() interface{}

func (*Controller) Mode

func (c *Controller) Mode() eosc.SettingMode

func (*Controller) Set

func (c *Controller) Set(conf interface{}) (err error)

func (*Controller) Store

func (c *Controller) Store(id string)

type Worker

type Worker struct {
	drivers.WorkerBase
	// contains filtered or unexported fields
}

func (*Worker) Check added in v0.12.7

func (w *Worker) Check(conf interface{}, _ map[eosc.RequireId]eosc.IWorker) error

func (*Worker) CheckSkill

func (w *Worker) CheckSkill(string) bool

func (*Worker) Destroy

func (w *Worker) Destroy() error

func (*Worker) Reset

func (w *Worker) Reset(conf interface{}, _ map[eosc.RequireId]eosc.IWorker) error

func (*Worker) Start

func (w *Worker) Start() error

func (*Worker) Stop

func (w *Worker) Stop() error

Jump to

Keyboard shortcuts

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