...
Package worker
import "github.com/sassoftware/relic/token/worker"
- Overview
- Index
- type WorkerToken
- func New(config *config.Config, tokenName string) (*WorkerToken, error)
- func (t *WorkerToken) Close() error
- func (t *WorkerToken) Config() *config.TokenConfig
- func (t *WorkerToken) Generate(keyName string, keyType token.KeyType, bits uint) (token.Key, error)
- func (t *WorkerToken) GetKey(keyName string) (token.Key, error)
- func (t *WorkerToken) GetKeyContext(ctx context.Context, keyName string) (token.Key, error)
- func (t *WorkerToken) Import(keyName string, privKey crypto.PrivateKey) (token.Key, error)
- func (t *WorkerToken) ImportCertificate(cert *x509.Certificate, labelBase string) error
- func (t *WorkerToken) ListKeys(opts token.ListOptions) error
- func (t *WorkerToken) Ping() error
- func (t *WorkerToken) PingContext(ctx context.Context) error
Package files
client.go
retry.go
worker.go
type WorkerToken struct {
}
func New(config *config.Config, tokenName string) (*WorkerToken, error)
func (*WorkerToken) Close
¶
func (t *WorkerToken) Close() error
func (*WorkerToken) Config
¶
func (t *WorkerToken) Config() *config.TokenConfig
func (*WorkerToken) Generate
¶
func (t *WorkerToken) Generate(keyName string, keyType token.KeyType, bits uint) (token.Key, error)
func (*WorkerToken) GetKey
¶
func (t *WorkerToken) GetKey(keyName string) (token.Key, error)
func (t *WorkerToken) GetKeyContext(ctx context.Context, keyName string) (token.Key, error)
func (*WorkerToken) Import
¶
func (t *WorkerToken) Import(keyName string, privKey crypto.PrivateKey) (token.Key, error)
func (t *WorkerToken) ImportCertificate(cert *x509.Certificate, labelBase string) error
func (*WorkerToken) ListKeys
¶
func (t *WorkerToken) ListKeys(opts token.ListOptions) error
func (*WorkerToken) Ping
¶
func (t *WorkerToken) Ping() error
func (t *WorkerToken) PingContext(ctx context.Context) error