crypto

package
v0.0.0-...-b8f9f05 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Code generated by mockery v1.0.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildSigner

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

func NewBuildSigner

func NewBuildSigner(privateKey []byte) BuildSigner

func (*BuildSigner) CheckSign

func (bs *BuildSigner) CheckSign(build model.Build, public []byte) (bool, error)

CheckSign is checking build sign with public key

func (*BuildSigner) MakeSign

func (bs *BuildSigner) MakeSign(build model.Build) ([]byte, error)

Make sign is signing build with private key

type MockSigner

type MockSigner struct {
	mock.Mock
}

MockSigner is an autogenerated mock type for the Signer type

func (*MockSigner) CheckSign

func (_m *MockSigner) CheckSign(build model.Build, public []byte) (bool, error)

CheckSign provides a mock function with given fields: build, public

func (*MockSigner) MakeSign

func (_m *MockSigner) MakeSign(build model.Build) ([]byte, error)

MakeSign provides a mock function with given fields: build

type Signer

type Signer interface {
	MakeSign(build model.Build) ([]byte, error)
	CheckSign(build model.Build, public []byte) (bool, error)
}

Jump to

Keyboard shortcuts

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