Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH committed Dec 30, 2024
1 parent 2c083bb commit a2d042b
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions service/rauc_online.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,28 @@ const (
UnknownChannelType ChannelType = "unknown"
)

var ChannelData = map[ChannelType][]string{
StableChannelType: {
"https://casaos.oss-cn-shanghai.aliyuncs.com/IceWhaleTech/zimaos-rauc/",
"https://raw.githubusercontent.com/IceWhaleTech/ZimaOS/refs/heads/main/",
},
PublicTestChannelType: {
"https://casaos.oss-cn-shanghai.aliyuncs.com/IceWhaleTech/zimaos-rauc/public-test/",
"https://raw.githubusercontent.com/IceWhaleTech/ZimaOS/refs/heads/main/public-test/",
},
PrivateTestChannelType: {
"https://casaos.oss-cn-shanghai.aliyuncs.com/IceWhaleTech/zimaos-rauc/private-test/",
},
TestVerifyChannelType: {
"https://casaos.oss-cn-shanghai.aliyuncs.com/IceWhaleTech/zimaos-rauc/test-verification-channel/",
},
DisableChannelType: {
"https://localhost/IceWhaleTech/zimaos-rauc/",
},
}

var (
ChannelData = map[ChannelType][]string{
StableChannelType: []string{
"https://casaos.oss-cn-shanghai.aliyuncs.com/IceWhaleTech/zimaos-rauc/",
"https://raw.githubusercontent.com/IceWhaleTech/ZimaOS/refs/heads/main/",
},
PublicTestChannelType: []string{
"https://casaos.oss-cn-shanghai.aliyuncs.com/IceWhaleTech/zimaos-rauc/public-test/",
"https://raw.githubusercontent.com/IceWhaleTech/ZimaOS/refs/heads/main/public-test/",
},
PrivateTestChannelType: []string{
"https://casaos.oss-cn-shanghai.aliyuncs.com/IceWhaleTech/zimaos-rauc/private-test/",
},
TestVerifyChannelType: []string{
"https://casaos.oss-cn-shanghai.aliyuncs.com/IceWhaleTech/zimaos-rauc/test-verification-channel/",
},
DisableChannelType: []string{
"https://localhost/IceWhaleTech/zimaos-rauc/",
},
}
)

type RAUCService struct {
InstallRAUCHandler func(raucPath string) error
Expand Down

0 comments on commit a2d042b

Please sign in to comment.