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 ¶
const (
PrivateKeyFile = "private.key"
)
Variables ¶
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 ¶
type Manager ¶
func NewManager ¶
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 ¶
func (m *MockIdentity) EXPECT() *MockIdentityMockRecorder
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.
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.