1
0
mirror of https://github.com/rancher/types.git synced 2025-09-26 12:42:59 +00:00

Update vendor and generate code

This commit is contained in:
Dax McDonald
2019-05-28 19:47:11 -07:00
committed by Craig Jellick
parent 93c8efea22
commit 5081f27d3a
112 changed files with 135 additions and 2 deletions

View File

@@ -150,6 +150,7 @@ func (c *appController) AddHandler(ctx context.Context, name string, handler App
}
func (c *appController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler AppHandlerFunc) {
resource.PutClusterScoped(AppGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *appRevisionController) AddHandler(ctx context.Context, name string, han
}
func (c *appRevisionController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler AppRevisionHandlerFunc) {
resource.PutClusterScoped(AppRevisionGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *basicAuthController) AddHandler(ctx context.Context, name string, handl
}
func (c *basicAuthController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler BasicAuthHandlerFunc) {
resource.PutClusterScoped(BasicAuthGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *certificateController) AddHandler(ctx context.Context, name string, han
}
func (c *certificateController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler CertificateHandlerFunc) {
resource.PutClusterScoped(CertificateGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *dockerCredentialController) AddHandler(ctx context.Context, name string
}
func (c *dockerCredentialController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler DockerCredentialHandlerFunc) {
resource.PutClusterScoped(DockerCredentialGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *namespacedBasicAuthController) AddHandler(ctx context.Context, name str
}
func (c *namespacedBasicAuthController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler NamespacedBasicAuthHandlerFunc) {
resource.PutClusterScoped(NamespacedBasicAuthGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *namespacedCertificateController) AddHandler(ctx context.Context, name s
}
func (c *namespacedCertificateController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler NamespacedCertificateHandlerFunc) {
resource.PutClusterScoped(NamespacedCertificateGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *namespacedDockerCredentialController) AddHandler(ctx context.Context, n
}
func (c *namespacedDockerCredentialController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler NamespacedDockerCredentialHandlerFunc) {
resource.PutClusterScoped(NamespacedDockerCredentialGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *namespacedServiceAccountTokenController) AddHandler(ctx context.Context
}
func (c *namespacedServiceAccountTokenController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler NamespacedServiceAccountTokenHandlerFunc) {
resource.PutClusterScoped(NamespacedServiceAccountTokenGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *namespacedSshAuthController) AddHandler(ctx context.Context, name strin
}
func (c *namespacedSshAuthController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler NamespacedSSHAuthHandlerFunc) {
resource.PutClusterScoped(NamespacedSSHAuthGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *pipelineController) AddHandler(ctx context.Context, name string, handle
}
func (c *pipelineController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler PipelineHandlerFunc) {
resource.PutClusterScoped(PipelineGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *pipelineExecutionController) AddHandler(ctx context.Context, name strin
}
func (c *pipelineExecutionController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler PipelineExecutionHandlerFunc) {
resource.PutClusterScoped(PipelineExecutionGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *pipelineSettingController) AddHandler(ctx context.Context, name string,
}
func (c *pipelineSettingController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler PipelineSettingHandlerFunc) {
resource.PutClusterScoped(PipelineSettingGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *serviceAccountTokenController) AddHandler(ctx context.Context, name str
}
func (c *serviceAccountTokenController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler ServiceAccountTokenHandlerFunc) {
resource.PutClusterScoped(ServiceAccountTokenGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *sourceCodeCredentialController) AddHandler(ctx context.Context, name st
}
func (c *sourceCodeCredentialController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler SourceCodeCredentialHandlerFunc) {
resource.PutClusterScoped(SourceCodeCredentialGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *sourceCodeProviderConfigController) AddHandler(ctx context.Context, nam
}
func (c *sourceCodeProviderConfigController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler SourceCodeProviderConfigHandlerFunc) {
resource.PutClusterScoped(SourceCodeProviderConfigGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -149,6 +149,7 @@ func (c *sourceCodeProviderController) AddHandler(ctx context.Context, name stri
}
func (c *sourceCodeProviderController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler SourceCodeProviderHandlerFunc) {
resource.PutClusterScoped(SourceCodeProviderGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *sourceCodeRepositoryController) AddHandler(ctx context.Context, name st
}
func (c *sourceCodeRepositoryController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler SourceCodeRepositoryHandlerFunc) {
resource.PutClusterScoped(SourceCodeRepositoryGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *sshAuthController) AddHandler(ctx context.Context, name string, handler
}
func (c *sshAuthController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler SSHAuthHandlerFunc) {
resource.PutClusterScoped(SSHAuthGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *workloadController) AddHandler(ctx context.Context, name string, handle
}
func (c *workloadController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler WorkloadHandlerFunc) {
resource.PutClusterScoped(WorkloadGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)