1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 12:48:45 +00:00

generate changes

This commit is contained in:
Daishan Peng
2018-05-17 09:28:25 -07:00
committed by Darren Shepherd
parent 8f3c21fdf2
commit e4d6a30f09
4 changed files with 25 additions and 3 deletions

View File

@@ -9,11 +9,13 @@ const (
AppFieldAnnotations = "annotations"
AppFieldAnswers = "answers"
AppFieldAppRevisionId = "appRevisionId"
AppFieldAppliedFiles = "appliedFiles"
AppFieldConditions = "conditions"
AppFieldCreated = "created"
AppFieldCreatorID = "creatorId"
AppFieldDescription = "description"
AppFieldExternalID = "externalId"
AppFieldFiles = "files"
AppFieldLabels = "labels"
AppFieldLastAppliedTemplates = "lastAppliedTemplate"
AppFieldName = "name"
@@ -35,11 +37,13 @@ type App struct {
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
Answers map[string]string `json:"answers,omitempty" yaml:"answers,omitempty"`
AppRevisionId string `json:"appRevisionId,omitempty" yaml:"appRevisionId,omitempty"`
AppliedFiles map[string]string `json:"appliedFiles,omitempty" yaml:"appliedFiles,omitempty"`
Conditions []AppCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
ExternalID string `json:"externalId,omitempty" yaml:"externalId,omitempty"`
Files map[string]string `json:"files,omitempty" yaml:"files,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
LastAppliedTemplates string `json:"lastAppliedTemplate,omitempty" yaml:"lastAppliedTemplate,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`

View File

@@ -6,6 +6,7 @@ const (
AppSpecFieldAppRevisionId = "appRevisionId"
AppSpecFieldDescription = "description"
AppSpecFieldExternalID = "externalId"
AppSpecFieldFiles = "files"
AppSpecFieldProjectId = "projectId"
AppSpecFieldPrune = "prune"
AppSpecFieldTargetNamespace = "targetNamespace"
@@ -16,6 +17,7 @@ type AppSpec struct {
AppRevisionId string `json:"appRevisionId,omitempty" yaml:"appRevisionId,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
ExternalID string `json:"externalId,omitempty" yaml:"externalId,omitempty"`
Files map[string]string `json:"files,omitempty" yaml:"files,omitempty"`
ProjectId string `json:"projectId,omitempty" yaml:"projectId,omitempty"`
Prune bool `json:"prune,omitempty" yaml:"prune,omitempty"`
TargetNamespace string `json:"targetNamespace,omitempty" yaml:"targetNamespace,omitempty"`

View File

@@ -2,13 +2,15 @@ package client
const (
AppStatusType = "appStatus"
AppStatusFieldAppliedFiles = "appliedFiles"
AppStatusFieldConditions = "conditions"
AppStatusFieldLastAppliedTemplates = "lastAppliedTemplate"
AppStatusFieldNotes = "notes"
)
type AppStatus struct {
Conditions []AppCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
LastAppliedTemplates string `json:"lastAppliedTemplate,omitempty" yaml:"lastAppliedTemplate,omitempty"`
Notes string `json:"notes,omitempty" yaml:"notes,omitempty"`
AppliedFiles map[string]string `json:"appliedFiles,omitempty" yaml:"appliedFiles,omitempty"`
Conditions []AppCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
LastAppliedTemplates string `json:"lastAppliedTemplate,omitempty" yaml:"lastAppliedTemplate,omitempty"`
Notes string `json:"notes,omitempty" yaml:"notes,omitempty"`
}