-
Notifications
You must be signed in to change notification settings - Fork 19
/
zephyr.go
56 lines (46 loc) · 1.24 KB
/
zephyr.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* UpdateHub
* Copyright (C) 2019
* O.S. Systems Sofware LTDA: contato@ossystems.com.br
*
* SPDX-License-Identifier: Apache-2.0
*/
package zephyr
import (
"github.com/spf13/afero"
"github.com/UpdateHub/updatehub/installmodes"
"github.com/UpdateHub/updatehub/metadata"
)
func init() {
installmodes.RegisterInstallMode(installmodes.InstallMode{
Name: "zephyr",
CheckRequirements: func() error { return nil },
GetObject: func() interface{} {
return &ZephyrObject{}
},
})
}
// ZephyrObject encapsulates the "zephyr" handler data and functions
type ZephyrObject struct {
metadata.ObjectMetadata
}
// Setup implementation for the "zephyr" handler
func (m *ZephyrObject) Setup() error {
panic("Not supported")
}
// Install implementation for the "zephyr" handler
func (m *ZephyrObject) Install(downloadDir string) error {
panic("Not supported")
}
// Cleanup implementation for the "zephyr" handler
func (m *ZephyrObject) Cleanup() error {
panic("Not supported")
}
// GetTarget implementation for the "zephyr" handler
func (m *ZephyrObject) GetTarget() string {
panic("Not supported")
}
// SetupTarget implementation for the "zephyr" handler
func (m *ZephyrObject) SetupTarget(target afero.File) {
panic("Not supported")
}