worker

package
v7.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkerToken

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

func New

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 (*WorkerToken) GetKeyContext

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 (*WorkerToken) ImportCertificate

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 (*WorkerToken) PingContext

func (t *WorkerToken) PingContext(ctx context.Context) error

Jump to

Keyboard shortcuts

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