зеркало из https://github.com/Azure/ARO-RP.git
go mod vendor
This commit is contained in:
Родитель
7f1118c72c
Коммит
f216945448
132
vendor/github.com/openshift/api/console/v1alpha1/0000_10_consoleplugin.crd.yaml
сгенерированный
поставляемый
132
vendor/github.com/openshift/api/console/v1alpha1/0000_10_consoleplugin.crd.yaml
сгенерированный
поставляемый
|
@ -1,132 +0,0 @@
|
|||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
api-approved.openshift.io: https://github.com/openshift/api/pull/764
|
||||
description: Extension for configuring openshift web console plugins.
|
||||
displayName: ConsolePlugin
|
||||
include.release.openshift.io/ibm-cloud-managed: "true"
|
||||
include.release.openshift.io/self-managed-high-availability: "true"
|
||||
include.release.openshift.io/single-node-developer: "true"
|
||||
name: consoleplugins.console.openshift.io
|
||||
spec:
|
||||
group: console.openshift.io
|
||||
names:
|
||||
kind: ConsolePlugin
|
||||
listKind: ConsolePluginList
|
||||
plural: consoleplugins
|
||||
singular: consoleplugin
|
||||
scope: Cluster
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: "ConsolePlugin is an extension for customizing OpenShift web console by dynamically loading code from another service running on the cluster. \n Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support."
|
||||
type: object
|
||||
required:
|
||||
- metadata
|
||||
- spec
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: ConsolePluginSpec is the desired plugin configuration.
|
||||
type: object
|
||||
required:
|
||||
- service
|
||||
properties:
|
||||
displayName:
|
||||
description: displayName is the display name of the plugin.
|
||||
type: string
|
||||
minLength: 1
|
||||
proxy:
|
||||
description: proxy is a list of proxies that describe various service type to which the plugin needs to connect to.
|
||||
type: array
|
||||
items:
|
||||
description: ConsolePluginProxy holds information on various service types to which console's backend will proxy the plugin's requests.
|
||||
type: object
|
||||
required:
|
||||
- alias
|
||||
- type
|
||||
properties:
|
||||
alias:
|
||||
description: "alias is a proxy name that identifies the plugin's proxy. An alias name should be unique per plugin. The console backend exposes following proxy endpoint: \n /api/proxy/plugin/<plugin-name>/<proxy-alias>/<request-path>?<optional-query-parameters> \n Request example path: \n /api/proxy/plugin/acm/search/pods?namespace=openshift-apiserver"
|
||||
type: string
|
||||
maxLength: 128
|
||||
minLength: 1
|
||||
pattern: ^[A-Za-z0-9-_]+$
|
||||
authorize:
|
||||
description: "authorize indicates if the proxied request should contain the logged-in user's OpenShift access token in the \"Authorization\" request header. For example: \n Authorization: Bearer sha256~kV46hPnEYhCWFnB85r5NrprAxggzgb6GOeLbgcKNsH0 \n By default the access token is not part of the proxied request."
|
||||
type: boolean
|
||||
default: false
|
||||
caCertificate:
|
||||
description: caCertificate provides the cert authority certificate contents, in case the proxied Service is using custom service CA. By default, the service CA bundle provided by the service-ca operator is used.
|
||||
type: string
|
||||
pattern: ^-----BEGIN CERTIFICATE-----([\s\S]*)-----END CERTIFICATE-----\s?$
|
||||
service:
|
||||
description: 'service is an in-cluster Service that the plugin will connect to. The Service must use HTTPS. The console backend exposes an endpoint in order to proxy communication between the plugin and the Service. Note: service field is required for now, since currently only "Service" type is supported.'
|
||||
type: object
|
||||
required:
|
||||
- name
|
||||
- namespace
|
||||
- port
|
||||
properties:
|
||||
name:
|
||||
description: name of Service that the plugin needs to connect to.
|
||||
type: string
|
||||
maxLength: 128
|
||||
minLength: 1
|
||||
namespace:
|
||||
description: namespace of Service that the plugin needs to connect to
|
||||
type: string
|
||||
maxLength: 128
|
||||
minLength: 1
|
||||
port:
|
||||
description: port on which the Service that the plugin needs to connect to is listening on.
|
||||
type: integer
|
||||
format: int32
|
||||
maximum: 65535
|
||||
minimum: 1
|
||||
type:
|
||||
description: type is the type of the console plugin's proxy. Currently only "Service" is supported.
|
||||
type: string
|
||||
pattern: ^(Service)$
|
||||
service:
|
||||
description: service is a Kubernetes Service that exposes the plugin using a deployment with an HTTP server. The Service must use HTTPS and Service serving certificate. The console backend will proxy the plugins assets from the Service using the service CA bundle.
|
||||
type: object
|
||||
required:
|
||||
- basePath
|
||||
- name
|
||||
- namespace
|
||||
- port
|
||||
properties:
|
||||
basePath:
|
||||
description: basePath is the path to the plugin's assets. The primary asset it the manifest file called `plugin-manifest.json`, which is a JSON document that contains metadata about the plugin and the extensions.
|
||||
type: string
|
||||
default: /
|
||||
minLength: 1
|
||||
pattern: ^/
|
||||
name:
|
||||
description: name of Service that is serving the plugin assets.
|
||||
type: string
|
||||
maxLength: 128
|
||||
minLength: 1
|
||||
namespace:
|
||||
description: namespace of Service that is serving the plugin assets.
|
||||
type: string
|
||||
maxLength: 128
|
||||
minLength: 1
|
||||
port:
|
||||
description: port on which the Service that is serving the plugin is listening to.
|
||||
type: integer
|
||||
format: int32
|
||||
maximum: 65535
|
||||
minimum: 1
|
||||
served: true
|
||||
storage: true
|
|
@ -1,6 +0,0 @@
|
|||
// +k8s:deepcopy-gen=package,register
|
||||
// +k8s:defaulter-gen=TypeMeta
|
||||
// +k8s:openapi-gen=true
|
||||
|
||||
// +groupName=console.openshift.io
|
||||
package v1alpha1
|
|
@ -1,39 +0,0 @@
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
)
|
||||
|
||||
var (
|
||||
GroupName = "console.openshift.io"
|
||||
GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
|
||||
schemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, corev1.AddToScheme)
|
||||
// Install is a function which adds this version to a scheme
|
||||
Install = schemeBuilder.AddToScheme
|
||||
|
||||
// SchemeGroupVersion generated code relies on this name
|
||||
// Deprecated
|
||||
SchemeGroupVersion = GroupVersion
|
||||
// AddToScheme exists solely to keep the old generators creating valid code
|
||||
// DEPRECATED
|
||||
AddToScheme = schemeBuilder.AddToScheme
|
||||
)
|
||||
|
||||
// Resource generated code relies on this being here, but it logically belongs to the group
|
||||
// DEPRECATED
|
||||
func Resource(resource string) schema.GroupResource {
|
||||
return schema.GroupResource{Group: GroupName, Resource: resource}
|
||||
}
|
||||
|
||||
// addKnownTypes adds types to API group
|
||||
func addKnownTypes(scheme *runtime.Scheme) error {
|
||||
scheme.AddKnownTypes(GroupVersion,
|
||||
&ConsolePlugin{},
|
||||
&ConsolePluginList{},
|
||||
)
|
||||
metav1.AddToGroupVersion(scheme, GroupVersion)
|
||||
return nil
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
package v1alpha1
|
168
vendor/github.com/openshift/api/console/v1alpha1/types_console_plugin.go
сгенерированный
поставляемый
168
vendor/github.com/openshift/api/console/v1alpha1/types_console_plugin.go
сгенерированный
поставляемый
|
@ -1,168 +0,0 @@
|
|||
package v1alpha1
|
||||
|
||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
|
||||
// +genclient
|
||||
// +genclient:nonNamespaced
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +openshift:compatibility-gen:level=4
|
||||
|
||||
// ConsolePlugin is an extension for customizing OpenShift web console by
|
||||
// dynamically loading code from another service running on the cluster.
|
||||
//
|
||||
// Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.
|
||||
type ConsolePlugin struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata"`
|
||||
|
||||
// +kubebuilder:validation:Required
|
||||
// +required
|
||||
Spec ConsolePluginSpec `json:"spec"`
|
||||
}
|
||||
|
||||
// ConsolePluginSpec is the desired plugin configuration.
|
||||
type ConsolePluginSpec struct {
|
||||
// displayName is the display name of the plugin.
|
||||
// +kubebuilder:validation:Required
|
||||
// +kubebuilder:validation:MinLength=1
|
||||
// +optional
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
// service is a Kubernetes Service that exposes the plugin using a
|
||||
// deployment with an HTTP server. The Service must use HTTPS and
|
||||
// Service serving certificate. The console backend will proxy the
|
||||
// plugins assets from the Service using the service CA bundle.
|
||||
// +kubebuilder:validation:Required
|
||||
// +required
|
||||
Service ConsolePluginService `json:"service"`
|
||||
// proxy is a list of proxies that describe various service type
|
||||
// to which the plugin needs to connect to.
|
||||
// +kubebuilder:validation:Optional
|
||||
// +optional
|
||||
Proxy []ConsolePluginProxy `json:"proxy,omitempty"`
|
||||
}
|
||||
|
||||
// ConsolePluginProxy holds information on various service types
|
||||
// to which console's backend will proxy the plugin's requests.
|
||||
type ConsolePluginProxy struct {
|
||||
// type is the type of the console plugin's proxy. Currently only "Service" is supported.
|
||||
// +kubebuilder:validation:Required
|
||||
// +required
|
||||
Type ConsolePluginProxyType `json:"type"`
|
||||
// alias is a proxy name that identifies the plugin's proxy. An alias name
|
||||
// should be unique per plugin. The console backend exposes following
|
||||
// proxy endpoint:
|
||||
//
|
||||
// /api/proxy/plugin/<plugin-name>/<proxy-alias>/<request-path>?<optional-query-parameters>
|
||||
//
|
||||
// Request example path:
|
||||
//
|
||||
// /api/proxy/plugin/acm/search/pods?namespace=openshift-apiserver
|
||||
//
|
||||
// +kubebuilder:validation:Required
|
||||
// +kubebuilder:validation:MinLength=1
|
||||
// +kubebuilder:validation:MaxLength=128
|
||||
// +kubebuilder:validation:Pattern=`^[A-Za-z0-9-_]+$`
|
||||
// +required
|
||||
Alias string `json:"alias"`
|
||||
// service is an in-cluster Service that the plugin will connect to.
|
||||
// The Service must use HTTPS. The console backend exposes an endpoint
|
||||
// in order to proxy communication between the plugin and the Service.
|
||||
// Note: service field is required for now, since currently only "Service"
|
||||
// type is supported.
|
||||
// +kubebuilder:validation:Required
|
||||
// +required
|
||||
Service ConsolePluginProxyServiceConfig `json:"service,omitempty"`
|
||||
// caCertificate provides the cert authority certificate contents,
|
||||
// in case the proxied Service is using custom service CA.
|
||||
// By default, the service CA bundle provided by the service-ca operator is used.
|
||||
// +kubebuilder:validation:Pattern=`^-----BEGIN CERTIFICATE-----([\s\S]*)-----END CERTIFICATE-----\s?$`
|
||||
// +kubebuilder:validation:Optional
|
||||
// +optional
|
||||
CACertificate string `json:"caCertificate,omitempty"`
|
||||
// authorize indicates if the proxied request should contain the logged-in user's
|
||||
// OpenShift access token in the "Authorization" request header. For example:
|
||||
//
|
||||
// Authorization: Bearer sha256~kV46hPnEYhCWFnB85r5NrprAxggzgb6GOeLbgcKNsH0
|
||||
//
|
||||
// By default the access token is not part of the proxied request.
|
||||
// +kubebuilder:default:=false
|
||||
// +kubebuilder:validation:Optional
|
||||
// +optional
|
||||
Authorize bool `json:"authorize,omitempty"`
|
||||
}
|
||||
|
||||
// ProxyType is an enumeration of available proxy types
|
||||
// +kubebuilder:validation:Pattern=`^(Service)$`
|
||||
type ConsolePluginProxyType string
|
||||
|
||||
const (
|
||||
// ProxyTypeService is used when proxying communication to a Service
|
||||
ProxyTypeService ConsolePluginProxyType = "Service"
|
||||
)
|
||||
|
||||
// ProxyTypeServiceConfig holds information on Service to which
|
||||
// console's backend will proxy the plugin's requests.
|
||||
type ConsolePluginProxyServiceConfig struct {
|
||||
// name of Service that the plugin needs to connect to.
|
||||
// +kubebuilder:validation:Required
|
||||
// +kubebuilder:validation:MinLength=1
|
||||
// +kubebuilder:validation:MaxLength=128
|
||||
// +required
|
||||
Name string `json:"name"`
|
||||
// namespace of Service that the plugin needs to connect to
|
||||
// +kubebuilder:validation:Required
|
||||
// +kubebuilder:validation:MinLength=1
|
||||
// +kubebuilder:validation:MaxLength=128
|
||||
// +required
|
||||
Namespace string `json:"namespace"`
|
||||
// port on which the Service that the plugin needs to connect to
|
||||
// is listening on.
|
||||
// +kubebuilder:validation:Required
|
||||
// +kubebuilder:validation:Maximum:=65535
|
||||
// +kubebuilder:validation:Minimum:=1
|
||||
// +required
|
||||
Port int32 `json:"port"`
|
||||
}
|
||||
|
||||
// ConsolePluginService holds information on Service that is serving
|
||||
// console dynamic plugin assets.
|
||||
type ConsolePluginService struct {
|
||||
// name of Service that is serving the plugin assets.
|
||||
// +kubebuilder:validation:Required
|
||||
// +kubebuilder:validation:MinLength=1
|
||||
// +kubebuilder:validation:MaxLength=128
|
||||
// +required
|
||||
Name string `json:"name"`
|
||||
// namespace of Service that is serving the plugin assets.
|
||||
// +kubebuilder:validation:Required
|
||||
// +kubebuilder:validation:MinLength=1
|
||||
// +kubebuilder:validation:MaxLength=128
|
||||
// +required
|
||||
Namespace string `json:"namespace"`
|
||||
// port on which the Service that is serving the plugin is listening to.
|
||||
// +kubebuilder:validation:Required
|
||||
// +kubebuilder:validation:Maximum:=65535
|
||||
// +kubebuilder:validation:Minimum:=1
|
||||
// +required
|
||||
Port int32 `json:"port"`
|
||||
// basePath is the path to the plugin's assets. The primary asset it the
|
||||
// manifest file called `plugin-manifest.json`, which is a JSON document
|
||||
// that contains metadata about the plugin and the extensions.
|
||||
// +kubebuilder:validation:Required
|
||||
// +kubebuilder:validation:MinLength=1
|
||||
// +kubebuilder:validation:Pattern=`^/`
|
||||
// +kubebuilder:default:="/"
|
||||
// +required
|
||||
BasePath string `json:"basePath"`
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +openshift:compatibility-gen:level=4
|
||||
|
||||
// Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.
|
||||
type ConsolePluginList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata"`
|
||||
|
||||
Items []ConsolePlugin `json:"items"`
|
||||
}
|
141
vendor/github.com/openshift/api/console/v1alpha1/zz_generated.deepcopy.go
сгенерированный
поставляемый
141
vendor/github.com/openshift/api/console/v1alpha1/zz_generated.deepcopy.go
сгенерированный
поставляемый
|
@ -1,141 +0,0 @@
|
|||
//go:build !ignore_autogenerated
|
||||
// +build !ignore_autogenerated
|
||||
|
||||
// Code generated by deepcopy-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ConsolePlugin) DeepCopyInto(out *ConsolePlugin) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsolePlugin.
|
||||
func (in *ConsolePlugin) DeepCopy() *ConsolePlugin {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ConsolePlugin)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ConsolePlugin) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ConsolePluginList) DeepCopyInto(out *ConsolePluginList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ConsolePlugin, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsolePluginList.
|
||||
func (in *ConsolePluginList) DeepCopy() *ConsolePluginList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ConsolePluginList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ConsolePluginList) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ConsolePluginProxy) DeepCopyInto(out *ConsolePluginProxy) {
|
||||
*out = *in
|
||||
out.Service = in.Service
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsolePluginProxy.
|
||||
func (in *ConsolePluginProxy) DeepCopy() *ConsolePluginProxy {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ConsolePluginProxy)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ConsolePluginProxyServiceConfig) DeepCopyInto(out *ConsolePluginProxyServiceConfig) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsolePluginProxyServiceConfig.
|
||||
func (in *ConsolePluginProxyServiceConfig) DeepCopy() *ConsolePluginProxyServiceConfig {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ConsolePluginProxyServiceConfig)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ConsolePluginService) DeepCopyInto(out *ConsolePluginService) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsolePluginService.
|
||||
func (in *ConsolePluginService) DeepCopy() *ConsolePluginService {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ConsolePluginService)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ConsolePluginSpec) DeepCopyInto(out *ConsolePluginSpec) {
|
||||
*out = *in
|
||||
out.Service = in.Service
|
||||
if in.Proxy != nil {
|
||||
in, out := &in.Proxy, &out.Proxy
|
||||
*out = make([]ConsolePluginProxy, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsolePluginSpec.
|
||||
func (in *ConsolePluginSpec) DeepCopy() *ConsolePluginSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ConsolePluginSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
77
vendor/github.com/openshift/api/console/v1alpha1/zz_generated.swagger_doc_generated.go
сгенерированный
поставляемый
77
vendor/github.com/openshift/api/console/v1alpha1/zz_generated.swagger_doc_generated.go
сгенерированный
поставляемый
|
@ -1,77 +0,0 @@
|
|||
package v1alpha1
|
||||
|
||||
// This file contains a collection of methods that can be used from go-restful to
|
||||
// generate Swagger API documentation for its models. Please read this PR for more
|
||||
// information on the implementation: https://github.com/emicklei/go-restful/pull/215
|
||||
//
|
||||
// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
|
||||
// they are on one line! For multiple line or blocks that you want to ignore use ---.
|
||||
// Any context after a --- is ignored.
|
||||
//
|
||||
// Those methods can be generated by using hack/update-swagger-docs.sh
|
||||
|
||||
// AUTO-GENERATED FUNCTIONS START HERE
|
||||
var map_ConsolePlugin = map[string]string{
|
||||
"": "ConsolePlugin is an extension for customizing OpenShift web console by dynamically loading code from another service running on the cluster.\n\nCompatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.",
|
||||
}
|
||||
|
||||
func (ConsolePlugin) SwaggerDoc() map[string]string {
|
||||
return map_ConsolePlugin
|
||||
}
|
||||
|
||||
var map_ConsolePluginList = map[string]string{
|
||||
"": "Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.",
|
||||
}
|
||||
|
||||
func (ConsolePluginList) SwaggerDoc() map[string]string {
|
||||
return map_ConsolePluginList
|
||||
}
|
||||
|
||||
var map_ConsolePluginProxy = map[string]string{
|
||||
"": "ConsolePluginProxy holds information on various service types to which console's backend will proxy the plugin's requests.",
|
||||
"type": "type is the type of the console plugin's proxy. Currently only \"Service\" is supported.",
|
||||
"alias": "alias is a proxy name that identifies the plugin's proxy. An alias name should be unique per plugin. The console backend exposes following proxy endpoint:\n\n/api/proxy/plugin/<plugin-name>/<proxy-alias>/<request-path>?<optional-query-parameters>\n\nRequest example path:\n\n/api/proxy/plugin/acm/search/pods?namespace=openshift-apiserver",
|
||||
"service": "service is an in-cluster Service that the plugin will connect to. The Service must use HTTPS. The console backend exposes an endpoint in order to proxy communication between the plugin and the Service. Note: service field is required for now, since currently only \"Service\" type is supported.",
|
||||
"caCertificate": "caCertificate provides the cert authority certificate contents, in case the proxied Service is using custom service CA. By default, the service CA bundle provided by the service-ca operator is used. ",
|
||||
"authorize": "authorize indicates if the proxied request should contain the logged-in user's OpenShift access token in the \"Authorization\" request header. For example:\n\nAuthorization: Bearer sha256~kV46hPnEYhCWFnB85r5NrprAxggzgb6GOeLbgcKNsH0\n\nBy default the access token is not part of the proxied request.",
|
||||
}
|
||||
|
||||
func (ConsolePluginProxy) SwaggerDoc() map[string]string {
|
||||
return map_ConsolePluginProxy
|
||||
}
|
||||
|
||||
var map_ConsolePluginProxyServiceConfig = map[string]string{
|
||||
"": "ProxyTypeServiceConfig holds information on Service to which console's backend will proxy the plugin's requests.",
|
||||
"name": "name of Service that the plugin needs to connect to.",
|
||||
"namespace": "namespace of Service that the plugin needs to connect to",
|
||||
"port": "port on which the Service that the plugin needs to connect to is listening on.",
|
||||
}
|
||||
|
||||
func (ConsolePluginProxyServiceConfig) SwaggerDoc() map[string]string {
|
||||
return map_ConsolePluginProxyServiceConfig
|
||||
}
|
||||
|
||||
var map_ConsolePluginService = map[string]string{
|
||||
"": "ConsolePluginService holds information on Service that is serving console dynamic plugin assets.",
|
||||
"name": "name of Service that is serving the plugin assets.",
|
||||
"namespace": "namespace of Service that is serving the plugin assets.",
|
||||
"port": "port on which the Service that is serving the plugin is listening to.",
|
||||
"basePath": "basePath is the path to the plugin's assets. The primary asset it the manifest file called `plugin-manifest.json`, which is a JSON document that contains metadata about the plugin and the extensions.",
|
||||
}
|
||||
|
||||
func (ConsolePluginService) SwaggerDoc() map[string]string {
|
||||
return map_ConsolePluginService
|
||||
}
|
||||
|
||||
var map_ConsolePluginSpec = map[string]string{
|
||||
"": "ConsolePluginSpec is the desired plugin configuration.",
|
||||
"displayName": "displayName is the display name of the plugin.",
|
||||
"service": "service is a Kubernetes Service that exposes the plugin using a deployment with an HTTP server. The Service must use HTTPS and Service serving certificate. The console backend will proxy the plugins assets from the Service using the service CA bundle.",
|
||||
"proxy": "proxy is a list of proxies that describe various service type to which the plugin needs to connect to.",
|
||||
}
|
||||
|
||||
func (ConsolePluginSpec) SwaggerDoc() map[string]string {
|
||||
return map_ConsolePluginSpec
|
||||
}
|
||||
|
||||
// AUTO-GENERATED FUNCTIONS END HERE
|
114
vendor/github.com/openshift/client-go/console/clientset/versioned/clientset.go
сгенерированный
поставляемый
114
vendor/github.com/openshift/client-go/console/clientset/versioned/clientset.go
сгенерированный
поставляемый
|
@ -1,114 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package versioned
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
consolev1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1"
|
||||
consolev1alpha1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1"
|
||||
discovery "k8s.io/client-go/discovery"
|
||||
rest "k8s.io/client-go/rest"
|
||||
flowcontrol "k8s.io/client-go/util/flowcontrol"
|
||||
)
|
||||
|
||||
type Interface interface {
|
||||
Discovery() discovery.DiscoveryInterface
|
||||
ConsoleV1() consolev1.ConsoleV1Interface
|
||||
ConsoleV1alpha1() consolev1alpha1.ConsoleV1alpha1Interface
|
||||
}
|
||||
|
||||
// Clientset contains the clients for groups. Each group has exactly one
|
||||
// version included in a Clientset.
|
||||
type Clientset struct {
|
||||
*discovery.DiscoveryClient
|
||||
consoleV1 *consolev1.ConsoleV1Client
|
||||
consoleV1alpha1 *consolev1alpha1.ConsoleV1alpha1Client
|
||||
}
|
||||
|
||||
// ConsoleV1 retrieves the ConsoleV1Client
|
||||
func (c *Clientset) ConsoleV1() consolev1.ConsoleV1Interface {
|
||||
return c.consoleV1
|
||||
}
|
||||
|
||||
// ConsoleV1alpha1 retrieves the ConsoleV1alpha1Client
|
||||
func (c *Clientset) ConsoleV1alpha1() consolev1alpha1.ConsoleV1alpha1Interface {
|
||||
return c.consoleV1alpha1
|
||||
}
|
||||
|
||||
// Discovery retrieves the DiscoveryClient
|
||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
||||
if c == nil {
|
||||
return nil
|
||||
}
|
||||
return c.DiscoveryClient
|
||||
}
|
||||
|
||||
// NewForConfig creates a new Clientset for the given config.
|
||||
// If config's RateLimiter is not set and QPS and Burst are acceptable,
|
||||
// NewForConfig will generate a rate-limiter in configShallowCopy.
|
||||
// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
|
||||
// where httpClient was generated with rest.HTTPClientFor(c).
|
||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||
configShallowCopy := *c
|
||||
|
||||
// share the transport between all clients
|
||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return NewForConfigAndClient(&configShallowCopy, httpClient)
|
||||
}
|
||||
|
||||
// NewForConfigAndClient creates a new Clientset for the given config and http client.
|
||||
// Note the http client provided takes precedence over the configured transport values.
|
||||
// If config's RateLimiter is not set and QPS and Burst are acceptable,
|
||||
// NewForConfigAndClient will generate a rate-limiter in configShallowCopy.
|
||||
func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, error) {
|
||||
configShallowCopy := *c
|
||||
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
|
||||
if configShallowCopy.Burst <= 0 {
|
||||
return nil, fmt.Errorf("burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0")
|
||||
}
|
||||
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
|
||||
}
|
||||
|
||||
var cs Clientset
|
||||
var err error
|
||||
cs.consoleV1, err = consolev1.NewForConfigAndClient(&configShallowCopy, httpClient)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cs.consoleV1alpha1, err = consolev1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfigAndClient(&configShallowCopy, httpClient)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &cs, nil
|
||||
}
|
||||
|
||||
// NewForConfigOrDie creates a new Clientset for the given config and
|
||||
// panics if there is an error in the config.
|
||||
func NewForConfigOrDie(c *rest.Config) *Clientset {
|
||||
cs, err := NewForConfig(c)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return cs
|
||||
}
|
||||
|
||||
// New creates a new Clientset for the given RESTClient.
|
||||
func New(c rest.Interface) *Clientset {
|
||||
var cs Clientset
|
||||
cs.consoleV1 = consolev1.New(c)
|
||||
cs.consoleV1alpha1 = consolev1alpha1.New(c)
|
||||
|
||||
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
||||
return &cs
|
||||
}
|
4
vendor/github.com/openshift/client-go/console/clientset/versioned/doc.go
сгенерированный
поставляемый
4
vendor/github.com/openshift/client-go/console/clientset/versioned/doc.go
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
// This package has the automatically generated clientset.
|
||||
package versioned
|
76
vendor/github.com/openshift/client-go/console/clientset/versioned/fake/clientset_generated.go
сгенерированный
поставляемый
76
vendor/github.com/openshift/client-go/console/clientset/versioned/fake/clientset_generated.go
сгенерированный
поставляемый
|
@ -1,76 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
clientset "github.com/openshift/client-go/console/clientset/versioned"
|
||||
consolev1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1"
|
||||
fakeconsolev1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake"
|
||||
consolev1alpha1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1"
|
||||
fakeconsolev1alpha1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/fake"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/watch"
|
||||
"k8s.io/client-go/discovery"
|
||||
fakediscovery "k8s.io/client-go/discovery/fake"
|
||||
"k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// NewSimpleClientset returns a clientset that will respond with the provided objects.
|
||||
// It's backed by a very simple object tracker that processes creates, updates and deletions as-is,
|
||||
// without applying any validations and/or defaults. It shouldn't be considered a replacement
|
||||
// for a real clientset and is mostly useful in simple unit tests.
|
||||
func NewSimpleClientset(objects ...runtime.Object) *Clientset {
|
||||
o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder())
|
||||
for _, obj := range objects {
|
||||
if err := o.Add(obj); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
cs := &Clientset{tracker: o}
|
||||
cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake}
|
||||
cs.AddReactor("*", "*", testing.ObjectReaction(o))
|
||||
cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) {
|
||||
gvr := action.GetResource()
|
||||
ns := action.GetNamespace()
|
||||
watch, err := o.Watch(gvr, ns)
|
||||
if err != nil {
|
||||
return false, nil, err
|
||||
}
|
||||
return true, watch, nil
|
||||
})
|
||||
|
||||
return cs
|
||||
}
|
||||
|
||||
// Clientset implements clientset.Interface. Meant to be embedded into a
|
||||
// struct to get a default implementation. This makes faking out just the method
|
||||
// you want to test easier.
|
||||
type Clientset struct {
|
||||
testing.Fake
|
||||
discovery *fakediscovery.FakeDiscovery
|
||||
tracker testing.ObjectTracker
|
||||
}
|
||||
|
||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
||||
return c.discovery
|
||||
}
|
||||
|
||||
func (c *Clientset) Tracker() testing.ObjectTracker {
|
||||
return c.tracker
|
||||
}
|
||||
|
||||
var (
|
||||
_ clientset.Interface = &Clientset{}
|
||||
_ testing.FakeClient = &Clientset{}
|
||||
)
|
||||
|
||||
// ConsoleV1 retrieves the ConsoleV1Client
|
||||
func (c *Clientset) ConsoleV1() consolev1.ConsoleV1Interface {
|
||||
return &fakeconsolev1.FakeConsoleV1{Fake: &c.Fake}
|
||||
}
|
||||
|
||||
// ConsoleV1alpha1 retrieves the ConsoleV1alpha1Client
|
||||
func (c *Clientset) ConsoleV1alpha1() consolev1alpha1.ConsoleV1alpha1Interface {
|
||||
return &fakeconsolev1alpha1.FakeConsoleV1alpha1{Fake: &c.Fake}
|
||||
}
|
4
vendor/github.com/openshift/client-go/console/clientset/versioned/fake/doc.go
сгенерированный
поставляемый
4
vendor/github.com/openshift/client-go/console/clientset/versioned/fake/doc.go
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
// This package has the automatically generated fake clientset.
|
||||
package fake
|
42
vendor/github.com/openshift/client-go/console/clientset/versioned/fake/register.go
сгенерированный
поставляемый
42
vendor/github.com/openshift/client-go/console/clientset/versioned/fake/register.go
сгенерированный
поставляемый
|
@ -1,42 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
consolev1 "github.com/openshift/api/console/v1"
|
||||
consolev1alpha1 "github.com/openshift/api/console/v1alpha1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
|
||||
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
|
||||
)
|
||||
|
||||
var scheme = runtime.NewScheme()
|
||||
var codecs = serializer.NewCodecFactory(scheme)
|
||||
|
||||
var localSchemeBuilder = runtime.SchemeBuilder{
|
||||
consolev1.AddToScheme,
|
||||
consolev1alpha1.AddToScheme,
|
||||
}
|
||||
|
||||
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
||||
// of clientsets, like in:
|
||||
//
|
||||
// import (
|
||||
// "k8s.io/client-go/kubernetes"
|
||||
// clientsetscheme "k8s.io/client-go/kubernetes/scheme"
|
||||
// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
|
||||
// )
|
||||
//
|
||||
// kclientset, _ := kubernetes.NewForConfig(c)
|
||||
// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
|
||||
//
|
||||
// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
|
||||
// correctly.
|
||||
var AddToScheme = localSchemeBuilder.AddToScheme
|
||||
|
||||
func init() {
|
||||
v1.AddToGroupVersion(scheme, schema.GroupVersion{Version: "v1"})
|
||||
utilruntime.Must(AddToScheme(scheme))
|
||||
}
|
4
vendor/github.com/openshift/client-go/console/clientset/versioned/scheme/doc.go
сгенерированный
поставляемый
4
vendor/github.com/openshift/client-go/console/clientset/versioned/scheme/doc.go
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
// This package contains the scheme of the automatically generated clientset.
|
||||
package scheme
|
42
vendor/github.com/openshift/client-go/console/clientset/versioned/scheme/register.go
сгенерированный
поставляемый
42
vendor/github.com/openshift/client-go/console/clientset/versioned/scheme/register.go
сгенерированный
поставляемый
|
@ -1,42 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package scheme
|
||||
|
||||
import (
|
||||
consolev1 "github.com/openshift/api/console/v1"
|
||||
consolev1alpha1 "github.com/openshift/api/console/v1alpha1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
|
||||
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
|
||||
)
|
||||
|
||||
var Scheme = runtime.NewScheme()
|
||||
var Codecs = serializer.NewCodecFactory(Scheme)
|
||||
var ParameterCodec = runtime.NewParameterCodec(Scheme)
|
||||
var localSchemeBuilder = runtime.SchemeBuilder{
|
||||
consolev1.AddToScheme,
|
||||
consolev1alpha1.AddToScheme,
|
||||
}
|
||||
|
||||
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
||||
// of clientsets, like in:
|
||||
//
|
||||
// import (
|
||||
// "k8s.io/client-go/kubernetes"
|
||||
// clientsetscheme "k8s.io/client-go/kubernetes/scheme"
|
||||
// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
|
||||
// )
|
||||
//
|
||||
// kclientset, _ := kubernetes.NewForConfig(c)
|
||||
// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
|
||||
//
|
||||
// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
|
||||
// correctly.
|
||||
var AddToScheme = localSchemeBuilder.AddToScheme
|
||||
|
||||
func init() {
|
||||
v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"})
|
||||
utilruntime.Must(AddToScheme(Scheme))
|
||||
}
|
116
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/console_client.go
сгенерированный
поставляемый
116
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/console_client.go
сгенерированный
поставляемый
|
@ -1,116 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
v1 "github.com/openshift/api/console/v1"
|
||||
"github.com/openshift/client-go/console/clientset/versioned/scheme"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
type ConsoleV1Interface interface {
|
||||
RESTClient() rest.Interface
|
||||
ConsoleCLIDownloadsGetter
|
||||
ConsoleExternalLogLinksGetter
|
||||
ConsoleLinksGetter
|
||||
ConsoleNotificationsGetter
|
||||
ConsoleQuickStartsGetter
|
||||
ConsoleYAMLSamplesGetter
|
||||
}
|
||||
|
||||
// ConsoleV1Client is used to interact with features provided by the console.openshift.io group.
|
||||
type ConsoleV1Client struct {
|
||||
restClient rest.Interface
|
||||
}
|
||||
|
||||
func (c *ConsoleV1Client) ConsoleCLIDownloads() ConsoleCLIDownloadInterface {
|
||||
return newConsoleCLIDownloads(c)
|
||||
}
|
||||
|
||||
func (c *ConsoleV1Client) ConsoleExternalLogLinks() ConsoleExternalLogLinkInterface {
|
||||
return newConsoleExternalLogLinks(c)
|
||||
}
|
||||
|
||||
func (c *ConsoleV1Client) ConsoleLinks() ConsoleLinkInterface {
|
||||
return newConsoleLinks(c)
|
||||
}
|
||||
|
||||
func (c *ConsoleV1Client) ConsoleNotifications() ConsoleNotificationInterface {
|
||||
return newConsoleNotifications(c)
|
||||
}
|
||||
|
||||
func (c *ConsoleV1Client) ConsoleQuickStarts() ConsoleQuickStartInterface {
|
||||
return newConsoleQuickStarts(c)
|
||||
}
|
||||
|
||||
func (c *ConsoleV1Client) ConsoleYAMLSamples() ConsoleYAMLSampleInterface {
|
||||
return newConsoleYAMLSamples(c)
|
||||
}
|
||||
|
||||
// NewForConfig creates a new ConsoleV1Client for the given config.
|
||||
// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
|
||||
// where httpClient was generated with rest.HTTPClientFor(c).
|
||||
func NewForConfig(c *rest.Config) (*ConsoleV1Client, error) {
|
||||
config := *c
|
||||
if err := setConfigDefaults(&config); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
httpClient, err := rest.HTTPClientFor(&config)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return NewForConfigAndClient(&config, httpClient)
|
||||
}
|
||||
|
||||
// NewForConfigAndClient creates a new ConsoleV1Client for the given config and http client.
|
||||
// Note the http client provided takes precedence over the configured transport values.
|
||||
func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ConsoleV1Client, error) {
|
||||
config := *c
|
||||
if err := setConfigDefaults(&config); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
client, err := rest.RESTClientForConfigAndClient(&config, h)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &ConsoleV1Client{client}, nil
|
||||
}
|
||||
|
||||
// NewForConfigOrDie creates a new ConsoleV1Client for the given config and
|
||||
// panics if there is an error in the config.
|
||||
func NewForConfigOrDie(c *rest.Config) *ConsoleV1Client {
|
||||
client, err := NewForConfig(c)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return client
|
||||
}
|
||||
|
||||
// New creates a new ConsoleV1Client for the given RESTClient.
|
||||
func New(c rest.Interface) *ConsoleV1Client {
|
||||
return &ConsoleV1Client{c}
|
||||
}
|
||||
|
||||
func setConfigDefaults(config *rest.Config) error {
|
||||
gv := v1.SchemeGroupVersion
|
||||
config.GroupVersion = &gv
|
||||
config.APIPath = "/apis"
|
||||
config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
|
||||
|
||||
if config.UserAgent == "" {
|
||||
config.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// RESTClient returns a RESTClient that is used to communicate
|
||||
// with API server by this client implementation.
|
||||
func (c *ConsoleV1Client) RESTClient() rest.Interface {
|
||||
if c == nil {
|
||||
return nil
|
||||
}
|
||||
return c.restClient
|
||||
}
|
152
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/consoleclidownload.go
сгенерированный
поставляемый
152
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/consoleclidownload.go
сгенерированный
поставляемый
|
@ -1,152 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/api/console/v1"
|
||||
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ConsoleCLIDownloadsGetter has a method to return a ConsoleCLIDownloadInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ConsoleCLIDownloadsGetter interface {
|
||||
ConsoleCLIDownloads() ConsoleCLIDownloadInterface
|
||||
}
|
||||
|
||||
// ConsoleCLIDownloadInterface has methods to work with ConsoleCLIDownload resources.
|
||||
type ConsoleCLIDownloadInterface interface {
|
||||
Create(ctx context.Context, consoleCLIDownload *v1.ConsoleCLIDownload, opts metav1.CreateOptions) (*v1.ConsoleCLIDownload, error)
|
||||
Update(ctx context.Context, consoleCLIDownload *v1.ConsoleCLIDownload, opts metav1.UpdateOptions) (*v1.ConsoleCLIDownload, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConsoleCLIDownload, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleCLIDownloadList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleCLIDownload, err error)
|
||||
ConsoleCLIDownloadExpansion
|
||||
}
|
||||
|
||||
// consoleCLIDownloads implements ConsoleCLIDownloadInterface
|
||||
type consoleCLIDownloads struct {
|
||||
client rest.Interface
|
||||
}
|
||||
|
||||
// newConsoleCLIDownloads returns a ConsoleCLIDownloads
|
||||
func newConsoleCLIDownloads(c *ConsoleV1Client) *consoleCLIDownloads {
|
||||
return &consoleCLIDownloads{
|
||||
client: c.RESTClient(),
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the consoleCLIDownload, and returns the corresponding consoleCLIDownload object, and an error if there is any.
|
||||
func (c *consoleCLIDownloads) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConsoleCLIDownload, err error) {
|
||||
result = &v1.ConsoleCLIDownload{}
|
||||
err = c.client.Get().
|
||||
Resource("consoleclidownloads").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ConsoleCLIDownloads that match those selectors.
|
||||
func (c *consoleCLIDownloads) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleCLIDownloadList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.ConsoleCLIDownloadList{}
|
||||
err = c.client.Get().
|
||||
Resource("consoleclidownloads").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested consoleCLIDownloads.
|
||||
func (c *consoleCLIDownloads) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Resource("consoleclidownloads").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a consoleCLIDownload and creates it. Returns the server's representation of the consoleCLIDownload, and an error, if there is any.
|
||||
func (c *consoleCLIDownloads) Create(ctx context.Context, consoleCLIDownload *v1.ConsoleCLIDownload, opts metav1.CreateOptions) (result *v1.ConsoleCLIDownload, err error) {
|
||||
result = &v1.ConsoleCLIDownload{}
|
||||
err = c.client.Post().
|
||||
Resource("consoleclidownloads").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(consoleCLIDownload).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a consoleCLIDownload and updates it. Returns the server's representation of the consoleCLIDownload, and an error, if there is any.
|
||||
func (c *consoleCLIDownloads) Update(ctx context.Context, consoleCLIDownload *v1.ConsoleCLIDownload, opts metav1.UpdateOptions) (result *v1.ConsoleCLIDownload, err error) {
|
||||
result = &v1.ConsoleCLIDownload{}
|
||||
err = c.client.Put().
|
||||
Resource("consoleclidownloads").
|
||||
Name(consoleCLIDownload.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(consoleCLIDownload).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the consoleCLIDownload and deletes it. Returns an error if one occurs.
|
||||
func (c *consoleCLIDownloads) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Resource("consoleclidownloads").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *consoleCLIDownloads) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Resource("consoleclidownloads").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched consoleCLIDownload.
|
||||
func (c *consoleCLIDownloads) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleCLIDownload, err error) {
|
||||
result = &v1.ConsoleCLIDownload{}
|
||||
err = c.client.Patch(pt).
|
||||
Resource("consoleclidownloads").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
152
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/consoleexternalloglink.go
сгенерированный
поставляемый
152
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/consoleexternalloglink.go
сгенерированный
поставляемый
|
@ -1,152 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/api/console/v1"
|
||||
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ConsoleExternalLogLinksGetter has a method to return a ConsoleExternalLogLinkInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ConsoleExternalLogLinksGetter interface {
|
||||
ConsoleExternalLogLinks() ConsoleExternalLogLinkInterface
|
||||
}
|
||||
|
||||
// ConsoleExternalLogLinkInterface has methods to work with ConsoleExternalLogLink resources.
|
||||
type ConsoleExternalLogLinkInterface interface {
|
||||
Create(ctx context.Context, consoleExternalLogLink *v1.ConsoleExternalLogLink, opts metav1.CreateOptions) (*v1.ConsoleExternalLogLink, error)
|
||||
Update(ctx context.Context, consoleExternalLogLink *v1.ConsoleExternalLogLink, opts metav1.UpdateOptions) (*v1.ConsoleExternalLogLink, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConsoleExternalLogLink, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleExternalLogLinkList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleExternalLogLink, err error)
|
||||
ConsoleExternalLogLinkExpansion
|
||||
}
|
||||
|
||||
// consoleExternalLogLinks implements ConsoleExternalLogLinkInterface
|
||||
type consoleExternalLogLinks struct {
|
||||
client rest.Interface
|
||||
}
|
||||
|
||||
// newConsoleExternalLogLinks returns a ConsoleExternalLogLinks
|
||||
func newConsoleExternalLogLinks(c *ConsoleV1Client) *consoleExternalLogLinks {
|
||||
return &consoleExternalLogLinks{
|
||||
client: c.RESTClient(),
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the consoleExternalLogLink, and returns the corresponding consoleExternalLogLink object, and an error if there is any.
|
||||
func (c *consoleExternalLogLinks) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConsoleExternalLogLink, err error) {
|
||||
result = &v1.ConsoleExternalLogLink{}
|
||||
err = c.client.Get().
|
||||
Resource("consoleexternalloglinks").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ConsoleExternalLogLinks that match those selectors.
|
||||
func (c *consoleExternalLogLinks) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleExternalLogLinkList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.ConsoleExternalLogLinkList{}
|
||||
err = c.client.Get().
|
||||
Resource("consoleexternalloglinks").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested consoleExternalLogLinks.
|
||||
func (c *consoleExternalLogLinks) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Resource("consoleexternalloglinks").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a consoleExternalLogLink and creates it. Returns the server's representation of the consoleExternalLogLink, and an error, if there is any.
|
||||
func (c *consoleExternalLogLinks) Create(ctx context.Context, consoleExternalLogLink *v1.ConsoleExternalLogLink, opts metav1.CreateOptions) (result *v1.ConsoleExternalLogLink, err error) {
|
||||
result = &v1.ConsoleExternalLogLink{}
|
||||
err = c.client.Post().
|
||||
Resource("consoleexternalloglinks").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(consoleExternalLogLink).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a consoleExternalLogLink and updates it. Returns the server's representation of the consoleExternalLogLink, and an error, if there is any.
|
||||
func (c *consoleExternalLogLinks) Update(ctx context.Context, consoleExternalLogLink *v1.ConsoleExternalLogLink, opts metav1.UpdateOptions) (result *v1.ConsoleExternalLogLink, err error) {
|
||||
result = &v1.ConsoleExternalLogLink{}
|
||||
err = c.client.Put().
|
||||
Resource("consoleexternalloglinks").
|
||||
Name(consoleExternalLogLink.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(consoleExternalLogLink).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the consoleExternalLogLink and deletes it. Returns an error if one occurs.
|
||||
func (c *consoleExternalLogLinks) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Resource("consoleexternalloglinks").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *consoleExternalLogLinks) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Resource("consoleexternalloglinks").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched consoleExternalLogLink.
|
||||
func (c *consoleExternalLogLinks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleExternalLogLink, err error) {
|
||||
result = &v1.ConsoleExternalLogLink{}
|
||||
err = c.client.Patch(pt).
|
||||
Resource("consoleexternalloglinks").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
152
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/consolelink.go
сгенерированный
поставляемый
152
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/consolelink.go
сгенерированный
поставляемый
|
@ -1,152 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/api/console/v1"
|
||||
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ConsoleLinksGetter has a method to return a ConsoleLinkInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ConsoleLinksGetter interface {
|
||||
ConsoleLinks() ConsoleLinkInterface
|
||||
}
|
||||
|
||||
// ConsoleLinkInterface has methods to work with ConsoleLink resources.
|
||||
type ConsoleLinkInterface interface {
|
||||
Create(ctx context.Context, consoleLink *v1.ConsoleLink, opts metav1.CreateOptions) (*v1.ConsoleLink, error)
|
||||
Update(ctx context.Context, consoleLink *v1.ConsoleLink, opts metav1.UpdateOptions) (*v1.ConsoleLink, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConsoleLink, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleLinkList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleLink, err error)
|
||||
ConsoleLinkExpansion
|
||||
}
|
||||
|
||||
// consoleLinks implements ConsoleLinkInterface
|
||||
type consoleLinks struct {
|
||||
client rest.Interface
|
||||
}
|
||||
|
||||
// newConsoleLinks returns a ConsoleLinks
|
||||
func newConsoleLinks(c *ConsoleV1Client) *consoleLinks {
|
||||
return &consoleLinks{
|
||||
client: c.RESTClient(),
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the consoleLink, and returns the corresponding consoleLink object, and an error if there is any.
|
||||
func (c *consoleLinks) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConsoleLink, err error) {
|
||||
result = &v1.ConsoleLink{}
|
||||
err = c.client.Get().
|
||||
Resource("consolelinks").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ConsoleLinks that match those selectors.
|
||||
func (c *consoleLinks) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleLinkList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.ConsoleLinkList{}
|
||||
err = c.client.Get().
|
||||
Resource("consolelinks").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested consoleLinks.
|
||||
func (c *consoleLinks) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Resource("consolelinks").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a consoleLink and creates it. Returns the server's representation of the consoleLink, and an error, if there is any.
|
||||
func (c *consoleLinks) Create(ctx context.Context, consoleLink *v1.ConsoleLink, opts metav1.CreateOptions) (result *v1.ConsoleLink, err error) {
|
||||
result = &v1.ConsoleLink{}
|
||||
err = c.client.Post().
|
||||
Resource("consolelinks").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(consoleLink).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a consoleLink and updates it. Returns the server's representation of the consoleLink, and an error, if there is any.
|
||||
func (c *consoleLinks) Update(ctx context.Context, consoleLink *v1.ConsoleLink, opts metav1.UpdateOptions) (result *v1.ConsoleLink, err error) {
|
||||
result = &v1.ConsoleLink{}
|
||||
err = c.client.Put().
|
||||
Resource("consolelinks").
|
||||
Name(consoleLink.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(consoleLink).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the consoleLink and deletes it. Returns an error if one occurs.
|
||||
func (c *consoleLinks) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Resource("consolelinks").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *consoleLinks) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Resource("consolelinks").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched consoleLink.
|
||||
func (c *consoleLinks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleLink, err error) {
|
||||
result = &v1.ConsoleLink{}
|
||||
err = c.client.Patch(pt).
|
||||
Resource("consolelinks").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
152
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/consolenotification.go
сгенерированный
поставляемый
152
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/consolenotification.go
сгенерированный
поставляемый
|
@ -1,152 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/api/console/v1"
|
||||
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ConsoleNotificationsGetter has a method to return a ConsoleNotificationInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ConsoleNotificationsGetter interface {
|
||||
ConsoleNotifications() ConsoleNotificationInterface
|
||||
}
|
||||
|
||||
// ConsoleNotificationInterface has methods to work with ConsoleNotification resources.
|
||||
type ConsoleNotificationInterface interface {
|
||||
Create(ctx context.Context, consoleNotification *v1.ConsoleNotification, opts metav1.CreateOptions) (*v1.ConsoleNotification, error)
|
||||
Update(ctx context.Context, consoleNotification *v1.ConsoleNotification, opts metav1.UpdateOptions) (*v1.ConsoleNotification, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConsoleNotification, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleNotificationList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleNotification, err error)
|
||||
ConsoleNotificationExpansion
|
||||
}
|
||||
|
||||
// consoleNotifications implements ConsoleNotificationInterface
|
||||
type consoleNotifications struct {
|
||||
client rest.Interface
|
||||
}
|
||||
|
||||
// newConsoleNotifications returns a ConsoleNotifications
|
||||
func newConsoleNotifications(c *ConsoleV1Client) *consoleNotifications {
|
||||
return &consoleNotifications{
|
||||
client: c.RESTClient(),
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the consoleNotification, and returns the corresponding consoleNotification object, and an error if there is any.
|
||||
func (c *consoleNotifications) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConsoleNotification, err error) {
|
||||
result = &v1.ConsoleNotification{}
|
||||
err = c.client.Get().
|
||||
Resource("consolenotifications").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ConsoleNotifications that match those selectors.
|
||||
func (c *consoleNotifications) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleNotificationList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.ConsoleNotificationList{}
|
||||
err = c.client.Get().
|
||||
Resource("consolenotifications").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested consoleNotifications.
|
||||
func (c *consoleNotifications) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Resource("consolenotifications").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a consoleNotification and creates it. Returns the server's representation of the consoleNotification, and an error, if there is any.
|
||||
func (c *consoleNotifications) Create(ctx context.Context, consoleNotification *v1.ConsoleNotification, opts metav1.CreateOptions) (result *v1.ConsoleNotification, err error) {
|
||||
result = &v1.ConsoleNotification{}
|
||||
err = c.client.Post().
|
||||
Resource("consolenotifications").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(consoleNotification).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a consoleNotification and updates it. Returns the server's representation of the consoleNotification, and an error, if there is any.
|
||||
func (c *consoleNotifications) Update(ctx context.Context, consoleNotification *v1.ConsoleNotification, opts metav1.UpdateOptions) (result *v1.ConsoleNotification, err error) {
|
||||
result = &v1.ConsoleNotification{}
|
||||
err = c.client.Put().
|
||||
Resource("consolenotifications").
|
||||
Name(consoleNotification.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(consoleNotification).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the consoleNotification and deletes it. Returns an error if one occurs.
|
||||
func (c *consoleNotifications) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Resource("consolenotifications").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *consoleNotifications) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Resource("consolenotifications").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched consoleNotification.
|
||||
func (c *consoleNotifications) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleNotification, err error) {
|
||||
result = &v1.ConsoleNotification{}
|
||||
err = c.client.Patch(pt).
|
||||
Resource("consolenotifications").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
152
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/consolequickstart.go
сгенерированный
поставляемый
152
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/consolequickstart.go
сгенерированный
поставляемый
|
@ -1,152 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/api/console/v1"
|
||||
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ConsoleQuickStartsGetter has a method to return a ConsoleQuickStartInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ConsoleQuickStartsGetter interface {
|
||||
ConsoleQuickStarts() ConsoleQuickStartInterface
|
||||
}
|
||||
|
||||
// ConsoleQuickStartInterface has methods to work with ConsoleQuickStart resources.
|
||||
type ConsoleQuickStartInterface interface {
|
||||
Create(ctx context.Context, consoleQuickStart *v1.ConsoleQuickStart, opts metav1.CreateOptions) (*v1.ConsoleQuickStart, error)
|
||||
Update(ctx context.Context, consoleQuickStart *v1.ConsoleQuickStart, opts metav1.UpdateOptions) (*v1.ConsoleQuickStart, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConsoleQuickStart, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleQuickStartList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleQuickStart, err error)
|
||||
ConsoleQuickStartExpansion
|
||||
}
|
||||
|
||||
// consoleQuickStarts implements ConsoleQuickStartInterface
|
||||
type consoleQuickStarts struct {
|
||||
client rest.Interface
|
||||
}
|
||||
|
||||
// newConsoleQuickStarts returns a ConsoleQuickStarts
|
||||
func newConsoleQuickStarts(c *ConsoleV1Client) *consoleQuickStarts {
|
||||
return &consoleQuickStarts{
|
||||
client: c.RESTClient(),
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the consoleQuickStart, and returns the corresponding consoleQuickStart object, and an error if there is any.
|
||||
func (c *consoleQuickStarts) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConsoleQuickStart, err error) {
|
||||
result = &v1.ConsoleQuickStart{}
|
||||
err = c.client.Get().
|
||||
Resource("consolequickstarts").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ConsoleQuickStarts that match those selectors.
|
||||
func (c *consoleQuickStarts) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleQuickStartList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.ConsoleQuickStartList{}
|
||||
err = c.client.Get().
|
||||
Resource("consolequickstarts").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested consoleQuickStarts.
|
||||
func (c *consoleQuickStarts) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Resource("consolequickstarts").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a consoleQuickStart and creates it. Returns the server's representation of the consoleQuickStart, and an error, if there is any.
|
||||
func (c *consoleQuickStarts) Create(ctx context.Context, consoleQuickStart *v1.ConsoleQuickStart, opts metav1.CreateOptions) (result *v1.ConsoleQuickStart, err error) {
|
||||
result = &v1.ConsoleQuickStart{}
|
||||
err = c.client.Post().
|
||||
Resource("consolequickstarts").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(consoleQuickStart).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a consoleQuickStart and updates it. Returns the server's representation of the consoleQuickStart, and an error, if there is any.
|
||||
func (c *consoleQuickStarts) Update(ctx context.Context, consoleQuickStart *v1.ConsoleQuickStart, opts metav1.UpdateOptions) (result *v1.ConsoleQuickStart, err error) {
|
||||
result = &v1.ConsoleQuickStart{}
|
||||
err = c.client.Put().
|
||||
Resource("consolequickstarts").
|
||||
Name(consoleQuickStart.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(consoleQuickStart).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the consoleQuickStart and deletes it. Returns an error if one occurs.
|
||||
func (c *consoleQuickStarts) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Resource("consolequickstarts").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *consoleQuickStarts) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Resource("consolequickstarts").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched consoleQuickStart.
|
||||
func (c *consoleQuickStarts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleQuickStart, err error) {
|
||||
result = &v1.ConsoleQuickStart{}
|
||||
err = c.client.Patch(pt).
|
||||
Resource("consolequickstarts").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
152
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/consoleyamlsample.go
сгенерированный
поставляемый
152
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/consoleyamlsample.go
сгенерированный
поставляемый
|
@ -1,152 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/api/console/v1"
|
||||
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ConsoleYAMLSamplesGetter has a method to return a ConsoleYAMLSampleInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ConsoleYAMLSamplesGetter interface {
|
||||
ConsoleYAMLSamples() ConsoleYAMLSampleInterface
|
||||
}
|
||||
|
||||
// ConsoleYAMLSampleInterface has methods to work with ConsoleYAMLSample resources.
|
||||
type ConsoleYAMLSampleInterface interface {
|
||||
Create(ctx context.Context, consoleYAMLSample *v1.ConsoleYAMLSample, opts metav1.CreateOptions) (*v1.ConsoleYAMLSample, error)
|
||||
Update(ctx context.Context, consoleYAMLSample *v1.ConsoleYAMLSample, opts metav1.UpdateOptions) (*v1.ConsoleYAMLSample, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConsoleYAMLSample, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleYAMLSampleList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleYAMLSample, err error)
|
||||
ConsoleYAMLSampleExpansion
|
||||
}
|
||||
|
||||
// consoleYAMLSamples implements ConsoleYAMLSampleInterface
|
||||
type consoleYAMLSamples struct {
|
||||
client rest.Interface
|
||||
}
|
||||
|
||||
// newConsoleYAMLSamples returns a ConsoleYAMLSamples
|
||||
func newConsoleYAMLSamples(c *ConsoleV1Client) *consoleYAMLSamples {
|
||||
return &consoleYAMLSamples{
|
||||
client: c.RESTClient(),
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the consoleYAMLSample, and returns the corresponding consoleYAMLSample object, and an error if there is any.
|
||||
func (c *consoleYAMLSamples) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConsoleYAMLSample, err error) {
|
||||
result = &v1.ConsoleYAMLSample{}
|
||||
err = c.client.Get().
|
||||
Resource("consoleyamlsamples").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ConsoleYAMLSamples that match those selectors.
|
||||
func (c *consoleYAMLSamples) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleYAMLSampleList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.ConsoleYAMLSampleList{}
|
||||
err = c.client.Get().
|
||||
Resource("consoleyamlsamples").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested consoleYAMLSamples.
|
||||
func (c *consoleYAMLSamples) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Resource("consoleyamlsamples").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a consoleYAMLSample and creates it. Returns the server's representation of the consoleYAMLSample, and an error, if there is any.
|
||||
func (c *consoleYAMLSamples) Create(ctx context.Context, consoleYAMLSample *v1.ConsoleYAMLSample, opts metav1.CreateOptions) (result *v1.ConsoleYAMLSample, err error) {
|
||||
result = &v1.ConsoleYAMLSample{}
|
||||
err = c.client.Post().
|
||||
Resource("consoleyamlsamples").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(consoleYAMLSample).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a consoleYAMLSample and updates it. Returns the server's representation of the consoleYAMLSample, and an error, if there is any.
|
||||
func (c *consoleYAMLSamples) Update(ctx context.Context, consoleYAMLSample *v1.ConsoleYAMLSample, opts metav1.UpdateOptions) (result *v1.ConsoleYAMLSample, err error) {
|
||||
result = &v1.ConsoleYAMLSample{}
|
||||
err = c.client.Put().
|
||||
Resource("consoleyamlsamples").
|
||||
Name(consoleYAMLSample.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(consoleYAMLSample).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the consoleYAMLSample and deletes it. Returns an error if one occurs.
|
||||
func (c *consoleYAMLSamples) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Resource("consoleyamlsamples").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *consoleYAMLSamples) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Resource("consoleyamlsamples").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched consoleYAMLSample.
|
||||
func (c *consoleYAMLSamples) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleYAMLSample, err error) {
|
||||
result = &v1.ConsoleYAMLSample{}
|
||||
err = c.client.Patch(pt).
|
||||
Resource("consoleyamlsamples").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
4
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/doc.go
сгенерированный
поставляемый
4
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/doc.go
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
// This package has the automatically generated typed clients.
|
||||
package v1
|
4
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/doc.go
сгенерированный
поставляемый
4
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/doc.go
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
// Package fake has the automatically generated clients.
|
||||
package fake
|
44
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/fake_console_client.go
сгенерированный
поставляемый
44
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/fake_console_client.go
сгенерированный
поставляемый
|
@ -1,44 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
v1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1"
|
||||
rest "k8s.io/client-go/rest"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
type FakeConsoleV1 struct {
|
||||
*testing.Fake
|
||||
}
|
||||
|
||||
func (c *FakeConsoleV1) ConsoleCLIDownloads() v1.ConsoleCLIDownloadInterface {
|
||||
return &FakeConsoleCLIDownloads{c}
|
||||
}
|
||||
|
||||
func (c *FakeConsoleV1) ConsoleExternalLogLinks() v1.ConsoleExternalLogLinkInterface {
|
||||
return &FakeConsoleExternalLogLinks{c}
|
||||
}
|
||||
|
||||
func (c *FakeConsoleV1) ConsoleLinks() v1.ConsoleLinkInterface {
|
||||
return &FakeConsoleLinks{c}
|
||||
}
|
||||
|
||||
func (c *FakeConsoleV1) ConsoleNotifications() v1.ConsoleNotificationInterface {
|
||||
return &FakeConsoleNotifications{c}
|
||||
}
|
||||
|
||||
func (c *FakeConsoleV1) ConsoleQuickStarts() v1.ConsoleQuickStartInterface {
|
||||
return &FakeConsoleQuickStarts{c}
|
||||
}
|
||||
|
||||
func (c *FakeConsoleV1) ConsoleYAMLSamples() v1.ConsoleYAMLSampleInterface {
|
||||
return &FakeConsoleYAMLSamples{c}
|
||||
}
|
||||
|
||||
// RESTClient returns a RESTClient that is used to communicate
|
||||
// with API server by this client implementation.
|
||||
func (c *FakeConsoleV1) RESTClient() rest.Interface {
|
||||
var ret *rest.RESTClient
|
||||
return ret
|
||||
}
|
106
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/fake_consoleclidownload.go
сгенерированный
поставляемый
106
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/fake_consoleclidownload.go
сгенерированный
поставляемый
|
@ -1,106 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
consolev1 "github.com/openshift/api/console/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeConsoleCLIDownloads implements ConsoleCLIDownloadInterface
|
||||
type FakeConsoleCLIDownloads struct {
|
||||
Fake *FakeConsoleV1
|
||||
}
|
||||
|
||||
var consoleclidownloadsResource = schema.GroupVersionResource{Group: "console.openshift.io", Version: "v1", Resource: "consoleclidownloads"}
|
||||
|
||||
var consoleclidownloadsKind = schema.GroupVersionKind{Group: "console.openshift.io", Version: "v1", Kind: "ConsoleCLIDownload"}
|
||||
|
||||
// Get takes name of the consoleCLIDownload, and returns the corresponding consoleCLIDownload object, and an error if there is any.
|
||||
func (c *FakeConsoleCLIDownloads) Get(ctx context.Context, name string, options v1.GetOptions) (result *consolev1.ConsoleCLIDownload, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootGetAction(consoleclidownloadsResource, name), &consolev1.ConsoleCLIDownload{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleCLIDownload), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ConsoleCLIDownloads that match those selectors.
|
||||
func (c *FakeConsoleCLIDownloads) List(ctx context.Context, opts v1.ListOptions) (result *consolev1.ConsoleCLIDownloadList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootListAction(consoleclidownloadsResource, consoleclidownloadsKind, opts), &consolev1.ConsoleCLIDownloadList{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &consolev1.ConsoleCLIDownloadList{ListMeta: obj.(*consolev1.ConsoleCLIDownloadList).ListMeta}
|
||||
for _, item := range obj.(*consolev1.ConsoleCLIDownloadList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested consoleCLIDownloads.
|
||||
func (c *FakeConsoleCLIDownloads) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewRootWatchAction(consoleclidownloadsResource, opts))
|
||||
}
|
||||
|
||||
// Create takes the representation of a consoleCLIDownload and creates it. Returns the server's representation of the consoleCLIDownload, and an error, if there is any.
|
||||
func (c *FakeConsoleCLIDownloads) Create(ctx context.Context, consoleCLIDownload *consolev1.ConsoleCLIDownload, opts v1.CreateOptions) (result *consolev1.ConsoleCLIDownload, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootCreateAction(consoleclidownloadsResource, consoleCLIDownload), &consolev1.ConsoleCLIDownload{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleCLIDownload), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a consoleCLIDownload and updates it. Returns the server's representation of the consoleCLIDownload, and an error, if there is any.
|
||||
func (c *FakeConsoleCLIDownloads) Update(ctx context.Context, consoleCLIDownload *consolev1.ConsoleCLIDownload, opts v1.UpdateOptions) (result *consolev1.ConsoleCLIDownload, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateAction(consoleclidownloadsResource, consoleCLIDownload), &consolev1.ConsoleCLIDownload{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleCLIDownload), err
|
||||
}
|
||||
|
||||
// Delete takes name of the consoleCLIDownload and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeConsoleCLIDownloads) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewRootDeleteActionWithOptions(consoleclidownloadsResource, name, opts), &consolev1.ConsoleCLIDownload{})
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeConsoleCLIDownloads) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewRootDeleteCollectionAction(consoleclidownloadsResource, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &consolev1.ConsoleCLIDownloadList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched consoleCLIDownload.
|
||||
func (c *FakeConsoleCLIDownloads) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *consolev1.ConsoleCLIDownload, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootPatchSubresourceAction(consoleclidownloadsResource, name, pt, data, subresources...), &consolev1.ConsoleCLIDownload{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleCLIDownload), err
|
||||
}
|
106
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/fake_consoleexternalloglink.go
сгенерированный
поставляемый
106
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/fake_consoleexternalloglink.go
сгенерированный
поставляемый
|
@ -1,106 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
consolev1 "github.com/openshift/api/console/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeConsoleExternalLogLinks implements ConsoleExternalLogLinkInterface
|
||||
type FakeConsoleExternalLogLinks struct {
|
||||
Fake *FakeConsoleV1
|
||||
}
|
||||
|
||||
var consoleexternalloglinksResource = schema.GroupVersionResource{Group: "console.openshift.io", Version: "v1", Resource: "consoleexternalloglinks"}
|
||||
|
||||
var consoleexternalloglinksKind = schema.GroupVersionKind{Group: "console.openshift.io", Version: "v1", Kind: "ConsoleExternalLogLink"}
|
||||
|
||||
// Get takes name of the consoleExternalLogLink, and returns the corresponding consoleExternalLogLink object, and an error if there is any.
|
||||
func (c *FakeConsoleExternalLogLinks) Get(ctx context.Context, name string, options v1.GetOptions) (result *consolev1.ConsoleExternalLogLink, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootGetAction(consoleexternalloglinksResource, name), &consolev1.ConsoleExternalLogLink{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleExternalLogLink), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ConsoleExternalLogLinks that match those selectors.
|
||||
func (c *FakeConsoleExternalLogLinks) List(ctx context.Context, opts v1.ListOptions) (result *consolev1.ConsoleExternalLogLinkList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootListAction(consoleexternalloglinksResource, consoleexternalloglinksKind, opts), &consolev1.ConsoleExternalLogLinkList{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &consolev1.ConsoleExternalLogLinkList{ListMeta: obj.(*consolev1.ConsoleExternalLogLinkList).ListMeta}
|
||||
for _, item := range obj.(*consolev1.ConsoleExternalLogLinkList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested consoleExternalLogLinks.
|
||||
func (c *FakeConsoleExternalLogLinks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewRootWatchAction(consoleexternalloglinksResource, opts))
|
||||
}
|
||||
|
||||
// Create takes the representation of a consoleExternalLogLink and creates it. Returns the server's representation of the consoleExternalLogLink, and an error, if there is any.
|
||||
func (c *FakeConsoleExternalLogLinks) Create(ctx context.Context, consoleExternalLogLink *consolev1.ConsoleExternalLogLink, opts v1.CreateOptions) (result *consolev1.ConsoleExternalLogLink, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootCreateAction(consoleexternalloglinksResource, consoleExternalLogLink), &consolev1.ConsoleExternalLogLink{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleExternalLogLink), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a consoleExternalLogLink and updates it. Returns the server's representation of the consoleExternalLogLink, and an error, if there is any.
|
||||
func (c *FakeConsoleExternalLogLinks) Update(ctx context.Context, consoleExternalLogLink *consolev1.ConsoleExternalLogLink, opts v1.UpdateOptions) (result *consolev1.ConsoleExternalLogLink, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateAction(consoleexternalloglinksResource, consoleExternalLogLink), &consolev1.ConsoleExternalLogLink{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleExternalLogLink), err
|
||||
}
|
||||
|
||||
// Delete takes name of the consoleExternalLogLink and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeConsoleExternalLogLinks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewRootDeleteActionWithOptions(consoleexternalloglinksResource, name, opts), &consolev1.ConsoleExternalLogLink{})
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeConsoleExternalLogLinks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewRootDeleteCollectionAction(consoleexternalloglinksResource, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &consolev1.ConsoleExternalLogLinkList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched consoleExternalLogLink.
|
||||
func (c *FakeConsoleExternalLogLinks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *consolev1.ConsoleExternalLogLink, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootPatchSubresourceAction(consoleexternalloglinksResource, name, pt, data, subresources...), &consolev1.ConsoleExternalLogLink{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleExternalLogLink), err
|
||||
}
|
106
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/fake_consolelink.go
сгенерированный
поставляемый
106
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/fake_consolelink.go
сгенерированный
поставляемый
|
@ -1,106 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
consolev1 "github.com/openshift/api/console/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeConsoleLinks implements ConsoleLinkInterface
|
||||
type FakeConsoleLinks struct {
|
||||
Fake *FakeConsoleV1
|
||||
}
|
||||
|
||||
var consolelinksResource = schema.GroupVersionResource{Group: "console.openshift.io", Version: "v1", Resource: "consolelinks"}
|
||||
|
||||
var consolelinksKind = schema.GroupVersionKind{Group: "console.openshift.io", Version: "v1", Kind: "ConsoleLink"}
|
||||
|
||||
// Get takes name of the consoleLink, and returns the corresponding consoleLink object, and an error if there is any.
|
||||
func (c *FakeConsoleLinks) Get(ctx context.Context, name string, options v1.GetOptions) (result *consolev1.ConsoleLink, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootGetAction(consolelinksResource, name), &consolev1.ConsoleLink{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleLink), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ConsoleLinks that match those selectors.
|
||||
func (c *FakeConsoleLinks) List(ctx context.Context, opts v1.ListOptions) (result *consolev1.ConsoleLinkList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootListAction(consolelinksResource, consolelinksKind, opts), &consolev1.ConsoleLinkList{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &consolev1.ConsoleLinkList{ListMeta: obj.(*consolev1.ConsoleLinkList).ListMeta}
|
||||
for _, item := range obj.(*consolev1.ConsoleLinkList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested consoleLinks.
|
||||
func (c *FakeConsoleLinks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewRootWatchAction(consolelinksResource, opts))
|
||||
}
|
||||
|
||||
// Create takes the representation of a consoleLink and creates it. Returns the server's representation of the consoleLink, and an error, if there is any.
|
||||
func (c *FakeConsoleLinks) Create(ctx context.Context, consoleLink *consolev1.ConsoleLink, opts v1.CreateOptions) (result *consolev1.ConsoleLink, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootCreateAction(consolelinksResource, consoleLink), &consolev1.ConsoleLink{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleLink), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a consoleLink and updates it. Returns the server's representation of the consoleLink, and an error, if there is any.
|
||||
func (c *FakeConsoleLinks) Update(ctx context.Context, consoleLink *consolev1.ConsoleLink, opts v1.UpdateOptions) (result *consolev1.ConsoleLink, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateAction(consolelinksResource, consoleLink), &consolev1.ConsoleLink{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleLink), err
|
||||
}
|
||||
|
||||
// Delete takes name of the consoleLink and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeConsoleLinks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewRootDeleteActionWithOptions(consolelinksResource, name, opts), &consolev1.ConsoleLink{})
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeConsoleLinks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewRootDeleteCollectionAction(consolelinksResource, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &consolev1.ConsoleLinkList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched consoleLink.
|
||||
func (c *FakeConsoleLinks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *consolev1.ConsoleLink, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootPatchSubresourceAction(consolelinksResource, name, pt, data, subresources...), &consolev1.ConsoleLink{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleLink), err
|
||||
}
|
106
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/fake_consolenotification.go
сгенерированный
поставляемый
106
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/fake_consolenotification.go
сгенерированный
поставляемый
|
@ -1,106 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
consolev1 "github.com/openshift/api/console/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeConsoleNotifications implements ConsoleNotificationInterface
|
||||
type FakeConsoleNotifications struct {
|
||||
Fake *FakeConsoleV1
|
||||
}
|
||||
|
||||
var consolenotificationsResource = schema.GroupVersionResource{Group: "console.openshift.io", Version: "v1", Resource: "consolenotifications"}
|
||||
|
||||
var consolenotificationsKind = schema.GroupVersionKind{Group: "console.openshift.io", Version: "v1", Kind: "ConsoleNotification"}
|
||||
|
||||
// Get takes name of the consoleNotification, and returns the corresponding consoleNotification object, and an error if there is any.
|
||||
func (c *FakeConsoleNotifications) Get(ctx context.Context, name string, options v1.GetOptions) (result *consolev1.ConsoleNotification, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootGetAction(consolenotificationsResource, name), &consolev1.ConsoleNotification{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleNotification), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ConsoleNotifications that match those selectors.
|
||||
func (c *FakeConsoleNotifications) List(ctx context.Context, opts v1.ListOptions) (result *consolev1.ConsoleNotificationList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootListAction(consolenotificationsResource, consolenotificationsKind, opts), &consolev1.ConsoleNotificationList{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &consolev1.ConsoleNotificationList{ListMeta: obj.(*consolev1.ConsoleNotificationList).ListMeta}
|
||||
for _, item := range obj.(*consolev1.ConsoleNotificationList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested consoleNotifications.
|
||||
func (c *FakeConsoleNotifications) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewRootWatchAction(consolenotificationsResource, opts))
|
||||
}
|
||||
|
||||
// Create takes the representation of a consoleNotification and creates it. Returns the server's representation of the consoleNotification, and an error, if there is any.
|
||||
func (c *FakeConsoleNotifications) Create(ctx context.Context, consoleNotification *consolev1.ConsoleNotification, opts v1.CreateOptions) (result *consolev1.ConsoleNotification, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootCreateAction(consolenotificationsResource, consoleNotification), &consolev1.ConsoleNotification{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleNotification), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a consoleNotification and updates it. Returns the server's representation of the consoleNotification, and an error, if there is any.
|
||||
func (c *FakeConsoleNotifications) Update(ctx context.Context, consoleNotification *consolev1.ConsoleNotification, opts v1.UpdateOptions) (result *consolev1.ConsoleNotification, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateAction(consolenotificationsResource, consoleNotification), &consolev1.ConsoleNotification{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleNotification), err
|
||||
}
|
||||
|
||||
// Delete takes name of the consoleNotification and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeConsoleNotifications) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewRootDeleteActionWithOptions(consolenotificationsResource, name, opts), &consolev1.ConsoleNotification{})
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeConsoleNotifications) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewRootDeleteCollectionAction(consolenotificationsResource, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &consolev1.ConsoleNotificationList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched consoleNotification.
|
||||
func (c *FakeConsoleNotifications) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *consolev1.ConsoleNotification, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootPatchSubresourceAction(consolenotificationsResource, name, pt, data, subresources...), &consolev1.ConsoleNotification{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleNotification), err
|
||||
}
|
106
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/fake_consolequickstart.go
сгенерированный
поставляемый
106
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/fake_consolequickstart.go
сгенерированный
поставляемый
|
@ -1,106 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
consolev1 "github.com/openshift/api/console/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeConsoleQuickStarts implements ConsoleQuickStartInterface
|
||||
type FakeConsoleQuickStarts struct {
|
||||
Fake *FakeConsoleV1
|
||||
}
|
||||
|
||||
var consolequickstartsResource = schema.GroupVersionResource{Group: "console.openshift.io", Version: "v1", Resource: "consolequickstarts"}
|
||||
|
||||
var consolequickstartsKind = schema.GroupVersionKind{Group: "console.openshift.io", Version: "v1", Kind: "ConsoleQuickStart"}
|
||||
|
||||
// Get takes name of the consoleQuickStart, and returns the corresponding consoleQuickStart object, and an error if there is any.
|
||||
func (c *FakeConsoleQuickStarts) Get(ctx context.Context, name string, options v1.GetOptions) (result *consolev1.ConsoleQuickStart, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootGetAction(consolequickstartsResource, name), &consolev1.ConsoleQuickStart{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleQuickStart), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ConsoleQuickStarts that match those selectors.
|
||||
func (c *FakeConsoleQuickStarts) List(ctx context.Context, opts v1.ListOptions) (result *consolev1.ConsoleQuickStartList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootListAction(consolequickstartsResource, consolequickstartsKind, opts), &consolev1.ConsoleQuickStartList{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &consolev1.ConsoleQuickStartList{ListMeta: obj.(*consolev1.ConsoleQuickStartList).ListMeta}
|
||||
for _, item := range obj.(*consolev1.ConsoleQuickStartList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested consoleQuickStarts.
|
||||
func (c *FakeConsoleQuickStarts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewRootWatchAction(consolequickstartsResource, opts))
|
||||
}
|
||||
|
||||
// Create takes the representation of a consoleQuickStart and creates it. Returns the server's representation of the consoleQuickStart, and an error, if there is any.
|
||||
func (c *FakeConsoleQuickStarts) Create(ctx context.Context, consoleQuickStart *consolev1.ConsoleQuickStart, opts v1.CreateOptions) (result *consolev1.ConsoleQuickStart, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootCreateAction(consolequickstartsResource, consoleQuickStart), &consolev1.ConsoleQuickStart{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleQuickStart), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a consoleQuickStart and updates it. Returns the server's representation of the consoleQuickStart, and an error, if there is any.
|
||||
func (c *FakeConsoleQuickStarts) Update(ctx context.Context, consoleQuickStart *consolev1.ConsoleQuickStart, opts v1.UpdateOptions) (result *consolev1.ConsoleQuickStart, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateAction(consolequickstartsResource, consoleQuickStart), &consolev1.ConsoleQuickStart{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleQuickStart), err
|
||||
}
|
||||
|
||||
// Delete takes name of the consoleQuickStart and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeConsoleQuickStarts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewRootDeleteActionWithOptions(consolequickstartsResource, name, opts), &consolev1.ConsoleQuickStart{})
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeConsoleQuickStarts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewRootDeleteCollectionAction(consolequickstartsResource, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &consolev1.ConsoleQuickStartList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched consoleQuickStart.
|
||||
func (c *FakeConsoleQuickStarts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *consolev1.ConsoleQuickStart, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootPatchSubresourceAction(consolequickstartsResource, name, pt, data, subresources...), &consolev1.ConsoleQuickStart{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleQuickStart), err
|
||||
}
|
106
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/fake_consoleyamlsample.go
сгенерированный
поставляемый
106
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake/fake_consoleyamlsample.go
сгенерированный
поставляемый
|
@ -1,106 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
consolev1 "github.com/openshift/api/console/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeConsoleYAMLSamples implements ConsoleYAMLSampleInterface
|
||||
type FakeConsoleYAMLSamples struct {
|
||||
Fake *FakeConsoleV1
|
||||
}
|
||||
|
||||
var consoleyamlsamplesResource = schema.GroupVersionResource{Group: "console.openshift.io", Version: "v1", Resource: "consoleyamlsamples"}
|
||||
|
||||
var consoleyamlsamplesKind = schema.GroupVersionKind{Group: "console.openshift.io", Version: "v1", Kind: "ConsoleYAMLSample"}
|
||||
|
||||
// Get takes name of the consoleYAMLSample, and returns the corresponding consoleYAMLSample object, and an error if there is any.
|
||||
func (c *FakeConsoleYAMLSamples) Get(ctx context.Context, name string, options v1.GetOptions) (result *consolev1.ConsoleYAMLSample, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootGetAction(consoleyamlsamplesResource, name), &consolev1.ConsoleYAMLSample{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleYAMLSample), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ConsoleYAMLSamples that match those selectors.
|
||||
func (c *FakeConsoleYAMLSamples) List(ctx context.Context, opts v1.ListOptions) (result *consolev1.ConsoleYAMLSampleList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootListAction(consoleyamlsamplesResource, consoleyamlsamplesKind, opts), &consolev1.ConsoleYAMLSampleList{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &consolev1.ConsoleYAMLSampleList{ListMeta: obj.(*consolev1.ConsoleYAMLSampleList).ListMeta}
|
||||
for _, item := range obj.(*consolev1.ConsoleYAMLSampleList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested consoleYAMLSamples.
|
||||
func (c *FakeConsoleYAMLSamples) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewRootWatchAction(consoleyamlsamplesResource, opts))
|
||||
}
|
||||
|
||||
// Create takes the representation of a consoleYAMLSample and creates it. Returns the server's representation of the consoleYAMLSample, and an error, if there is any.
|
||||
func (c *FakeConsoleYAMLSamples) Create(ctx context.Context, consoleYAMLSample *consolev1.ConsoleYAMLSample, opts v1.CreateOptions) (result *consolev1.ConsoleYAMLSample, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootCreateAction(consoleyamlsamplesResource, consoleYAMLSample), &consolev1.ConsoleYAMLSample{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleYAMLSample), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a consoleYAMLSample and updates it. Returns the server's representation of the consoleYAMLSample, and an error, if there is any.
|
||||
func (c *FakeConsoleYAMLSamples) Update(ctx context.Context, consoleYAMLSample *consolev1.ConsoleYAMLSample, opts v1.UpdateOptions) (result *consolev1.ConsoleYAMLSample, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateAction(consoleyamlsamplesResource, consoleYAMLSample), &consolev1.ConsoleYAMLSample{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleYAMLSample), err
|
||||
}
|
||||
|
||||
// Delete takes name of the consoleYAMLSample and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeConsoleYAMLSamples) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewRootDeleteActionWithOptions(consoleyamlsamplesResource, name, opts), &consolev1.ConsoleYAMLSample{})
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeConsoleYAMLSamples) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewRootDeleteCollectionAction(consoleyamlsamplesResource, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &consolev1.ConsoleYAMLSampleList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched consoleYAMLSample.
|
||||
func (c *FakeConsoleYAMLSamples) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *consolev1.ConsoleYAMLSample, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootPatchSubresourceAction(consoleyamlsamplesResource, name, pt, data, subresources...), &consolev1.ConsoleYAMLSample{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*consolev1.ConsoleYAMLSample), err
|
||||
}
|
15
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/generated_expansion.go
сгенерированный
поставляемый
15
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/generated_expansion.go
сгенерированный
поставляемый
|
@ -1,15 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
type ConsoleCLIDownloadExpansion interface{}
|
||||
|
||||
type ConsoleExternalLogLinkExpansion interface{}
|
||||
|
||||
type ConsoleLinkExpansion interface{}
|
||||
|
||||
type ConsoleNotificationExpansion interface{}
|
||||
|
||||
type ConsoleQuickStartExpansion interface{}
|
||||
|
||||
type ConsoleYAMLSampleExpansion interface{}
|
91
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/console_client.go
сгенерированный
поставляемый
91
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/console_client.go
сгенерированный
поставляемый
|
@ -1,91 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
v1alpha1 "github.com/openshift/api/console/v1alpha1"
|
||||
"github.com/openshift/client-go/console/clientset/versioned/scheme"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
type ConsoleV1alpha1Interface interface {
|
||||
RESTClient() rest.Interface
|
||||
ConsolePluginsGetter
|
||||
}
|
||||
|
||||
// ConsoleV1alpha1Client is used to interact with features provided by the console.openshift.io group.
|
||||
type ConsoleV1alpha1Client struct {
|
||||
restClient rest.Interface
|
||||
}
|
||||
|
||||
func (c *ConsoleV1alpha1Client) ConsolePlugins() ConsolePluginInterface {
|
||||
return newConsolePlugins(c)
|
||||
}
|
||||
|
||||
// NewForConfig creates a new ConsoleV1alpha1Client for the given config.
|
||||
// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
|
||||
// where httpClient was generated with rest.HTTPClientFor(c).
|
||||
func NewForConfig(c *rest.Config) (*ConsoleV1alpha1Client, error) {
|
||||
config := *c
|
||||
if err := setConfigDefaults(&config); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
httpClient, err := rest.HTTPClientFor(&config)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return NewForConfigAndClient(&config, httpClient)
|
||||
}
|
||||
|
||||
// NewForConfigAndClient creates a new ConsoleV1alpha1Client for the given config and http client.
|
||||
// Note the http client provided takes precedence over the configured transport values.
|
||||
func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ConsoleV1alpha1Client, error) {
|
||||
config := *c
|
||||
if err := setConfigDefaults(&config); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
client, err := rest.RESTClientForConfigAndClient(&config, h)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &ConsoleV1alpha1Client{client}, nil
|
||||
}
|
||||
|
||||
// NewForConfigOrDie creates a new ConsoleV1alpha1Client for the given config and
|
||||
// panics if there is an error in the config.
|
||||
func NewForConfigOrDie(c *rest.Config) *ConsoleV1alpha1Client {
|
||||
client, err := NewForConfig(c)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return client
|
||||
}
|
||||
|
||||
// New creates a new ConsoleV1alpha1Client for the given RESTClient.
|
||||
func New(c rest.Interface) *ConsoleV1alpha1Client {
|
||||
return &ConsoleV1alpha1Client{c}
|
||||
}
|
||||
|
||||
func setConfigDefaults(config *rest.Config) error {
|
||||
gv := v1alpha1.SchemeGroupVersion
|
||||
config.GroupVersion = &gv
|
||||
config.APIPath = "/apis"
|
||||
config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
|
||||
|
||||
if config.UserAgent == "" {
|
||||
config.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// RESTClient returns a RESTClient that is used to communicate
|
||||
// with API server by this client implementation.
|
||||
func (c *ConsoleV1alpha1Client) RESTClient() rest.Interface {
|
||||
if c == nil {
|
||||
return nil
|
||||
}
|
||||
return c.restClient
|
||||
}
|
152
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/consoleplugin.go
сгенерированный
поставляемый
152
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/consoleplugin.go
сгенерированный
поставляемый
|
@ -1,152 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1alpha1 "github.com/openshift/api/console/v1alpha1"
|
||||
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ConsolePluginsGetter has a method to return a ConsolePluginInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ConsolePluginsGetter interface {
|
||||
ConsolePlugins() ConsolePluginInterface
|
||||
}
|
||||
|
||||
// ConsolePluginInterface has methods to work with ConsolePlugin resources.
|
||||
type ConsolePluginInterface interface {
|
||||
Create(ctx context.Context, consolePlugin *v1alpha1.ConsolePlugin, opts v1.CreateOptions) (*v1alpha1.ConsolePlugin, error)
|
||||
Update(ctx context.Context, consolePlugin *v1alpha1.ConsolePlugin, opts v1.UpdateOptions) (*v1alpha1.ConsolePlugin, error)
|
||||
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ConsolePlugin, error)
|
||||
List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ConsolePluginList, error)
|
||||
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ConsolePlugin, err error)
|
||||
ConsolePluginExpansion
|
||||
}
|
||||
|
||||
// consolePlugins implements ConsolePluginInterface
|
||||
type consolePlugins struct {
|
||||
client rest.Interface
|
||||
}
|
||||
|
||||
// newConsolePlugins returns a ConsolePlugins
|
||||
func newConsolePlugins(c *ConsoleV1alpha1Client) *consolePlugins {
|
||||
return &consolePlugins{
|
||||
client: c.RESTClient(),
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the consolePlugin, and returns the corresponding consolePlugin object, and an error if there is any.
|
||||
func (c *consolePlugins) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ConsolePlugin, err error) {
|
||||
result = &v1alpha1.ConsolePlugin{}
|
||||
err = c.client.Get().
|
||||
Resource("consoleplugins").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ConsolePlugins that match those selectors.
|
||||
func (c *consolePlugins) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ConsolePluginList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1alpha1.ConsolePluginList{}
|
||||
err = c.client.Get().
|
||||
Resource("consoleplugins").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested consolePlugins.
|
||||
func (c *consolePlugins) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Resource("consoleplugins").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a consolePlugin and creates it. Returns the server's representation of the consolePlugin, and an error, if there is any.
|
||||
func (c *consolePlugins) Create(ctx context.Context, consolePlugin *v1alpha1.ConsolePlugin, opts v1.CreateOptions) (result *v1alpha1.ConsolePlugin, err error) {
|
||||
result = &v1alpha1.ConsolePlugin{}
|
||||
err = c.client.Post().
|
||||
Resource("consoleplugins").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(consolePlugin).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a consolePlugin and updates it. Returns the server's representation of the consolePlugin, and an error, if there is any.
|
||||
func (c *consolePlugins) Update(ctx context.Context, consolePlugin *v1alpha1.ConsolePlugin, opts v1.UpdateOptions) (result *v1alpha1.ConsolePlugin, err error) {
|
||||
result = &v1alpha1.ConsolePlugin{}
|
||||
err = c.client.Put().
|
||||
Resource("consoleplugins").
|
||||
Name(consolePlugin.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(consolePlugin).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the consolePlugin and deletes it. Returns an error if one occurs.
|
||||
func (c *consolePlugins) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Resource("consoleplugins").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *consolePlugins) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Resource("consoleplugins").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched consolePlugin.
|
||||
func (c *consolePlugins) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ConsolePlugin, err error) {
|
||||
result = &v1alpha1.ConsolePlugin{}
|
||||
err = c.client.Patch(pt).
|
||||
Resource("consoleplugins").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
4
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/doc.go
сгенерированный
поставляемый
4
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/doc.go
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
// This package has the automatically generated typed clients.
|
||||
package v1alpha1
|
4
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/fake/doc.go
сгенерированный
поставляемый
4
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/fake/doc.go
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
// Package fake has the automatically generated clients.
|
||||
package fake
|
24
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/fake/fake_console_client.go
сгенерированный
поставляемый
24
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/fake/fake_console_client.go
сгенерированный
поставляемый
|
@ -1,24 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
v1alpha1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1"
|
||||
rest "k8s.io/client-go/rest"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
type FakeConsoleV1alpha1 struct {
|
||||
*testing.Fake
|
||||
}
|
||||
|
||||
func (c *FakeConsoleV1alpha1) ConsolePlugins() v1alpha1.ConsolePluginInterface {
|
||||
return &FakeConsolePlugins{c}
|
||||
}
|
||||
|
||||
// RESTClient returns a RESTClient that is used to communicate
|
||||
// with API server by this client implementation.
|
||||
func (c *FakeConsoleV1alpha1) RESTClient() rest.Interface {
|
||||
var ret *rest.RESTClient
|
||||
return ret
|
||||
}
|
106
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/fake/fake_consoleplugin.go
сгенерированный
поставляемый
106
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/fake/fake_consoleplugin.go
сгенерированный
поставляемый
|
@ -1,106 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
v1alpha1 "github.com/openshift/api/console/v1alpha1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeConsolePlugins implements ConsolePluginInterface
|
||||
type FakeConsolePlugins struct {
|
||||
Fake *FakeConsoleV1alpha1
|
||||
}
|
||||
|
||||
var consolepluginsResource = schema.GroupVersionResource{Group: "console.openshift.io", Version: "v1alpha1", Resource: "consoleplugins"}
|
||||
|
||||
var consolepluginsKind = schema.GroupVersionKind{Group: "console.openshift.io", Version: "v1alpha1", Kind: "ConsolePlugin"}
|
||||
|
||||
// Get takes name of the consolePlugin, and returns the corresponding consolePlugin object, and an error if there is any.
|
||||
func (c *FakeConsolePlugins) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ConsolePlugin, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootGetAction(consolepluginsResource, name), &v1alpha1.ConsolePlugin{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.ConsolePlugin), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ConsolePlugins that match those selectors.
|
||||
func (c *FakeConsolePlugins) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ConsolePluginList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootListAction(consolepluginsResource, consolepluginsKind, opts), &v1alpha1.ConsolePluginList{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &v1alpha1.ConsolePluginList{ListMeta: obj.(*v1alpha1.ConsolePluginList).ListMeta}
|
||||
for _, item := range obj.(*v1alpha1.ConsolePluginList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested consolePlugins.
|
||||
func (c *FakeConsolePlugins) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewRootWatchAction(consolepluginsResource, opts))
|
||||
}
|
||||
|
||||
// Create takes the representation of a consolePlugin and creates it. Returns the server's representation of the consolePlugin, and an error, if there is any.
|
||||
func (c *FakeConsolePlugins) Create(ctx context.Context, consolePlugin *v1alpha1.ConsolePlugin, opts v1.CreateOptions) (result *v1alpha1.ConsolePlugin, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootCreateAction(consolepluginsResource, consolePlugin), &v1alpha1.ConsolePlugin{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.ConsolePlugin), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a consolePlugin and updates it. Returns the server's representation of the consolePlugin, and an error, if there is any.
|
||||
func (c *FakeConsolePlugins) Update(ctx context.Context, consolePlugin *v1alpha1.ConsolePlugin, opts v1.UpdateOptions) (result *v1alpha1.ConsolePlugin, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateAction(consolepluginsResource, consolePlugin), &v1alpha1.ConsolePlugin{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.ConsolePlugin), err
|
||||
}
|
||||
|
||||
// Delete takes name of the consolePlugin and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeConsolePlugins) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewRootDeleteActionWithOptions(consolepluginsResource, name, opts), &v1alpha1.ConsolePlugin{})
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeConsolePlugins) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewRootDeleteCollectionAction(consolepluginsResource, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &v1alpha1.ConsolePluginList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched consolePlugin.
|
||||
func (c *FakeConsolePlugins) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ConsolePlugin, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootPatchSubresourceAction(consolepluginsResource, name, pt, data, subresources...), &v1alpha1.ConsolePlugin{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.ConsolePlugin), err
|
||||
}
|
5
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/generated_expansion.go
сгенерированный
поставляемый
5
vendor/github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/generated_expansion.go
сгенерированный
поставляемый
|
@ -1,5 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
type ConsolePluginExpansion interface{}
|
|
@ -1058,7 +1058,6 @@ github.com/opencontainers/runtime-spec/specs-go
|
|||
## explicit; go 1.16
|
||||
github.com/openshift/api/config/v1
|
||||
github.com/openshift/api/console/v1
|
||||
github.com/openshift/api/console/v1alpha1
|
||||
github.com/openshift/api/image/docker10
|
||||
github.com/openshift/api/image/dockerpre012
|
||||
github.com/openshift/api/image/v1
|
||||
|
@ -1077,13 +1076,6 @@ github.com/openshift/client-go/config/clientset/versioned/fake
|
|||
github.com/openshift/client-go/config/clientset/versioned/scheme
|
||||
github.com/openshift/client-go/config/clientset/versioned/typed/config/v1
|
||||
github.com/openshift/client-go/config/clientset/versioned/typed/config/v1/fake
|
||||
github.com/openshift/client-go/console/clientset/versioned
|
||||
github.com/openshift/client-go/console/clientset/versioned/fake
|
||||
github.com/openshift/client-go/console/clientset/versioned/scheme
|
||||
github.com/openshift/client-go/console/clientset/versioned/typed/console/v1
|
||||
github.com/openshift/client-go/console/clientset/versioned/typed/console/v1/fake
|
||||
github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1
|
||||
github.com/openshift/client-go/console/clientset/versioned/typed/console/v1alpha1/fake
|
||||
github.com/openshift/client-go/imageregistry/clientset/versioned
|
||||
github.com/openshift/client-go/imageregistry/clientset/versioned/fake
|
||||
github.com/openshift/client-go/imageregistry/clientset/versioned/scheme
|
||||
|
|
Загрузка…
Ссылка в новой задаче