-
Notifications
You must be signed in to change notification settings - Fork 201
/
aliases.go
46 lines (37 loc) · 1.43 KB
/
aliases.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
package cnab
import (
"github.com/cnabio/cnab-go/bundle"
cnabclaims "github.com/cnabio/cnab-go/claim"
"github.com/cnabio/cnab-go/schema"
)
// Alias common cnab values in this package so that we don't have imports from
// this package and the cnab-go package which gets super confusing now that we
// are declaring document types in this package.
const (
ActionInstall = cnabclaims.ActionInstall
ActionUpgrade = cnabclaims.ActionUpgrade
ActionUninstall = cnabclaims.ActionUninstall
ActionUnknown = cnabclaims.ActionUnknown
StatusSucceeded = cnabclaims.StatusSucceeded
StatusCanceled = cnabclaims.StatusCanceled
StatusFailed = cnabclaims.StatusFailed
StatusRunning = cnabclaims.StatusRunning
StatusPending = cnabclaims.StatusPending
StatusUnknown = cnabclaims.StatusUnknown
OutputInvocationImageLogs = cnabclaims.OutputInvocationImageLogs
)
type Installation = cnabclaims.Installation
type Claim = cnabclaims.Claim
type Result = cnabclaims.Result
type Output = cnabclaims.Output
type Outputs = cnabclaims.Outputs
type OutputMetadata = cnabclaims.OutputMetadata
var NewULID = cnabclaims.MustNewULID
// BundleSchemaVersion is the schemaVersion value for CNAB bundle documents.
func BundleSchemaVersion() schema.Version {
return bundle.GetDefaultSchemaVersion()
}
// ClaimSchemaVersion is the schemaVersion value for CNAB claim documents.
func ClaimSchemaVersion() schema.Version {
return cnabclaims.GetDefaultSchemaVersion()
}