1
0
mirror of https://github.com/rancher/types.git synced 2025-09-24 19:39:13 +00:00

Generated changes

This commit is contained in:
Alena Prokharchyk
2018-07-11 16:48:03 -07:00
parent b840a3a9e6
commit 15d6dfa2d0
154 changed files with 875 additions and 2048 deletions

View File

@@ -0,0 +1,10 @@
package client
const (
AllowedFlexVolumeType = "allowedFlexVolume"
AllowedFlexVolumeFieldDriver = "driver"
)
type AllowedFlexVolume struct {
Driver string `json:"driver,omitempty" yaml:"driver,omitempty"`
}

View File

@@ -5,47 +5,59 @@ import (
)
const (
ClusterEventType = "clusterEvent"
ClusterEventFieldAnnotations = "annotations"
ClusterEventFieldClusterId = "clusterId"
ClusterEventFieldCount = "count"
ClusterEventFieldCreated = "created"
ClusterEventFieldCreatorID = "creatorId"
ClusterEventFieldEventType = "eventType"
ClusterEventFieldFirstTimestamp = "firstTimestamp"
ClusterEventFieldInvolvedObject = "involvedObject"
ClusterEventFieldLabels = "labels"
ClusterEventFieldLastTimestamp = "lastTimestamp"
ClusterEventFieldMessage = "message"
ClusterEventFieldName = "name"
ClusterEventFieldNamespaceId = "namespaceId"
ClusterEventFieldOwnerReferences = "ownerReferences"
ClusterEventFieldReason = "reason"
ClusterEventFieldRemoved = "removed"
ClusterEventFieldSource = "source"
ClusterEventFieldUuid = "uuid"
ClusterEventType = "clusterEvent"
ClusterEventFieldAction = "action"
ClusterEventFieldAnnotations = "annotations"
ClusterEventFieldClusterId = "clusterId"
ClusterEventFieldCount = "count"
ClusterEventFieldCreated = "created"
ClusterEventFieldCreatorID = "creatorId"
ClusterEventFieldEventTime = "eventTime"
ClusterEventFieldEventType = "eventType"
ClusterEventFieldFirstTimestamp = "firstTimestamp"
ClusterEventFieldInvolvedObject = "involvedObject"
ClusterEventFieldLabels = "labels"
ClusterEventFieldLastTimestamp = "lastTimestamp"
ClusterEventFieldMessage = "message"
ClusterEventFieldName = "name"
ClusterEventFieldNamespaceId = "namespaceId"
ClusterEventFieldOwnerReferences = "ownerReferences"
ClusterEventFieldReason = "reason"
ClusterEventFieldRelated = "related"
ClusterEventFieldRemoved = "removed"
ClusterEventFieldReportingController = "reportingComponent"
ClusterEventFieldReportingInstance = "reportingInstance"
ClusterEventFieldSeries = "series"
ClusterEventFieldSource = "source"
ClusterEventFieldUuid = "uuid"
)
type ClusterEvent struct {
types.Resource
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
ClusterId string `json:"clusterId,omitempty" yaml:"clusterId,omitempty"`
Count int64 `json:"count,omitempty" yaml:"count,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
EventType string `json:"eventType,omitempty" yaml:"eventType,omitempty"`
FirstTimestamp string `json:"firstTimestamp,omitempty" yaml:"firstTimestamp,omitempty"`
InvolvedObject *ObjectReference `json:"involvedObject,omitempty" yaml:"involvedObject,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
LastTimestamp string `json:"lastTimestamp,omitempty" yaml:"lastTimestamp,omitempty"`
Message string `json:"message,omitempty" yaml:"message,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
NamespaceId string `json:"namespaceId,omitempty" yaml:"namespaceId,omitempty"`
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
Reason string `json:"reason,omitempty" yaml:"reason,omitempty"`
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
Source *EventSource `json:"source,omitempty" yaml:"source,omitempty"`
Uuid string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
Action string `json:"action,omitempty" yaml:"action,omitempty"`
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
ClusterId string `json:"clusterId,omitempty" yaml:"clusterId,omitempty"`
Count int64 `json:"count,omitempty" yaml:"count,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
EventTime *MicroTime `json:"eventTime,omitempty" yaml:"eventTime,omitempty"`
EventType string `json:"eventType,omitempty" yaml:"eventType,omitempty"`
FirstTimestamp string `json:"firstTimestamp,omitempty" yaml:"firstTimestamp,omitempty"`
InvolvedObject *ObjectReference `json:"involvedObject,omitempty" yaml:"involvedObject,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
LastTimestamp string `json:"lastTimestamp,omitempty" yaml:"lastTimestamp,omitempty"`
Message string `json:"message,omitempty" yaml:"message,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
NamespaceId string `json:"namespaceId,omitempty" yaml:"namespaceId,omitempty"`
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
Reason string `json:"reason,omitempty" yaml:"reason,omitempty"`
Related *ObjectReference `json:"related,omitempty" yaml:"related,omitempty"`
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
ReportingController string `json:"reportingComponent,omitempty" yaml:"reportingComponent,omitempty"`
ReportingInstance string `json:"reportingInstance,omitempty" yaml:"reportingInstance,omitempty"`
Series *EventSeries `json:"series,omitempty" yaml:"series,omitempty"`
Source *EventSource `json:"source,omitempty" yaml:"source,omitempty"`
Uuid string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
}
type ClusterEventCollection struct {
types.Collection

View File

@@ -0,0 +1,14 @@
package client
const (
EventSeriesType = "eventSeries"
EventSeriesFieldCount = "count"
EventSeriesFieldLastObservedTime = "lastObservedTime"
EventSeriesFieldState = "state"
)
type EventSeries struct {
Count int64 `json:"count,omitempty" yaml:"count,omitempty"`
LastObservedTime *MicroTime `json:"lastObservedTime,omitempty" yaml:"lastObservedTime,omitempty"`
State string `json:"state,omitempty" yaml:"state,omitempty"`
}

View File

@@ -0,0 +1,8 @@
package client
const (
MicroTimeType = "microTime"
)
type MicroTime struct {
}

View File

@@ -4,6 +4,7 @@ const (
PodSecurityPolicySpecType = "podSecurityPolicySpec"
PodSecurityPolicySpecFieldAllowPrivilegeEscalation = "allowPrivilegeEscalation"
PodSecurityPolicySpecFieldAllowedCapabilities = "allowedCapabilities"
PodSecurityPolicySpecFieldAllowedFlexVolumes = "allowedFlexVolumes"
PodSecurityPolicySpecFieldAllowedHostPaths = "allowedHostPaths"
PodSecurityPolicySpecFieldDefaultAddCapabilities = "defaultAddCapabilities"
PodSecurityPolicySpecFieldDefaultAllowPrivilegeEscalation = "defaultAllowPrivilegeEscalation"
@@ -24,6 +25,7 @@ const (
type PodSecurityPolicySpec struct {
AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty" yaml:"allowPrivilegeEscalation,omitempty"`
AllowedCapabilities []string `json:"allowedCapabilities,omitempty" yaml:"allowedCapabilities,omitempty"`
AllowedFlexVolumes []AllowedFlexVolume `json:"allowedFlexVolumes,omitempty" yaml:"allowedFlexVolumes,omitempty"`
AllowedHostPaths []AllowedHostPath `json:"allowedHostPaths,omitempty" yaml:"allowedHostPaths,omitempty"`
DefaultAddCapabilities []string `json:"defaultAddCapabilities,omitempty" yaml:"defaultAddCapabilities,omitempty"`
DefaultAllowPrivilegeEscalation *bool `json:"defaultAllowPrivilegeEscalation,omitempty" yaml:"defaultAllowPrivilegeEscalation,omitempty"`

View File

@@ -8,6 +8,7 @@ const (
PodSecurityPolicyTemplateType = "podSecurityPolicyTemplate"
PodSecurityPolicyTemplateFieldAllowPrivilegeEscalation = "allowPrivilegeEscalation"
PodSecurityPolicyTemplateFieldAllowedCapabilities = "allowedCapabilities"
PodSecurityPolicyTemplateFieldAllowedFlexVolumes = "allowedFlexVolumes"
PodSecurityPolicyTemplateFieldAllowedHostPaths = "allowedHostPaths"
PodSecurityPolicyTemplateFieldAnnotations = "annotations"
PodSecurityPolicyTemplateFieldCreated = "created"
@@ -38,6 +39,7 @@ type PodSecurityPolicyTemplate struct {
types.Resource
AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty" yaml:"allowPrivilegeEscalation,omitempty"`
AllowedCapabilities []string `json:"allowedCapabilities,omitempty" yaml:"allowedCapabilities,omitempty"`
AllowedFlexVolumes []AllowedFlexVolume `json:"allowedFlexVolumes,omitempty" yaml:"allowedFlexVolumes,omitempty"`
AllowedHostPaths []AllowedHostPath `json:"allowedHostPaths,omitempty" yaml:"allowedHostPaths,omitempty"`
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`