Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusSuccess = "success" StatusFailure = "failure" StatusUnderway = "underway" StatusUnknown = "unknown" )
Status constants define the CNAB status fields on a Result.
View Source
const ( ActionInstall = "install" ActionUpgrade = "upgrade" ActionDowngrade = "downgrade" ActionUninstall = "uninstall" ActionStatus = "status" ActionUnknown = "unknown" )
Action constants define the CNAB action to be taken
Variables ¶
View Source
var ErrClaimNotFound = errors.New("Claim does not exist")
ErrClaimNotFound represents a claim not found in claim storage
View Source
var ValidName = regexp.MustCompile("^[a-zA-Z0-9_-]+$")
ValidName is a regular expression that indicates whether a name is a valid claim name.
Functions ¶
Types ¶
type Claim ¶
type Claim struct { Name string `json:"name"` Revision string `json:"revision"` Created time.Time `json:"created"` Modified time.Time `json:"modified"` Bundle *bundle.Bundle `json:"bundle"` Result Result `json:"result"` Parameters map[string]interface{} `json:"parameters"` Outputs map[string]interface{} `json:"outputs"` Files map[string]string `json:"files"` RelocationMap bundle.ImageRelocationMap `json:"relocationMap"` }
Claim is an installation claim receipt.
Claims reprsent information about a particular installation, and provide the necessary data to upgrade, uninstall, and downgrade a CNAB package.
type Result ¶
type Result struct { Message string `json:"message"` Action string `json:"action"` Status string `json:"status"` }
Result tracks the result of a Duffle operation on a CNAB installation
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a persistent store for claims.
func NewClaimStore ¶
NewClaimStore creates a persistent store for claims using the specified backing key-blob store.
Click to show internal directories.
Click to hide internal directories.