Documentation
¶
Index ¶
Constants ¶
View Source
const (
IdentityFile = "private.key"
)
Variables ¶
View Source
var ( ErrManagedOSNotSupportedYet = errors.New("managed Elemental OS not supported yet") ErrUnmanagedOSNotReset = errors.New("unmanaged OS reset sentinel file still exists") )
View Source
var ErrIdentityDoesNotExist = errors.New("no identity found")
Functions ¶
This section is empty.
Types ¶
type DummyIdentity ¶
type DummyIdentity struct {
// contains filtered or unexported fields
}
func NewDummyIdentity ¶
func NewDummyIdentity() (*DummyIdentity, error)
func (*DummyIdentity) GetSigningKey ¶
func (i *DummyIdentity) GetSigningKey() ([]byte, error)
func (*DummyIdentity) LoadFromFile ¶
func (i *DummyIdentity) LoadFromFile(fs vfs.FS, filePath string) error
func (*DummyIdentity) WriteToFile ¶
func (i *DummyIdentity) WriteToFile(fs vfs.FS, filePath string) error
type DummyManager ¶
type DummyManager struct {
// contains filtered or unexported fields
}
func (*DummyManager) GetOrCreateIdentity ¶
func (m *DummyManager) GetOrCreateIdentity() (Identity, error)
type ElementalInstaller ¶
type ElementalInstaller struct {
// contains filtered or unexported fields
}
func (*ElementalInstaller) Install ¶
func (i *ElementalInstaller) Install(_ api.RegistrationResponse, _ string) error
func (*ElementalInstaller) Reset ¶
func (i *ElementalInstaller) Reset(_ api.RegistrationResponse) error
func (*ElementalInstaller) TriggerReset ¶
func (i *ElementalInstaller) TriggerReset() error
type IdentityManager ¶
func NewDummyManager ¶
func NewDummyManager(fs vfs.FS, workDir string) IdentityManager
type Installer ¶
type Installer interface {
Install(conf api.RegistrationResponse, hostnameToSet string) error
TriggerReset() error
Reset(conf api.RegistrationResponse) error
}
func NewElementalInstaller ¶
func NewElementalInstaller(fs vfs.FS) Installer
func NewUnmanagedInstaller ¶
type UnmanagedInstaller ¶
type UnmanagedInstaller struct {
// contains filtered or unexported fields
}
func (*UnmanagedInstaller) Install ¶
func (i *UnmanagedInstaller) Install(conf api.RegistrationResponse, hostnameToSet string) error
func (*UnmanagedInstaller) Reset ¶
func (i *UnmanagedInstaller) Reset(conf api.RegistrationResponse) error
func (*UnmanagedInstaller) TriggerReset ¶
func (i *UnmanagedInstaller) TriggerReset() error
Click to show internal directories.
Click to hide internal directories.