Documentation ¶
Index ¶
- type CertDetail
- type CertList
- type CertListFull
- type Disk
- type EfiCerts
- type KairosFS
- type KairosLogger
- func (m KairosLogger) Close()
- func (m KairosLogger) Debug(args ...interface{})
- func (m KairosLogger) Debugf(tpl string, args ...interface{})
- func (m KairosLogger) Error(args ...interface{})
- func (m KairosLogger) Errorf(tpl string, args ...interface{})
- func (m KairosLogger) Fatal(args ...interface{})
- func (m KairosLogger) Fatalf(tpl string, args ...interface{})
- func (m KairosLogger) GetLevel() zerolog.Level
- func (m KairosLogger) Info(args ...interface{})
- func (m KairosLogger) Infof(tpl string, args ...interface{})
- func (m KairosLogger) IsDebug() bool
- func (m KairosLogger) Panic(args ...interface{})
- func (m KairosLogger) Panicf(tpl string, args ...interface{})
- func (m *KairosLogger) SetLevel(level string)
- func (m KairosLogger) Trace(args ...interface{})
- func (m KairosLogger) Tracef(tpl string, args ...interface{})
- func (m KairosLogger) Warn(args ...interface{})
- func (m KairosLogger) Warnf(tpl string, args ...interface{})
- func (m KairosLogger) Warning(args ...interface{})
- func (m KairosLogger) Warningf(tpl string, args ...interface{})
- type Partition
- type PartitionList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertList ¶ added in v0.1.1
type CertList struct { PK []CertDetail KEK []CertDetail DB []CertDetail }
CertList provides a list of certs on the system from the Efivars and properly parsed
type CertListFull ¶ added in v0.1.2
type CertListFull struct { PK []*x509.Certificate KEK []*x509.Certificate DB []*x509.Certificate }
CertListFull provides a list of FULL certs, including raw cert data
type Disk ¶ added in v0.4.4
type Disk struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` SizeBytes uint64 `json:"size_bytes,omitempty" yaml:"size_bytes,omitempty"` UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"` Partitions PartitionList `json:"partitions,omitempty" yaml:"partitions,omitempty"` }
type EfiCerts ¶ added in v0.1.1
EfiCerts is a simplified version of a CertList which only provides the Common names for the certs
type KairosFS ¶
type KairosFS interface { ReadFile(filename string) ([]byte, error) Stat(name string) (fs.FileInfo, error) Open(name string) (fs.File, error) RawPath(name string) (string, error) WriteFile(filename string, data []byte, perm os.FileMode) error }
KairosFS is our interface for methods that need an FS
type KairosLogger ¶ added in v0.0.26
KairosLogger implements the bridge between zerolog and the logger.Interface that yip needs.
func NewBufferLogger ¶ added in v0.0.26
func NewBufferLogger(b *bytes.Buffer) KairosLogger
func NewKairosLogger ¶ added in v0.0.26
func NewKairosLogger(name, level string, quiet bool) KairosLogger
NewKairosLogger creates a new logger with the given name and level. The name is used to create a log file in /run/kairos/NAME-DATE.log and /var/log/kairos/NAME-DATE.log The level is used to set the log level, defaulting to info The log level can be overridden by setting the environment variable $NAME_DEBUG to any parseable value. If quiet is true, the logger will not log to the console.
func NewNullLogger ¶ added in v0.0.26
func NewNullLogger() KairosLogger
func (KairosLogger) Close ¶ added in v0.0.26
func (m KairosLogger) Close()
Close Try to close all log files
func (KairosLogger) Debug ¶ added in v0.0.26
func (m KairosLogger) Debug(args ...interface{})
func (KairosLogger) Debugf ¶ added in v0.0.26
func (m KairosLogger) Debugf(tpl string, args ...interface{})
func (KairosLogger) Error ¶ added in v0.0.26
func (m KairosLogger) Error(args ...interface{})
func (KairosLogger) Errorf ¶ added in v0.0.26
func (m KairosLogger) Errorf(tpl string, args ...interface{})
func (KairosLogger) Fatal ¶ added in v0.0.26
func (m KairosLogger) Fatal(args ...interface{})
func (KairosLogger) Fatalf ¶ added in v0.0.26
func (m KairosLogger) Fatalf(tpl string, args ...interface{})
func (KairosLogger) GetLevel ¶ added in v0.0.26
func (m KairosLogger) GetLevel() zerolog.Level
func (KairosLogger) Info ¶ added in v0.0.26
func (m KairosLogger) Info(args ...interface{})
func (KairosLogger) Infof ¶ added in v0.0.26
func (m KairosLogger) Infof(tpl string, args ...interface{})
func (KairosLogger) IsDebug ¶ added in v0.0.26
func (m KairosLogger) IsDebug() bool
func (KairosLogger) Panic ¶ added in v0.0.26
func (m KairosLogger) Panic(args ...interface{})
func (KairosLogger) Panicf ¶ added in v0.0.26
func (m KairosLogger) Panicf(tpl string, args ...interface{})
func (*KairosLogger) SetLevel ¶ added in v0.0.26
func (m *KairosLogger) SetLevel(level string)
func (KairosLogger) Trace ¶ added in v0.0.26
func (m KairosLogger) Trace(args ...interface{})
func (KairosLogger) Tracef ¶ added in v0.0.26
func (m KairosLogger) Tracef(tpl string, args ...interface{})
func (KairosLogger) Warn ¶ added in v0.0.26
func (m KairosLogger) Warn(args ...interface{})
func (KairosLogger) Warnf ¶ added in v0.0.26
func (m KairosLogger) Warnf(tpl string, args ...interface{})
func (KairosLogger) Warning ¶ added in v0.0.26
func (m KairosLogger) Warning(args ...interface{})
func (KairosLogger) Warningf ¶ added in v0.0.27
func (m KairosLogger) Warningf(tpl string, args ...interface{})
type Partition ¶ added in v0.4.4
type Partition struct { Name string `yaml:"-"` FilesystemLabel string `yaml:"label,omitempty" mapstructure:"label"` Size uint `yaml:"size,omitempty" mapstructure:"size"` FS string `yaml:"fs,omitempty" mapstrcuture:"fs"` Flags []string `yaml:"flags,omitempty" mapstrcuture:"flags"` UUID string `yaml:"uuid,omitempty" mapstructure:"uuid"` MountPoint string `yaml:"-"` Path string `yaml:"-"` Disk string `yaml:"-"` }
type PartitionList ¶ added in v0.4.4
type PartitionList []*Partition