Documentation
¶
Overview ¶
Package update verifies signed release manifests before executing staged binaries.
Index ¶
- Constants
- func PublicKey() ([]byte, error)
- func Verify(manifest, signature []byte, version string) (map[string]string, error)
- func VerifyFile(path, hash string) error
- func VerifyWithKey(keyText, manifest, signature []byte, version string) (map[string]string, error)
- type Manager
- func (m *Manager) Check(ctx context.Context, version string) (Release, error)
- func (m *Manager) Confirm(ctx context.Context) error
- func (m *Manager) Install(ctx context.Context, id, version string, progress func(any)) (Release, error)
- func (m *Manager) Rollback(ctx context.Context) error
- func (m *Manager) RollbackPending(ctx context.Context) error
- func (m *Manager) Status() any
- type Release
- type Transaction
Constants ¶
View Source
const Repository = "VanSail-Opensource/X-Node"
Variables ¶
This section is empty.
Functions ¶
func VerifyFile ¶
Types ¶
type Manager ¶
type Manager struct {
Dir string
Current string
Runner host.Runner
Client *http.Client
NodePath string
CLIPath string
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.