Documentation
¶
Overview ¶
Package info provides functionality to read and parse the application manifest.
Package info gerencia controle e configuração modular, com suporte a arquivos separados por módulo.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bitreg ¶
type Bitreg struct {
BrfPath string `json:"brf_path"`
NSBits int `json:"ns_bits"`
Policy string `json:"policy,omitempty"`
// CapMask is a hexadecimal string representing the capability mask.
CapMask string `json:"cap_mask,omitempty"`
// StateHex is a hexadecimal string representing the state.
StateHex string `json:"state_hex,omitempty"`
}
type Control ¶
type Control struct {
Reference Reference `json:"-"` // Usado internamente para nome do arquivo, nunca exportado
SchemaVersion int `json:"schema_version"`
IPC IPC `json:"ipc"`
Bitreg Bitreg `json:"bitreg"`
KV KV `json:"kv"`
Seq int `json:"seq"`
EpochNS int64 `json:"epoch_ns"`
}
Control representa a configuração de controle de um módulo.
func LoadControlByModule ¶
LoadControlByModule carrega o controle de um arquivo específico do módulo.
func (*Control) GetVersion ¶
func (*Control) SaveControl ¶
SaveControl salva o controle do módulo em arquivo separado.
type Manifest ¶
type Manifest interface {
GetName() string
GetVersion() string
GetAliases() []string
GetRepository() string
GetHomepage() string
GetDescription() string
GetMain() string
GetBin() string
GetAuthor() string
GetLicense() string
GetKeywords() []string
GetPlatforms() []string
IsPrivate() bool
}
func GetManifest ¶
GetManifest lazy, sem init() com side-effects
Click to show internal directories.
Click to hide internal directories.