identity

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: github.com/rancher-sandbox/cluster-api-provider-elemental/internal/identity (interfaces: Manager,Identity)

Generated by this command:

mockgen -copyright_file=hack/boilerplate.go.txt -destination=internal/identity/identity_mocks.go -package=identity github.com/rancher-sandbox/cluster-api-provider-elemental/internal/identity Manager,Identity

Package identity is a generated GoMock package.

Index

Constants

View Source
const (
	PrivateKeyFile = "private.key"
)

Variables

View Source
var (
	ErrPEMDecoding = errors.New("no PEM data found")
)

Functions

This section is empty.

Types

type Ed25519Identity

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

func (*Ed25519Identity) Marshal

func (i *Ed25519Identity) Marshal() ([]byte, error)

func (*Ed25519Identity) MarshalPublic

func (i *Ed25519Identity) MarshalPublic() ([]byte, error)

func (*Ed25519Identity) Sign

func (i *Ed25519Identity) Sign(claims jwt.Claims) (string, error)

func (*Ed25519Identity) Unmarshal

func (i *Ed25519Identity) Unmarshal(key []byte) error

type Identity

type Identity interface {
	MarshalPublic() ([]byte, error)
	Sign(claims jwt.Claims) (string, error)
	Marshal() ([]byte, error)
	Unmarshal([]byte) error
}

func NewED25519Identity

func NewED25519Identity() (Identity, error)

type Manager

type Manager interface {
	LoadSigningKeyOrCreateNew() (Identity, error)
}

func NewManager

func NewManager(fs vfs.FS, workDir string) Manager

type MockIdentity

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

MockIdentity is a mock of Identity interface.

func NewMockIdentity

func NewMockIdentity(ctrl *gomock.Controller) *MockIdentity

NewMockIdentity creates a new mock instance.

func (*MockIdentity) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIdentity) Marshal

func (m *MockIdentity) Marshal() ([]byte, error)

Marshal mocks base method.

func (*MockIdentity) MarshalPublic

func (m *MockIdentity) MarshalPublic() ([]byte, error)

MarshalPublic mocks base method.

func (*MockIdentity) Sign

func (m *MockIdentity) Sign(arg0 jwt.Claims) (string, error)

Sign mocks base method.

func (*MockIdentity) Unmarshal

func (m *MockIdentity) Unmarshal(arg0 []byte) error

Unmarshal mocks base method.

type MockIdentityMockRecorder

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

MockIdentityMockRecorder is the mock recorder for MockIdentity.

func (*MockIdentityMockRecorder) Marshal

func (mr *MockIdentityMockRecorder) Marshal() *gomock.Call

Marshal indicates an expected call of Marshal.

func (*MockIdentityMockRecorder) MarshalPublic

func (mr *MockIdentityMockRecorder) MarshalPublic() *gomock.Call

MarshalPublic indicates an expected call of MarshalPublic.

func (*MockIdentityMockRecorder) Sign

func (mr *MockIdentityMockRecorder) Sign(arg0 any) *gomock.Call

Sign indicates an expected call of Sign.

func (*MockIdentityMockRecorder) Unmarshal

func (mr *MockIdentityMockRecorder) Unmarshal(arg0 any) *gomock.Call

Unmarshal indicates an expected call of Unmarshal.

type MockManager

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

MockManager is a mock of Manager interface.

func NewMockManager

func NewMockManager(ctrl *gomock.Controller) *MockManager

NewMockManager creates a new mock instance.

func (*MockManager) EXPECT

func (m *MockManager) EXPECT() *MockManagerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockManager) LoadSigningKeyOrCreateNew

func (m *MockManager) LoadSigningKeyOrCreateNew() (Identity, error)

LoadSigningKeyOrCreateNew mocks base method.

type MockManagerMockRecorder

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

MockManagerMockRecorder is the mock recorder for MockManager.

func (*MockManagerMockRecorder) LoadSigningKeyOrCreateNew

func (mr *MockManagerMockRecorder) LoadSigningKeyOrCreateNew() *gomock.Call

LoadSigningKeyOrCreateNew indicates an expected call of LoadSigningKeyOrCreateNew.

Jump to

Keyboard shortcuts

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