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

go generate changes

This commit is contained in:
Murali Paluru
2019-10-30 12:07:16 -07:00
committed by Alena Prokharchyk
parent 75bc3cf3f8
commit 4a33ba02d2
6 changed files with 145 additions and 12 deletions

View File

@@ -4,9 +4,11 @@ const (
ServiceReferenceType = "serviceReference"
ServiceReferenceFieldName = "name"
ServiceReferenceFieldNamespace = "namespace"
ServiceReferenceFieldPort = "port"
)
type ServiceReference struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
Port *int64 `json:"port,omitempty" yaml:"port,omitempty"`
}

View File

@@ -0,0 +1,12 @@
package client
const (
AuditLogType = "auditLog"
AuditLogFieldConfiguration = "configuration"
AuditLogFieldEnabled = "enabled"
)
type AuditLog struct {
Configuration *AuditLogConfig `json:"configuration,omitempty" yaml:"configuration,omitempty"`
Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
}

View File

@@ -0,0 +1,20 @@
package client
const (
AuditLogConfigType = "auditLogConfig"
AuditLogConfigFieldFormat = "format"
AuditLogConfigFieldMaxAge = "maxAge"
AuditLogConfigFieldMaxBackup = "maxBackup"
AuditLogConfigFieldMaxSize = "maxSize"
AuditLogConfigFieldPath = "path"
AuditLogConfigFieldPolicy = "policy"
)
type AuditLogConfig struct {
Format string `json:"format,omitempty" yaml:"format,omitempty"`
MaxAge int64 `json:"maxAge,omitempty" yaml:"maxAge,omitempty"`
MaxBackup int64 `json:"maxBackup,omitempty" yaml:"maxBackup,omitempty"`
MaxSize int64 `json:"maxSize,omitempty" yaml:"maxSize,omitempty"`
Path string `json:"path,omitempty" yaml:"path,omitempty"`
Policy map[string]interface{} `json:"policy,omitempty" yaml:"policy,omitempty"`
}

View File

@@ -0,0 +1,12 @@
package client
const (
EventRateLimitType = "eventRateLimit"
EventRateLimitFieldConfiguration = "configuration"
EventRateLimitFieldEnabled = "enabled"
)
type EventRateLimit struct {
Configuration map[string]interface{} `json:"configuration,omitempty" yaml:"configuration,omitempty"`
Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
}

View File

@@ -2,7 +2,10 @@ package client
const (
KubeAPIServiceType = "kubeAPIService"
KubeAPIServiceFieldAdmissionConfiguration = "admissionConfiguration"
KubeAPIServiceFieldAlwaysPullImages = "alwaysPullImages"
KubeAPIServiceFieldAuditLog = "auditLog"
KubeAPIServiceFieldEventRateLimit = "eventRateLimit"
KubeAPIServiceFieldExtraArgs = "extraArgs"
KubeAPIServiceFieldExtraBinds = "extraBinds"
KubeAPIServiceFieldExtraEnv = "extraEnv"
@@ -14,7 +17,10 @@ const (
)
type KubeAPIService struct {
AdmissionConfiguration map[string]interface{} `json:"admissionConfiguration,omitempty" yaml:"admissionConfiguration,omitempty"`
AlwaysPullImages bool `json:"alwaysPullImages,omitempty" yaml:"alwaysPullImages,omitempty"`
AuditLog *AuditLog `json:"auditLog,omitempty" yaml:"auditLog,omitempty"`
EventRateLimit *EventRateLimit `json:"eventRateLimit,omitempty" yaml:"eventRateLimit,omitempty"`
ExtraArgs map[string]string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"`
ExtraBinds []string `json:"extraBinds,omitempty" yaml:"extraBinds,omitempty"`
ExtraEnv []string `json:"extraEnv,omitempty" yaml:"extraEnv,omitempty"`