common

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT, Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	fx.In
	APISecret *jwt.HMACSHA
	Recorder  storage.IRecorder
}

func (*Common) AuthNew

func (a *Common) AuthNew(ctx context.Context, perms []auth.Permission) ([]byte, error)

func (*Common) AuthVerify

func (a *Common) AuthVerify(ctx context.Context, token string) ([]auth.Permission, error)

func (*Common) ListSignedRecord added in v1.11.0

func (a *Common) ListSignedRecord(ctx context.Context, param *types.QuerySignRecordParams) ([]types.SignRecord, error)

func (*Common) LogList

func (a *Common) LogList(context.Context) ([]string, error)

func (*Common) LogSetLevel

func (a *Common) LogSetLevel(ctx context.Context, subsystem, level string) error

func (*Common) Version

func (a *Common) Version(context.Context) (types.Version, error)

type ICommon

type ICommon = api.ICommon

type Version

type Version struct {
	Version string

	// APIVersion is a binary encoded semver version of the remote implementing
	// this api
	//
	// See APIVersion in build/version.go
	APIVersion types.APIVersion
}

Version provides various build-time information

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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