From 7e58a2c3c30222033adfc991b6567e228c202efd Mon Sep 17 00:00:00 2001 From: Ben Parees Date: Wed, 6 Sep 2017 14:21:47 -0400 Subject: [PATCH] deprecate the imagestream.spec.DockerImageRepository field --- .../v1.ImageStream.adoc | 4 +- .../v1.ImageStreamImport.adoc | 4 +- .../v1.ImageStreamTag.adoc | 2 +- api/docs/oapi/v1.ImageStream.adoc | 4 +- api/docs/oapi/v1.ImageStreamImport.adoc | 4 +- api/docs/oapi/v1.ImageStreamTag.adoc | 2 +- ..._authorization_apis_authorization_v1.proto | 242 +- ...shift_origin_pkg_build_apis_build_v1.proto | 379 +- ...shift_origin_pkg_deploy_apis_apps_v1.proto | 203 +- ...shift_origin_pkg_image_apis_image_v1.proto | 257 +- ...t_origin_pkg_network_apis_network_v1.proto | 64 +- ...shift_origin_pkg_oauth_apis_oauth_v1.proto | 108 +- ...t_origin_pkg_project_apis_project_v1.proto | 30 +- ...shift_origin_pkg_quota_apis_quota_v1.proto | 46 +- ...shift_origin_pkg_route_apis_route_v1.proto | 80 +- ...origin_pkg_security_apis_security_v1.proto | 114 +- ...origin_pkg_template_apis_template_v1.proto | 97 +- ...enshift_origin_pkg_user_apis_user_v1.proto | 55 +- api/swagger-spec/openshift-openapi-spec.json | 4 +- .../apis/authorization/v1/generated.pb.go | 9090 ----------- .../apis/authorization/v1/generated.proto | 242 +- pkg/build/apis/build/v1/generated.pb.go | 12567 ---------------- pkg/build/apis/build/v1/generated.proto | 379 +- pkg/deploy/apis/apps/v1/generated.pb.go | 6498 -------- pkg/deploy/apis/apps/v1/generated.proto | 203 +- pkg/image/apis/image/types.go | 4 +- pkg/image/apis/image/v1/generated.pb.go | 7811 ---------- pkg/image/apis/image/v1/generated.proto | 257 +- pkg/image/apis/image/v1/swagger_doc.go | 12 +- pkg/image/apis/image/v1/types.go | 23 +- pkg/network/apis/network/v1/generated.pb.go | 2296 --- pkg/network/apis/network/v1/generated.proto | 64 +- pkg/oauth/apis/oauth/v1/generated.pb.go | 3324 ---- pkg/oauth/apis/oauth/v1/generated.proto | 108 +- pkg/openapi/zz_generated.openapi.go | 12 +- pkg/project/apis/project/v1/generated.pb.go | 1094 -- pkg/project/apis/project/v1/generated.proto | 30 +- pkg/quota/apis/quota/v1/generated.pb.go | 1857 --- pkg/quota/apis/quota/v1/generated.proto | 46 +- pkg/route/apis/route/v1/generated.pb.go | 2539 ---- pkg/route/apis/route/v1/generated.proto | 80 +- pkg/security/apis/security/v1/generated.pb.go | 3839 ----- pkg/security/apis/security/v1/generated.proto | 114 +- pkg/template/apis/template/v1/generated.pb.go | 3527 ----- pkg/template/apis/template/v1/generated.proto | 97 +- pkg/user/apis/user/v1/generated.pb.go | 1974 --- pkg/user/apis/user/v1/generated.proto | 55 +- 47 files changed, 1865 insertions(+), 57976 deletions(-) delete mode 100644 pkg/authorization/apis/authorization/v1/generated.pb.go delete mode 100644 pkg/build/apis/build/v1/generated.pb.go delete mode 100644 pkg/deploy/apis/apps/v1/generated.pb.go delete mode 100644 pkg/image/apis/image/v1/generated.pb.go delete mode 100644 pkg/network/apis/network/v1/generated.pb.go delete mode 100644 pkg/oauth/apis/oauth/v1/generated.pb.go delete mode 100644 pkg/project/apis/project/v1/generated.pb.go delete mode 100644 pkg/quota/apis/quota/v1/generated.pb.go delete mode 100644 pkg/route/apis/route/v1/generated.pb.go delete mode 100644 pkg/security/apis/security/v1/generated.pb.go delete mode 100644 pkg/template/apis/template/v1/generated.pb.go delete mode 100644 pkg/user/apis/user/v1/generated.pb.go diff --git a/api/docs/apis-image.openshift.io/v1.ImageStream.adoc b/api/docs/apis-image.openshift.io/v1.ImageStream.adoc index 2fcd6dd5c578..05512f059eef 100644 --- a/api/docs/apis-image.openshift.io/v1.ImageStream.adoc +++ b/api/docs/apis-image.openshift.io/v1.ImageStream.adoc @@ -89,13 +89,13 @@ Populated by the system. Read-only. Value must be treated as opaque by clients a Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids">uid:
spec: -
dockerImageRepository: +
dockerImageRepository:
lookupPolicy:
local:
tags:
- annotations:
- [string]: -
from: +
from:
apiVersion:
fieldPath:
kind: diff --git a/api/docs/apis-image.openshift.io/v1.ImageStreamImport.adoc b/api/docs/apis-image.openshift.io/v1.ImageStreamImport.adoc index 71802e09b6e7..aee1817f5ec4 100644 --- a/api/docs/apis-image.openshift.io/v1.ImageStreamImport.adoc +++ b/api/docs/apis-image.openshift.io/v1.ImageStreamImport.adoc @@ -398,13 +398,13 @@ Populated by the system. Read-only. Value must be treated as opaque by clients a Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids">uid:
spec: -
dockerImageRepository: +
dockerImageRepository:
lookupPolicy:
local:
tags:
- annotations:
- [string]: -
from: +
from:
apiVersion:
fieldPath:
kind: diff --git a/api/docs/apis-image.openshift.io/v1.ImageStreamTag.adoc b/api/docs/apis-image.openshift.io/v1.ImageStreamTag.adoc index 66dcee124523..c6189f8c1ccc 100644 --- a/api/docs/apis-image.openshift.io/v1.ImageStreamTag.adoc +++ b/api/docs/apis-image.openshift.io/v1.ImageStreamTag.adoc @@ -276,7 +276,7 @@ Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-gu
tag:
annotations:
[string]: -
from: +
from:
apiVersion:
fieldPath:
kind: diff --git a/api/docs/oapi/v1.ImageStream.adoc b/api/docs/oapi/v1.ImageStream.adoc index 5d2efbf315d1..1e6188229076 100644 --- a/api/docs/oapi/v1.ImageStream.adoc +++ b/api/docs/oapi/v1.ImageStream.adoc @@ -89,13 +89,13 @@ Populated by the system. Read-only. Value must be treated as opaque by clients a Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids">uid:
spec: -
dockerImageRepository: +
dockerImageRepository:
lookupPolicy:
local:
tags:
- annotations:
- [string]: -
from: +
from:
apiVersion:
fieldPath:
kind: diff --git a/api/docs/oapi/v1.ImageStreamImport.adoc b/api/docs/oapi/v1.ImageStreamImport.adoc index a7c9dd0f44e8..79beda13ba9e 100644 --- a/api/docs/oapi/v1.ImageStreamImport.adoc +++ b/api/docs/oapi/v1.ImageStreamImport.adoc @@ -398,13 +398,13 @@ Populated by the system. Read-only. Value must be treated as opaque by clients a Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids">uid:
spec: -
dockerImageRepository: +
dockerImageRepository:
lookupPolicy:
local:
tags:
- annotations:
- [string]: -
from: +
from:
apiVersion:
fieldPath:
kind: diff --git a/api/docs/oapi/v1.ImageStreamTag.adoc b/api/docs/oapi/v1.ImageStreamTag.adoc index d5c4c0f431fe..e8e54e995054 100644 --- a/api/docs/oapi/v1.ImageStreamTag.adoc +++ b/api/docs/oapi/v1.ImageStreamTag.adoc @@ -276,7 +276,7 @@ Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-gu
tag:
annotations:
[string]: -
from: +
from:
apiVersion:
fieldPath:
kind: diff --git a/api/protobuf-spec/github_com_openshift_origin_pkg_authorization_apis_authorization_v1.proto b/api/protobuf-spec/github_com_openshift_origin_pkg_authorization_apis_authorization_v1.proto index 47536f2bb315..8a860b331fac 100644 --- a/api/protobuf-spec/github_com_openshift_origin_pkg_authorization_apis_authorization_v1.proto +++ b/api/protobuf-spec/github_com_openshift_origin_pkg_authorization_apis_authorization_v1.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,94 +13,103 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // Action describes a request to the API server message Action { // Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces - optional string namespace = 1; + optional string namespace = 1 [(gogoproto.customname) = "Namespace", (gogoproto.nullable) = false]; // Verb is one of: get, list, watch, create, update, delete - optional string verb = 2; + optional string verb = 2 [(gogoproto.customname) = "Verb", (gogoproto.nullable) = false]; // Group is the API group of the resource // Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined - optional string resourceAPIGroup = 3; + optional string resourceAPIGroup = 3 [(gogoproto.customname) = "Group", (gogoproto.nullable) = false]; // Version is the API version of the resource // Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined - optional string resourceAPIVersion = 4; + optional string resourceAPIVersion = 4 [(gogoproto.customname) = "Version", (gogoproto.nullable) = false]; // Resource is one of the existing resource types - optional string resource = 5; + optional string resource = 5 [(gogoproto.customname) = "Resource", (gogoproto.nullable) = false]; // ResourceName is the name of the resource being requested for a "get" or deleted for a "delete" - optional string resourceName = 6; + optional string resourceName = 6 [(gogoproto.customname) = "ResourceName", (gogoproto.nullable) = false]; // Path is the path of a non resource URL - optional string path = 8; + optional string path = 8 [(gogoproto.customname) = "Path", (gogoproto.nullable) = false]; // IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy) - optional bool isNonResourceURL = 9; + optional bool isNonResourceURL = 9 [(gogoproto.customname) = "IsNonResourceURL", (gogoproto.nullable) = false]; // Content is the actual content of the request for create and update - optional k8s.io.apimachinery.pkg.runtime.RawExtension content = 7; + optional k8s.io.apimachinery.pkg.runtime.RawExtension content = 7 [(gogoproto.customname) = "Content", (gogoproto.nullable) = false]; } // ClusterPolicy is a object that holds all the ClusterRoles for a particular namespace. There is at most // one ClusterPolicy document per namespace. message ClusterPolicy { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // LastModified is the last time that any part of the ClusterPolicy was created, updated, or deleted - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2 [(gogoproto.customname) = "LastModified", (gogoproto.nullable) = false]; // Roles holds all the ClusterRoles held by this ClusterPolicy, mapped by ClusterRole.Name - repeated NamedClusterRole roles = 3; + repeated NamedClusterRole roles = 3 [(gogoproto.customname) = "Roles", (gogoproto.nullable) = false]; } // ClusterPolicyBinding is a object that holds all the ClusterRoleBindings for a particular namespace. There is // one ClusterPolicyBinding document per referenced ClusterPolicy namespace message ClusterPolicyBinding { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // LastModified is the last time that any part of the ClusterPolicyBinding was created, updated, or deleted - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2 [(gogoproto.customname) = "LastModified", (gogoproto.nullable) = false]; // PolicyRef is a reference to the ClusterPolicy that contains all the ClusterRoles that this ClusterPolicyBinding's RoleBindings may reference - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference policyRef = 3; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference policyRef = 3 [(gogoproto.customname) = "PolicyRef", (gogoproto.nullable) = false]; // RoleBindings holds all the ClusterRoleBindings held by this ClusterPolicyBinding, mapped by ClusterRoleBinding.Name - repeated NamedClusterRoleBinding roleBindings = 4; + repeated NamedClusterRoleBinding roleBindings = 4 [(gogoproto.customname) = "RoleBindings", (gogoproto.nullable) = false]; } // ClusterPolicyBindingList is a collection of ClusterPolicyBindings message ClusterPolicyBindingList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of ClusterPolicyBindings - repeated ClusterPolicyBinding items = 2; + repeated ClusterPolicyBinding items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ClusterPolicyList is a collection of ClusterPolicies message ClusterPolicyList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of ClusterPolicies - repeated ClusterPolicy items = 2; + repeated ClusterPolicy items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ClusterRole is a logical grouping of PolicyRules that can be referenced as a unit by ClusterRoleBindings. message ClusterRole { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Rules holds all the PolicyRules for this ClusterRole - repeated PolicyRule rules = 2; + repeated PolicyRule rules = 2 [(gogoproto.customname) = "Rules", (gogoproto.nullable) = false]; } // ClusterRoleBinding references a ClusterRole, but not contain it. It can reference any ClusterRole in the same namespace or in the global namespace. @@ -107,49 +117,49 @@ message ClusterRole { // ClusterRoleBindings in a given namespace only have effect in that namespace (excepting the master namespace which has power in all namespaces). message ClusterRoleBinding { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // UserNames holds all the usernames directly bound to the role. // This field should only be specified when supporting legacy clients and servers. // See Subjects for further details. // +k8s:conversion-gen=false - optional OptionalNames userNames = 2; + optional OptionalNames userNames = 2 [(gogoproto.customname) = "UserNames"]; // GroupNames holds all the groups directly bound to the role. // This field should only be specified when supporting legacy clients and servers. // See Subjects for further details. // +k8s:conversion-gen=false - optional OptionalNames groupNames = 3; + optional OptionalNames groupNames = 3 [(gogoproto.customname) = "GroupNames"]; // Subjects hold object references to authorize with this rule. // This field is ignored if UserNames or GroupNames are specified to support legacy clients and servers. // Thus newer clients that do not need to support backwards compatibility should send // only fully qualified Subjects and should omit the UserNames and GroupNames fields. // Clients that need to support backwards compatibility can use this field to build the UserNames and GroupNames. - repeated k8s.io.kubernetes.pkg.api.v1.ObjectReference subjects = 4; + repeated k8s.io.kubernetes.pkg.api.v1.ObjectReference subjects = 4 [(gogoproto.customname) = "Subjects", (gogoproto.nullable) = false]; // RoleRef can only reference the current namespace and the global namespace. // If the ClusterRoleRef cannot be resolved, the Authorizer must return an error. // Since Policy is a singleton, this is sufficient knowledge to locate a role. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference roleRef = 5; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference roleRef = 5 [(gogoproto.customname) = "RoleRef", (gogoproto.nullable) = false]; } // ClusterRoleBindingList is a collection of ClusterRoleBindings message ClusterRoleBindingList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of ClusterRoleBindings - repeated ClusterRoleBinding items = 2; + repeated ClusterRoleBinding items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ClusterRoleList is a collection of ClusterRoles message ClusterRoleList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of ClusterRoles - repeated ClusterRole items = 2; + repeated ClusterRole items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // GroupRestriction matches a group either by a string match on the group name @@ -158,10 +168,10 @@ message GroupRestriction { // Groups is a list of groups used to match against an individual user's // groups. If the user is a member of one of the whitelisted groups, the user // is allowed to be bound to a role. - repeated string groups = 1; + repeated string groups = 1 [(gogoproto.customname) = "Groups"]; // Selectors specifies a list of label selectors over group labels. - repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labels = 2; + repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labels = 2 [(gogoproto.customname) = "Selectors", (gogoproto.nullable) = false]; } // IsPersonalSubjectAccessReview is a marker for PolicyRule.AttributeRestrictions that denotes that subjectaccessreviews on self should be allowed @@ -171,188 +181,194 @@ message IsPersonalSubjectAccessReview { // LocalResourceAccessReview is a means to request a list of which users and groups are authorized to perform the action specified by spec in a particular namespace message LocalResourceAccessReview { // Action describes the action being tested. The Namespace element is FORCED to the current namespace. - optional Action Action = 1; + optional Action Action = 1 [(gogoproto.nullable) = false]; } // LocalSubjectAccessReview is an object for requesting information about whether a user or group can perform an action in a particular namespace message LocalSubjectAccessReview { // Action describes the action being tested. The Namespace element is FORCED to the current namespace. - optional Action Action = 1; + optional Action Action = 1 [(gogoproto.nullable) = false]; // User is optional. If both User and Groups are empty, the current authenticated user is used. - optional string user = 2; + optional string user = 2 [(gogoproto.customname) = "User", (gogoproto.nullable) = false]; // Groups is optional. Groups is the list of groups to which the User belongs. // +k8s:conversion-gen=false - repeated string groups = 3; + repeated string groups = 3 [(gogoproto.customname) = "GroupsSlice"]; // Scopes to use for the evaluation. Empty means "use the unscoped (full) permissions of the user/groups". // Nil for a self-SAR, means "use the scopes on this request". // Nil for a regular SAR, means the same as empty. // +k8s:conversion-gen=false - optional OptionalScopes scopes = 4; + optional OptionalScopes scopes = 4 [(gogoproto.customname) = "Scopes"]; } // NamedClusterRole relates a name with a cluster role message NamedClusterRole { // Name is the name of the cluster role - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // Role is the cluster role being named - optional ClusterRole role = 2; + optional ClusterRole role = 2 [(gogoproto.customname) = "Role", (gogoproto.nullable) = false]; } // NamedClusterRoleBinding relates a name with a cluster role binding message NamedClusterRoleBinding { // Name is the name of the cluster role binding - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // RoleBinding is the cluster role binding being named - optional ClusterRoleBinding roleBinding = 2; + optional ClusterRoleBinding roleBinding = 2 [(gogoproto.customname) = "RoleBinding", (gogoproto.nullable) = false]; } // NamedRole relates a Role with a name message NamedRole { // Name is the name of the role - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // Role is the role being named - optional Role role = 2; + optional Role role = 2 [(gogoproto.customname) = "Role", (gogoproto.nullable) = false]; } // NamedRoleBinding relates a role binding with a name message NamedRoleBinding { // Name is the name of the role binding - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // RoleBinding is the role binding being named - optional RoleBinding roleBinding = 2; + optional RoleBinding roleBinding = 2 [(gogoproto.customname) = "RoleBinding", (gogoproto.nullable) = false]; } // OptionalNames is an array that may also be left nil to distinguish between set and unset. // +protobuf.nullable=true // +protobuf.options.(gogoproto.goproto_stringer)=false message OptionalNames { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + // items, if empty, will result in an empty slice - repeated string items = 1; + repeated string items = 1 [(gogoproto.customname) = "Items"]; } // OptionalScopes is an array that may also be left nil to distinguish between set and unset. // +protobuf.nullable=true // +protobuf.options.(gogoproto.goproto_stringer)=false message OptionalScopes { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + // items, if empty, will result in an empty slice - repeated string items = 1; + repeated string items = 1 [(gogoproto.customname) = "Items"]; } // Policy is a object that holds all the Roles for a particular namespace. There is at most // one Policy document per namespace. message Policy { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // LastModified is the last time that any part of the Policy was created, updated, or deleted - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2 [(gogoproto.customname) = "LastModified", (gogoproto.nullable) = false]; // Roles holds all the Roles held by this Policy, mapped by Role.Name - repeated NamedRole roles = 3; + repeated NamedRole roles = 3 [(gogoproto.customname) = "Roles", (gogoproto.nullable) = false]; } // PolicyBinding is a object that holds all the RoleBindings for a particular namespace. There is // one PolicyBinding document per referenced Policy namespace message PolicyBinding { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // LastModified is the last time that any part of the PolicyBinding was created, updated, or deleted - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2 [(gogoproto.customname) = "LastModified", (gogoproto.nullable) = false]; // PolicyRef is a reference to the Policy that contains all the Roles that this PolicyBinding's RoleBindings may reference - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference policyRef = 3; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference policyRef = 3 [(gogoproto.customname) = "PolicyRef", (gogoproto.nullable) = false]; // RoleBindings holds all the RoleBindings held by this PolicyBinding, mapped by RoleBinding.Name - repeated NamedRoleBinding roleBindings = 4; + repeated NamedRoleBinding roleBindings = 4 [(gogoproto.customname) = "RoleBindings", (gogoproto.nullable) = false]; } // PolicyBindingList is a collection of PolicyBindings message PolicyBindingList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of PolicyBindings - repeated PolicyBinding items = 2; + repeated PolicyBinding items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // PolicyList is a collection of Policies message PolicyList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of Policies - repeated Policy items = 2; + repeated Policy items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // PolicyRule holds information that describes a policy rule, but does not contain information // about who the rule applies to or which namespace the rule applies to. message PolicyRule { // Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - repeated string verbs = 1; + repeated string verbs = 1 [(gogoproto.customname) = "Verbs"]; // AttributeRestrictions will vary depending on what the Authorizer/AuthorizationAttributeBuilder pair supports. // If the Authorizer does not recognize how to handle the AttributeRestrictions, the Authorizer should report an error. - optional k8s.io.apimachinery.pkg.runtime.RawExtension attributeRestrictions = 2; + optional k8s.io.apimachinery.pkg.runtime.RawExtension attributeRestrictions = 2 [(gogoproto.customname) = "AttributeRestrictions", (gogoproto.nullable) = false]; // APIGroups is the name of the APIGroup that contains the resources. If this field is empty, then both kubernetes and origin API groups are assumed. // That means that if an action is requested against one of the enumerated resources in either the kubernetes or the origin API group, the request // will be allowed - repeated string apiGroups = 3; + repeated string apiGroups = 3 [(gogoproto.customname) = "APIGroups"]; // Resources is a list of resources this rule applies to. ResourceAll represents all resources. - repeated string resources = 4; + repeated string resources = 4 [(gogoproto.customname) = "Resources"]; // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - repeated string resourceNames = 5; + repeated string resourceNames = 5 [(gogoproto.customname) = "ResourceNames"]; // NonResourceURLsSlice is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path // This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. - repeated string nonResourceURLs = 6; + repeated string nonResourceURLs = 6 [(gogoproto.customname) = "NonResourceURLsSlice"]; } // ResourceAccessReview is a means to request a list of which users and groups are authorized to perform the // action specified by spec message ResourceAccessReview { // Action describes the action being tested. - optional Action Action = 1; + optional Action Action = 1 [(gogoproto.nullable) = false]; } // ResourceAccessReviewResponse describes who can perform the action message ResourceAccessReviewResponse { // Namespace is the namespace used for the access review - optional string namespace = 1; + optional string namespace = 1 [(gogoproto.customname) = "Namespace", (gogoproto.nullable) = false]; // UsersSlice is the list of users who can perform the action // +k8s:conversion-gen=false - repeated string users = 2; + repeated string users = 2 [(gogoproto.customname) = "UsersSlice"]; // GroupsSlice is the list of groups who can perform the action // +k8s:conversion-gen=false - repeated string groups = 3; + repeated string groups = 3 [(gogoproto.customname) = "GroupsSlice"]; // EvaluationError is an indication that some error occurred during resolution, but partial results can still be returned. // It is entirely possible to get an error and be able to continue determine authorization status in spite of it. This is // most common when a bound role is missing, but enough roles are still present and bound to reason about the request. - optional string evalutionError = 4; + optional string evalutionError = 4 [(gogoproto.customname) = "EvaluationError", (gogoproto.nullable) = false]; } // Role is a logical grouping of PolicyRules that can be referenced as a unit by RoleBindings. message Role { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Rules holds all the PolicyRules for this Role - repeated PolicyRule rules = 2; + repeated PolicyRule rules = 2 [(gogoproto.customname) = "Rules", (gogoproto.nullable) = false]; } // RoleBinding references a Role, but not contain it. It can reference any Role in the same namespace or in the global namespace. @@ -360,40 +376,40 @@ message Role { // RoleBindings in a given namespace only have effect in that namespace (excepting the master namespace which has power in all namespaces). message RoleBinding { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // UserNames holds all the usernames directly bound to the role. // This field should only be specified when supporting legacy clients and servers. // See Subjects for further details. // +k8s:conversion-gen=false - optional OptionalNames userNames = 2; + optional OptionalNames userNames = 2 [(gogoproto.customname) = "UserNames"]; // GroupNames holds all the groups directly bound to the role. // This field should only be specified when supporting legacy clients and servers. // See Subjects for further details. // +k8s:conversion-gen=false - optional OptionalNames groupNames = 3; + optional OptionalNames groupNames = 3 [(gogoproto.customname) = "GroupNames"]; // Subjects hold object references to authorize with this rule. // This field is ignored if UserNames or GroupNames are specified to support legacy clients and servers. // Thus newer clients that do not need to support backwards compatibility should send // only fully qualified Subjects and should omit the UserNames and GroupNames fields. // Clients that need to support backwards compatibility can use this field to build the UserNames and GroupNames. - repeated k8s.io.kubernetes.pkg.api.v1.ObjectReference subjects = 4; + repeated k8s.io.kubernetes.pkg.api.v1.ObjectReference subjects = 4 [(gogoproto.customname) = "Subjects", (gogoproto.nullable) = false]; // RoleRef can only reference the current namespace and the global namespace. // If the RoleRef cannot be resolved, the Authorizer must return an error. // Since Policy is a singleton, this is sufficient knowledge to locate a role. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference roleRef = 5; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference roleRef = 5 [(gogoproto.customname) = "RoleRef", (gogoproto.nullable) = false]; } // RoleBindingList is a collection of RoleBindings message RoleBindingList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of RoleBindings - repeated RoleBinding items = 2; + repeated RoleBinding items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // RoleBindingRestriction is an object that can be matched against a subject @@ -403,50 +419,50 @@ message RoleBindingList { // a subject, rolebindings on that subject in the namespace are allowed. message RoleBindingRestriction { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Spec defines the matcher. - optional RoleBindingRestrictionSpec spec = 2; + optional RoleBindingRestrictionSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; } // RoleBindingRestrictionList is a collection of RoleBindingRestriction objects. message RoleBindingRestrictionList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of RoleBindingRestriction objects. - repeated RoleBindingRestriction items = 2; + repeated RoleBindingRestriction items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // RoleBindingRestrictionSpec defines a rolebinding restriction. Exactly one // field must be non-nil. message RoleBindingRestrictionSpec { // UserRestriction matches against user subjects. - optional UserRestriction userrestriction = 1; + optional UserRestriction userrestriction = 1 [(gogoproto.customname) = "UserRestriction"]; // GroupRestriction matches against group subjects. - optional GroupRestriction grouprestriction = 2; + optional GroupRestriction grouprestriction = 2 [(gogoproto.customname) = "GroupRestriction"]; // ServiceAccountRestriction matches against service-account subjects. - optional ServiceAccountRestriction serviceaccountrestriction = 3; + optional ServiceAccountRestriction serviceaccountrestriction = 3 [(gogoproto.customname) = "ServiceAccountRestriction"]; } // RoleList is a collection of Roles message RoleList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of Roles - repeated Role items = 2; + repeated Role items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // SelfSubjectRulesReview is a resource you can create to determine which actions you can perform in a namespace message SelfSubjectRulesReview { // Spec adds information about how to conduct the check - optional SelfSubjectRulesReviewSpec spec = 1; + optional SelfSubjectRulesReviewSpec spec = 1 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status is completed by the server to tell which permissions you have - optional SubjectRulesReviewStatus status = 2; + optional SubjectRulesReviewStatus status = 2 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // SelfSubjectRulesReviewSpec adds information about how to conduct the check @@ -454,20 +470,20 @@ message SelfSubjectRulesReviewSpec { // Scopes to use for the evaluation. Empty means "use the unscoped (full) permissions of the user/groups". // Nil means "use the scopes on this request". // +k8s:conversion-gen=false - optional OptionalScopes scopes = 1; + optional OptionalScopes scopes = 1 [(gogoproto.customname) = "Scopes"]; } // ServiceAccountReference specifies a service account and namespace by their // names. message ServiceAccountReference { // Name is the name of the service account. - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // Namespace is the namespace of the service account. Service accounts from // inside the whitelisted namespaces are allowed to be bound to roles. If // Namespace is empty, then the namespace of the RoleBindingRestriction in // which the ServiceAccountReference is embedded is used. - optional string namespace = 2; + optional string namespace = 2 [(gogoproto.customname) = "Namespace", (gogoproto.nullable) = false]; } // ServiceAccountRestriction matches a service account by a string match on @@ -475,77 +491,77 @@ message ServiceAccountReference { // namespace. message ServiceAccountRestriction { // ServiceAccounts specifies a list of literal service-account names. - repeated ServiceAccountReference serviceaccounts = 1; + repeated ServiceAccountReference serviceaccounts = 1 [(gogoproto.customname) = "ServiceAccounts", (gogoproto.nullable) = false]; // Namespaces specifies a list of literal namespace names. - repeated string namespaces = 2; + repeated string namespaces = 2 [(gogoproto.customname) = "Namespaces"]; } // SubjectAccessReview is an object for requesting information about whether a user or group can perform an action message SubjectAccessReview { // Action describes the action being tested. - optional Action Action = 1; + optional Action Action = 1 [(gogoproto.nullable) = false]; // User is optional. If both User and Groups are empty, the current authenticated user is used. - optional string user = 2; + optional string user = 2 [(gogoproto.customname) = "User", (gogoproto.nullable) = false]; // GroupsSlice is optional. Groups is the list of groups to which the User belongs. // +k8s:conversion-gen=false - repeated string groups = 3; + repeated string groups = 3 [(gogoproto.customname) = "GroupsSlice"]; // Scopes to use for the evaluation. Empty means "use the unscoped (full) permissions of the user/groups". // Nil for a self-SAR, means "use the scopes on this request". // Nil for a regular SAR, means the same as empty. // +k8s:conversion-gen=false - optional OptionalScopes scopes = 4; + optional OptionalScopes scopes = 4 [(gogoproto.customname) = "Scopes"]; } // SubjectAccessReviewResponse describes whether or not a user or group can perform an action message SubjectAccessReviewResponse { // Namespace is the namespace used for the access review - optional string namespace = 1; + optional string namespace = 1 [(gogoproto.customname) = "Namespace", (gogoproto.nullable) = false]; // Allowed is required. True if the action would be allowed, false otherwise. - optional bool allowed = 2; + optional bool allowed = 2 [(gogoproto.customname) = "Allowed", (gogoproto.nullable) = false]; // Reason is optional. It indicates why a request was allowed or denied. - optional string reason = 3; + optional string reason = 3 [(gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // EvaluationError is an indication that some error occurred during the authorization check. // It is entirely possible to get an error and be able to continue determine authorization status in spite of it. This is // most common when a bound role is missing, but enough roles are still present and bound to reason about the request. - optional string evaluationError = 4; + optional string evaluationError = 4 [(gogoproto.customname) = "EvaluationError", (gogoproto.nullable) = false]; } // SubjectRulesReview is a resource you can create to determine which actions another user can perform in a namespace message SubjectRulesReview { // Spec adds information about how to conduct the check - optional SubjectRulesReviewSpec spec = 1; + optional SubjectRulesReviewSpec spec = 1 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status is completed by the server to tell which permissions you have - optional SubjectRulesReviewStatus status = 2; + optional SubjectRulesReviewStatus status = 2 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // SubjectRulesReviewSpec adds information about how to conduct the check message SubjectRulesReviewSpec { // User is optional. At least one of User and Groups must be specified. - optional string user = 1; + optional string user = 1 [(gogoproto.customname) = "User", (gogoproto.nullable) = false]; // Groups is optional. Groups is the list of groups to which the User belongs. At least one of User and Groups must be specified. - repeated string groups = 2; + repeated string groups = 2 [(gogoproto.customname) = "Groups"]; // Scopes to use for the evaluation. Empty means "use the unscoped (full) permissions of the user/groups". - optional OptionalScopes scopes = 3; + optional OptionalScopes scopes = 3 [(gogoproto.customname) = "Scopes"]; } // SubjectRulesReviewStatus is contains the result of a rules check message SubjectRulesReviewStatus { // Rules is the list of rules (no particular sort) that are allowed for the subject - repeated PolicyRule rules = 1; + repeated PolicyRule rules = 1 [(gogoproto.customname) = "Rules", (gogoproto.nullable) = false]; // EvaluationError can appear in combination with Rules. It means some error happened during evaluation // that may have prevented additional rules from being populated. - optional string evaluationError = 2; + optional string evaluationError = 2 [(gogoproto.customname) = "EvaluationError", (gogoproto.nullable) = false]; } // UserRestriction matches a user either by a string match on the user name, @@ -553,12 +569,12 @@ message SubjectRulesReviewStatus { // selector applied to the user labels. message UserRestriction { // Users specifies a list of literal user names. - repeated string users = 1; + repeated string users = 1 [(gogoproto.customname) = "Users"]; // Groups specifies a list of literal group names. - repeated string groups = 2; + repeated string groups = 2 [(gogoproto.customname) = "Groups"]; // Selectors specifies a list of label selectors over user labels. - repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labels = 3; + repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labels = 3 [(gogoproto.customname) = "Selectors", (gogoproto.nullable) = false]; } diff --git a/api/protobuf-spec/github_com_openshift_origin_pkg_build_apis_build_v1.proto b/api/protobuf-spec/github_com_openshift_origin_pkg_build_apis_build_v1.proto index 52dd22c7c4d4..3fdd826533f7 100644 --- a/api/protobuf-spec/github_com_openshift_origin_pkg_build_apis_build_v1.proto +++ b/api/protobuf-spec/github_com_openshift_origin_pkg_build_apis_build_v1.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,33 +13,42 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // BinaryBuildRequestOptions are the options required to fully speficy a binary build request message BinaryBuildRequestOptions { // metadata for BinaryBuildRequestOptions. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // asFile determines if the binary should be created as a file within the source rather than extracted as an archive - optional string asFile = 2; + optional string asFile = 2 [(gogoproto.customname) = "AsFile", (gogoproto.nullable) = false]; // revision.commit is the value identifying a specific commit - optional string revisionCommit = 3; + optional string revisionCommit = 3 [(gogoproto.customname) = "Commit", (gogoproto.nullable) = false]; // revision.message is the description of a specific commit - optional string revisionMessage = 4; + optional string revisionMessage = 4 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; // revision.authorName of the source control user - optional string revisionAuthorName = 5; + optional string revisionAuthorName = 5 [(gogoproto.customname) = "AuthorName", (gogoproto.nullable) = false]; // revision.authorEmail of the source control user - optional string revisionAuthorEmail = 6; + optional string revisionAuthorEmail = 6 [(gogoproto.customname) = "AuthorEmail", (gogoproto.nullable) = false]; // revision.committerName of the source control user - optional string revisionCommitterName = 7; + optional string revisionCommitterName = 7 [(gogoproto.customname) = "CommitterName", (gogoproto.nullable) = false]; // revision.committerEmail of the source control user - optional string revisionCommitterEmail = 8; + optional string revisionCommitterEmail = 8 [(gogoproto.customname) = "CommitterEmail", (gogoproto.nullable) = false]; } // BinaryBuildSource describes a binary file to be used for the Docker and Source build strategies, @@ -50,26 +60,26 @@ message BinaryBuildSource { // strategies assume this file is a zip, tar, or tar.gz file and extract it as the source. // The custom strategy receives this binary as standard input. This filename may not // contain slashes or be '..' or '.'. - optional string asFile = 1; + optional string asFile = 1 [(gogoproto.customname) = "AsFile", (gogoproto.nullable) = false]; } // BitbucketWebHookCause has information about a Bitbucket webhook that triggered a // build. message BitbucketWebHookCause { - optional CommonWebHookCause commonSpec = 1; + optional CommonWebHookCause commonSpec = 1 [(gogoproto.customname) = "CommonWebHookCause", (gogoproto.nullable) = false]; } // Build encapsulates the inputs needed to produce a new deployable image, as well as // the status of the execution and a reference to the Pod which executed the build. message Build { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // spec is all the inputs used to execute the build. - optional BuildSpec spec = 2; + optional BuildSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // status is the current status of the build. - optional BuildStatus status = 3; + optional BuildStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // Build configurations define a build process for new Docker images. There are three types of builds possible - a Docker build using a Dockerfile, a Source-to-Image build that uses a specially prepared base image that accepts source code that it can make runnable, and a custom build that can run // arbitrary Docker images as a base and accept the build parameters. Builds run on the cluster and on completion are pushed to the Docker registry specified in the "output" section. A build can be triggered via a webhook, when the base image changes, or when a user manually requests a new build be // created. @@ -77,23 +87,23 @@ message Build { // Each build created by a build configuration is numbered and refers back to its parent configuration. Multiple builds can be triggered at once. Builds that do not have "output" set can be used to test code or run a verification build. message BuildConfig { // metadata for BuildConfig. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // spec holds all the input necessary to produce a new build, and the conditions when // to trigger them. - optional BuildConfigSpec spec = 2; + optional BuildConfigSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // status holds any relevant information about a build config - optional BuildConfigStatus status = 3; + optional BuildConfigStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // BuildConfigList is a collection of BuildConfigs. message BuildConfigList { // metadata for BuildConfigList. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // items is a list of build configs - repeated BuildConfig items = 2; + repeated BuildConfig items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // BuildConfigSpec describes when and how builds are created @@ -101,38 +111,38 @@ message BuildConfigSpec { // triggers determine how new Builds can be launched from a BuildConfig. If // no triggers are defined, a new build can only occur as a result of an // explicit client build creation. - repeated BuildTriggerPolicy triggers = 1; + repeated BuildTriggerPolicy triggers = 1 [(gogoproto.customname) = "Triggers", (gogoproto.nullable) = false]; // RunPolicy describes how the new build created from this build // configuration will be scheduled for execution. // This is optional, if not specified we default to "Serial". - optional string runPolicy = 2; + optional string runPolicy = 2 [(gogoproto.casttype) = "BuildRunPolicy", (gogoproto.customname) = "RunPolicy", (gogoproto.nullable) = false]; // CommonSpec is the desired build specification - optional CommonSpec commonSpec = 3; + optional CommonSpec commonSpec = 3 [(gogoproto.customname) = "CommonSpec", (gogoproto.nullable) = false]; // successfulBuildsHistoryLimit is the number of old successful builds to retain. // If not specified, all successful builds are retained. - optional int32 successfulBuildsHistoryLimit = 4; + optional int32 successfulBuildsHistoryLimit = 4 [(gogoproto.customname) = "SuccessfulBuildsHistoryLimit"]; // failedBuildsHistoryLimit is the number of old failed builds to retain. // If not specified, all failed builds are retained. - optional int32 failedBuildsHistoryLimit = 5; + optional int32 failedBuildsHistoryLimit = 5 [(gogoproto.customname) = "FailedBuildsHistoryLimit"]; } // BuildConfigStatus contains current state of the build config object. message BuildConfigStatus { // lastVersion is used to inform about number of last triggered build. - optional int64 lastVersion = 1; + optional int64 lastVersion = 1 [(gogoproto.customname) = "LastVersion", (gogoproto.nullable) = false]; } // BuildList is a collection of Builds. message BuildList { // metadata for BuildList. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // items is a list of builds - repeated Build items = 2; + repeated Build items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // BuildLog is the (unused) resource associated with the build log redirector @@ -142,47 +152,47 @@ message BuildLog { // BuildLogOptions is the REST options for a build log message BuildLogOptions { // cointainer for which to stream logs. Defaults to only container if there is one container in the pod. - optional string container = 1; + optional string container = 1 [(gogoproto.customname) = "Container", (gogoproto.nullable) = false]; // follow if true indicates that the build log should be streamed until // the build terminates. - optional bool follow = 2; + optional bool follow = 2 [(gogoproto.customname) = "Follow", (gogoproto.nullable) = false]; // previous returns previous build logs. Defaults to false. - optional bool previous = 3; + optional bool previous = 3 [(gogoproto.customname) = "Previous", (gogoproto.nullable) = false]; // sinceSeconds is a relative time in seconds before the current time from which to show logs. If this value // precedes the time a pod was started, only logs since the pod start will be returned. // If this value is in the future, no logs will be returned. // Only one of sinceSeconds or sinceTime may be specified. - optional int64 sinceSeconds = 4; + optional int64 sinceSeconds = 4 [(gogoproto.customname) = "SinceSeconds"]; // sinceTime is an RFC3339 timestamp from which to show logs. If this value // precedes the time a pod was started, only logs since the pod start will be returned. // If this value is in the future, no logs will be returned. // Only one of sinceSeconds or sinceTime may be specified. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5 [(gogoproto.customname) = "SinceTime"]; // timestamps, If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line // of log output. Defaults to false. - optional bool timestamps = 6; + optional bool timestamps = 6 [(gogoproto.customname) = "Timestamps", (gogoproto.nullable) = false]; // tailLines, If set, is the number of lines from the end of the logs to show. If not specified, // logs are shown from the creation of the container or sinceSeconds or sinceTime - optional int64 tailLines = 7; + optional int64 tailLines = 7 [(gogoproto.customname) = "TailLines"]; // limitBytes, If set, is the number of bytes to read from the server before terminating the // log output. This may not display a complete final line of logging, and may return // slightly more or slightly less than the specified limit. - optional int64 limitBytes = 8; + optional int64 limitBytes = 8 [(gogoproto.customname) = "LimitBytes"]; // noWait if true causes the call to return immediately even if the build // is not available yet. Otherwise the server will wait until the build has started. // TODO: Fix the tag to 'noWait' in v2 - optional bool nowait = 9; + optional bool nowait = 9 [(gogoproto.customname) = "NoWait", (gogoproto.nullable) = false]; // version of the build for which to view logs. - optional int64 version = 10; + optional int64 version = 10 [(gogoproto.customname) = "Version"]; } // BuildOutput is input to a build strategy and describes the Docker image that the strategy @@ -193,16 +203,16 @@ message BuildOutput { // This value will be used to look up a Docker image repository to push to. // In the case of an ImageStreamTag, the ImageStreamTag will be looked for in the namespace of // the build unless Namespace is specified. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference to = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference to = 1 [(gogoproto.customname) = "To"]; // PushSecret is the name of a Secret that would be used for setting // up the authentication for executing the Docker push to authentication // enabled Docker Registry (or Docker Hub). - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pushSecret = 2; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pushSecret = 2 [(gogoproto.customname) = "PushSecret"]; // imageLabels define a list of labels that are applied to the resulting image. If there // are multiple labels with the same name then the last one in the list is used. - repeated ImageLabel imageLabels = 3; + repeated ImageLabel imageLabels = 3 [(gogoproto.customname) = "ImageLabels", (gogoproto.nullable) = false]; } // A BuildPostCommitSpec holds a build post commit hook specification. The hook @@ -275,12 +285,12 @@ message BuildPostCommitSpec { // This might be needed if the image doesn't have `/bin/sh`, or if you // do not want to use a shell. In all other cases, using Script might be // more convenient. - repeated string command = 1; + repeated string command = 1 [(gogoproto.customname) = "Command"]; // args is a list of arguments that are provided to either Command, // Script or the Docker image's default entrypoint. The arguments are // placed immediately after the command to be run. - repeated string args = 2; + repeated string args = 2 [(gogoproto.customname) = "Args"]; // script is a shell script to be run with `/bin/sh -ic`. It may not be // specified with Command. Use Script when a shell script is appropriate @@ -292,50 +302,50 @@ message BuildPostCommitSpec { // collections enabled in the shell. E.g., in the Ruby image, this is // necessary to make `ruby`, `bundle` and other binaries available in // the PATH. - optional string script = 3; + optional string script = 3 [(gogoproto.customname) = "Script", (gogoproto.nullable) = false]; } // BuildRequest is the resource used to pass parameters to build generator message BuildRequest { // metadata for BuildRequest. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // revision is the information from the source for a specific repo snapshot. - optional SourceRevision revision = 2; + optional SourceRevision revision = 2 [(gogoproto.customname) = "Revision"]; // triggeredByImage is the Image that triggered this build. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference triggeredByImage = 3; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference triggeredByImage = 3 [(gogoproto.customname) = "TriggeredByImage"]; // from is the reference to the ImageStreamTag that triggered the build. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 4; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 4 [(gogoproto.customname) = "From"]; // binary indicates a request to build from a binary provided to the builder - optional BinaryBuildSource binary = 5; + optional BinaryBuildSource binary = 5 [(gogoproto.customname) = "Binary"]; // lastVersion (optional) is the LastVersion of the BuildConfig that was used // to generate the build. If the BuildConfig in the generator doesn't match, a build will // not be generated. - optional int64 lastVersion = 6; + optional int64 lastVersion = 6 [(gogoproto.customname) = "LastVersion"]; // env contains additional environment variables you want to pass into a builder container. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 7; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 7 [(gogoproto.customname) = "Env", (gogoproto.nullable) = false]; // triggeredBy describes which triggers started the most recent update to the // build configuration and contains information about those triggers. - repeated BuildTriggerCause triggeredBy = 8; + repeated BuildTriggerCause triggeredBy = 8 [(gogoproto.customname) = "TriggeredBy", (gogoproto.nullable) = false]; // DockerStrategyOptions contains additional docker-strategy specific options for the build - optional DockerStrategyOptions dockerStrategyOptions = 9; + optional DockerStrategyOptions dockerStrategyOptions = 9 [(gogoproto.customname) = "DockerStrategyOptions"]; // SourceStrategyOptions contains additional source-strategy specific options for the build - optional SourceStrategyOptions sourceStrategyOptions = 10; + optional SourceStrategyOptions sourceStrategyOptions = 10 [(gogoproto.customname) = "SourceStrategyOptions"]; } // BuildSource is the SCM used for the build. message BuildSource { // type of build input to accept // +k8s:conversion-gen=false - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "BuildSourceType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // binary builds accept a binary as their input. The binary is generally assumed to be a tar, // gzipped tar, or zip file depending on the strategy. For Docker builds, this is the build @@ -344,7 +354,7 @@ message BuildSource { // Source and Docker builds, if binary.asFile is set the build will receive a directory with // a single file. contextDir may be used when an archive is provided. Custom builds will // receive this binary as input on STDIN. - optional BinaryBuildSource binary = 2; + optional BinaryBuildSource binary = 2 [(gogoproto.customname) = "Binary"]; // dockerfile is the raw contents of a Dockerfile which should be built. When this option is // specified, the FROM may be modified based on your strategy base image and additional ENV @@ -352,96 +362,96 @@ message BuildSource { // of your Dockerfile stanzas. The Dockerfile source type may be used with other options like // git - in those cases the Git repo will have any innate Dockerfile replaced in the context // dir. - optional string dockerfile = 3; + optional string dockerfile = 3 [(gogoproto.customname) = "Dockerfile"]; // git contains optional information about git build source - optional GitBuildSource git = 4; + optional GitBuildSource git = 4 [(gogoproto.customname) = "Git"]; // images describes a set of images to be used to provide source for the build - repeated ImageSource images = 5; + repeated ImageSource images = 5 [(gogoproto.customname) = "Images", (gogoproto.nullable) = false]; // contextDir specifies the sub-directory where the source code for the application exists. // This allows to have buildable sources in directory other than root of // repository. - optional string contextDir = 6; + optional string contextDir = 6 [(gogoproto.customname) = "ContextDir", (gogoproto.nullable) = false]; // sourceSecret is the name of a Secret that would be used for setting // up the authentication for cloning private repository. // The secret contains valid credentials for remote repository, where the // data's key represent the authentication method to be used and value is // the base64 encoded credentials. Supported auth methods are: ssh-privatekey. - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference sourceSecret = 7; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference sourceSecret = 7 [(gogoproto.customname) = "SourceSecret"]; // secrets represents a list of secrets and their destinations that will // be used only for the build. - repeated SecretBuildSource secrets = 8; + repeated SecretBuildSource secrets = 8 [(gogoproto.customname) = "Secrets", (gogoproto.nullable) = false]; } // BuildSpec has the information to represent a build and also additional // information about a build message BuildSpec { // CommonSpec is the information that represents a build - optional CommonSpec commonSpec = 1; + optional CommonSpec commonSpec = 1 [(gogoproto.customname) = "CommonSpec", (gogoproto.nullable) = false]; // triggeredBy describes which triggers started the most recent update to the // build configuration and contains information about those triggers. - repeated BuildTriggerCause triggeredBy = 2; + repeated BuildTriggerCause triggeredBy = 2 [(gogoproto.customname) = "TriggeredBy", (gogoproto.nullable) = false]; } // BuildStatus contains the status of a build message BuildStatus { // phase is the point in the build lifecycle. Possible values are // "New", "Pending", "Running", "Complete", "Failed", "Error", and "Cancelled". - optional string phase = 1; + optional string phase = 1 [(gogoproto.casttype) = "BuildPhase", (gogoproto.customname) = "Phase", (gogoproto.nullable) = false]; // cancelled describes if a cancel event was triggered for the build. - optional bool cancelled = 2; + optional bool cancelled = 2 [(gogoproto.customname) = "Cancelled", (gogoproto.nullable) = false]; // reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. - optional string reason = 3; + optional string reason = 3 [(gogoproto.casttype) = "StatusReason", (gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // message is a human-readable message indicating details about why the build has this status. - optional string message = 4; + optional string message = 4 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; // startTimestamp is a timestamp representing the server time when this Build started // running in a Pod. // It is represented in RFC3339 form and is in UTC. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTimestamp = 5; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTimestamp = 5 [(gogoproto.customname) = "StartTimestamp"]; // completionTimestamp is a timestamp representing the server time when this Build was // finished, whether that build failed or succeeded. It reflects the time at which // the Pod running the Build terminated. // It is represented in RFC3339 form and is in UTC. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time completionTimestamp = 6; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time completionTimestamp = 6 [(gogoproto.customname) = "CompletionTimestamp"]; // duration contains time.Duration object describing build time. - optional int64 duration = 7; + optional int64 duration = 7 [(gogoproto.casttype) = "time.Duration", (gogoproto.customname) = "Duration", (gogoproto.nullable) = false]; // outputDockerImageReference contains a reference to the Docker image that // will be built by this build. Its value is computed from // Build.Spec.Output.To, and should include the registry address, so that // it can be used to push and pull the image. - optional string outputDockerImageReference = 8; + optional string outputDockerImageReference = 8 [(gogoproto.customname) = "OutputDockerImageReference", (gogoproto.nullable) = false]; // config is an ObjectReference to the BuildConfig this Build is based on. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference config = 9; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference config = 9 [(gogoproto.customname) = "Config"]; // output describes the Docker image the build has produced. - optional BuildStatusOutput output = 10; + optional BuildStatusOutput output = 10 [(gogoproto.customname) = "Output", (gogoproto.nullable) = false]; // stages contains details about each stage that occurs during the build // including start time, duration (in milliseconds), and the steps that // occured within each stage. - repeated StageInfo stages = 11; + repeated StageInfo stages = 11 [(gogoproto.customname) = "Stages", (gogoproto.nullable) = false]; // logSnippet is the last few lines of the build log. This value is only set for builds that failed. - optional string logSnippet = 12; + optional string logSnippet = 12 [(gogoproto.customname) = "LogSnippet", (gogoproto.nullable) = false]; } // BuildStatusOutput contains the status of the built image. message BuildStatusOutput { // to describes the status of the built image being pushed to a registry. - optional BuildStatusOutputTo to = 1; + optional BuildStatusOutputTo to = 1 [(gogoproto.customname) = "To"]; } // BuildStatusOutputTo describes the status of the built image with regards to @@ -453,27 +463,27 @@ message BuildStatusOutputTo { // Please note that this field may not always be set even if the push // completes successfully - e.g. when the registry returns no digest or // returns it in a format that the builder doesn't understand. - optional string imageDigest = 1; + optional string imageDigest = 1 [(gogoproto.customname) = "ImageDigest", (gogoproto.nullable) = false]; } // BuildStrategy contains the details of how to perform a build. message BuildStrategy { // type is the kind of build strategy. // +k8s:conversion-gen=false - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "BuildStrategyType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // dockerStrategy holds the parameters to the Docker build strategy. - optional DockerBuildStrategy dockerStrategy = 2; + optional DockerBuildStrategy dockerStrategy = 2 [(gogoproto.customname) = "DockerStrategy"]; // sourceStrategy holds the parameters to the Source build strategy. - optional SourceBuildStrategy sourceStrategy = 3; + optional SourceBuildStrategy sourceStrategy = 3 [(gogoproto.customname) = "SourceStrategy"]; // customStrategy holds the parameters to the Custom build strategy - optional CustomBuildStrategy customStrategy = 4; + optional CustomBuildStrategy customStrategy = 4 [(gogoproto.customname) = "CustomStrategy"]; // JenkinsPipelineStrategy holds the parameters to the Jenkins Pipeline build strategy. // This strategy is in tech preview. - optional JenkinsPipelineBuildStrategy jenkinsPipelineStrategy = 5; + optional JenkinsPipelineBuildStrategy jenkinsPipelineStrategy = 5 [(gogoproto.customname) = "JenkinsPipelineStrategy"]; } // BuildTriggerCause holds information about a triggered build. It is used for @@ -483,48 +493,48 @@ message BuildStrategy { message BuildTriggerCause { // message is used to store a human readable message for why the build was // triggered. E.g.: "Manually triggered by user", "Configuration change",etc. - optional string message = 1; + optional string message = 1 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; // genericWebHook holds data about a builds generic webhook trigger. - optional GenericWebHookCause genericWebHook = 2; + optional GenericWebHookCause genericWebHook = 2 [(gogoproto.customname) = "GenericWebHook"]; // gitHubWebHook represents data for a GitHub webhook that fired a // specific build. - optional GitHubWebHookCause githubWebHook = 3; + optional GitHubWebHookCause githubWebHook = 3 [(gogoproto.customname) = "GitHubWebHook"]; // imageChangeBuild stores information about an imagechange event // that triggered a new build. - optional ImageChangeCause imageChangeBuild = 4; + optional ImageChangeCause imageChangeBuild = 4 [(gogoproto.customname) = "ImageChangeBuild"]; // GitLabWebHook represents data for a GitLab webhook that fired a specific // build. - optional GitLabWebHookCause gitlabWebHook = 5; + optional GitLabWebHookCause gitlabWebHook = 5 [(gogoproto.customname) = "GitLabWebHook"]; // BitbucketWebHook represents data for a Bitbucket webhook that fired a // specific build. - optional BitbucketWebHookCause bitbucketWebHook = 6; + optional BitbucketWebHookCause bitbucketWebHook = 6 [(gogoproto.customname) = "BitbucketWebHook"]; } // BuildTriggerPolicy describes a policy for a single trigger that results in a new Build. message BuildTriggerPolicy { // type is the type of build trigger - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "BuildTriggerType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // github contains the parameters for a GitHub webhook type of trigger - optional WebHookTrigger github = 2; + optional WebHookTrigger github = 2 [(gogoproto.customname) = "GitHubWebHook"]; // generic contains the parameters for a Generic webhook type of trigger - optional WebHookTrigger generic = 3; + optional WebHookTrigger generic = 3 [(gogoproto.customname) = "GenericWebHook"]; // imageChange contains parameters for an ImageChange type of trigger - optional ImageChangeTrigger imageChange = 4; + optional ImageChangeTrigger imageChange = 4 [(gogoproto.customname) = "ImageChange"]; // GitLabWebHook contains the parameters for a GitLab webhook type of trigger - optional WebHookTrigger gitlab = 5; + optional WebHookTrigger gitlab = 5 [(gogoproto.customname) = "GitLabWebHook"]; // BitbucketWebHook contains the parameters for a Bitbucket webhook type of // trigger - optional WebHookTrigger bitbucket = 6; + optional WebHookTrigger bitbucket = 6 [(gogoproto.customname) = "BitbucketWebHook"]; } // CommonSpec encapsulates all the inputs necessary to represent a build. @@ -532,39 +542,39 @@ message CommonSpec { // serviceAccount is the name of the ServiceAccount to use to run the pod // created by this build. // The pod will be allowed to use secrets referenced by the ServiceAccount - optional string serviceAccount = 1; + optional string serviceAccount = 1 [(gogoproto.customname) = "ServiceAccount", (gogoproto.nullable) = false]; // source describes the SCM in use. - optional BuildSource source = 2; + optional BuildSource source = 2 [(gogoproto.customname) = "Source", (gogoproto.nullable) = false]; // revision is the information from the source for a specific repo snapshot. // This is optional. - optional SourceRevision revision = 3; + optional SourceRevision revision = 3 [(gogoproto.customname) = "Revision"]; // strategy defines how to perform a build. - optional BuildStrategy strategy = 4; + optional BuildStrategy strategy = 4 [(gogoproto.customname) = "Strategy", (gogoproto.nullable) = false]; // output describes the Docker image the Strategy should produce. - optional BuildOutput output = 5; + optional BuildOutput output = 5 [(gogoproto.customname) = "Output", (gogoproto.nullable) = false]; // resources computes resource requirements to execute the build. - optional k8s.io.kubernetes.pkg.api.v1.ResourceRequirements resources = 6; + optional k8s.io.kubernetes.pkg.api.v1.ResourceRequirements resources = 6 [(gogoproto.customname) = "Resources", (gogoproto.nullable) = false]; // postCommit is a build hook executed after the build output image is // committed, before it is pushed to a registry. - optional BuildPostCommitSpec postCommit = 7; + optional BuildPostCommitSpec postCommit = 7 [(gogoproto.customname) = "PostCommit", (gogoproto.nullable) = false]; // completionDeadlineSeconds is an optional duration in seconds, counted from // the time when a build pod gets scheduled in the system, that the build may // be active on a node before the system actively tries to terminate the // build; value must be positive integer - optional int64 completionDeadlineSeconds = 8; + optional int64 completionDeadlineSeconds = 8 [(gogoproto.customname) = "CompletionDeadlineSeconds"]; // nodeSelector is a selector which must be true for the build pod to fit on a node // If nil, it can be overridden by default build nodeselector values for the cluster. // If set to an empty map or a map with any values, default build nodeselector values // are ignored. - optional OptionalNodeSelector nodeSelector = 9; + optional OptionalNodeSelector nodeSelector = 9 [(gogoproto.customname) = "NodeSelector"]; } // CommonWebHookCause factors out the identical format of these webhook @@ -572,40 +582,40 @@ message CommonSpec { // GitHub and Generic but we can leverage this pattern with GitLab and Bitbucket. message CommonWebHookCause { // Revision is the git source revision information of the trigger. - optional SourceRevision revision = 1; + optional SourceRevision revision = 1 [(gogoproto.customname) = "Revision"]; // Secret is the obfuscated webhook secret that triggered a build. - optional string secret = 2; + optional string secret = 2 [(gogoproto.customname) = "Secret", (gogoproto.nullable) = false]; } // CustomBuildStrategy defines input parameters specific to Custom build. message CustomBuildStrategy { // from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which // the docker image should be pulled - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // pullSecret is the name of a Secret that would be used for setting up // the authentication for pulling the Docker images from the private Docker // registries - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 2; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 2 [(gogoproto.customname) = "PullSecret"]; // env contains additional environment variables you want to pass into a builder container. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3 [(gogoproto.customname) = "Env", (gogoproto.nullable) = false]; // exposeDockerSocket will allow running Docker commands (and build Docker images) from // inside the Docker container. // TODO: Allow admins to enforce 'false' for this option - optional bool exposeDockerSocket = 4; + optional bool exposeDockerSocket = 4 [(gogoproto.customname) = "ExposeDockerSocket", (gogoproto.nullable) = false]; // forcePull describes if the controller should configure the build pod to always pull the images // for the builder or only pull if it is not present locally - optional bool forcePull = 5; + optional bool forcePull = 5 [(gogoproto.customname) = "ForcePull", (gogoproto.nullable) = false]; // secrets is a list of additional secrets that will be included in the build pod - repeated SecretSpec secrets = 6; + repeated SecretSpec secrets = 6 [(gogoproto.customname) = "Secrets", (gogoproto.nullable) = false]; // buildAPIVersion is the requested API version for the Build object serialized and passed to the custom builder - optional string buildAPIVersion = 7; + optional string buildAPIVersion = 7 [(gogoproto.customname) = "BuildAPIVersion", (gogoproto.nullable) = false]; } // DockerBuildStrategy defines input parameters specific to Docker build. @@ -613,30 +623,30 @@ message DockerBuildStrategy { // from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which // the docker image should be pulled // the resulting image will be used in the FROM line of the Dockerfile for this build. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From"]; // pullSecret is the name of a Secret that would be used for setting up // the authentication for pulling the Docker images from the private Docker // registries - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 2; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 2 [(gogoproto.customname) = "PullSecret"]; // noCache if set to true indicates that the docker build must be executed with the // --no-cache=true flag - optional bool noCache = 3; + optional bool noCache = 3 [(gogoproto.customname) = "NoCache", (gogoproto.nullable) = false]; // env contains additional environment variables you want to pass into a builder container. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 4; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 4 [(gogoproto.customname) = "Env", (gogoproto.nullable) = false]; // forcePull describes if the builder should pull the images from registry prior to building. - optional bool forcePull = 5; + optional bool forcePull = 5 [(gogoproto.customname) = "ForcePull", (gogoproto.nullable) = false]; // dockerfilePath is the path of the Dockerfile that will be used to build the Docker image, // relative to the root of the context (contextDir). - optional string dockerfilePath = 6; + optional string dockerfilePath = 6 [(gogoproto.customname) = "DockerfilePath", (gogoproto.nullable) = false]; // buildArgs contains build arguments that will be resolved in the Dockerfile. See // https://docs.docker.com/engine/reference/builder/#/arg for more details. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar buildArgs = 7; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar buildArgs = 7 [(gogoproto.customname) = "BuildArgs", (gogoproto.nullable) = false]; // imageOptimizationPolicy describes what optimizations the system can use when building images // to reduce the final size or time spent building the image. The default policy is 'None' which @@ -645,17 +655,17 @@ message DockerBuildStrategy { // image step, and will fail if the Dockerfile cannot provide compatibility with the 'None' // policy. An additional experimental policy 'SkipLayersAndWarn' is the same as // 'SkipLayers' but simply warns if compatibility cannot be preserved. - optional string imageOptimizationPolicy = 8; + optional string imageOptimizationPolicy = 8 [(gogoproto.casttype) = "ImageOptimizationPolicy", (gogoproto.customname) = "ImageOptimizationPolicy"]; } // DockerStrategyOptions contains extra strategy options for Docker builds message DockerStrategyOptions { // Args contains any build arguments that are to be passed to Docker. See // https://docs.docker.com/engine/reference/builder/#/arg for more details - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar buildArgs = 1; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar buildArgs = 1 [(gogoproto.customname) = "BuildArgs", (gogoproto.nullable) = false]; // noCache overrides the docker-strategy noCache option in the build config - optional bool noCache = 2; + optional bool noCache = 2 [(gogoproto.customname) = "NoCache"]; } // GenericWebHookCause holds information about a generic WebHook that @@ -663,111 +673,111 @@ message DockerStrategyOptions { message GenericWebHookCause { // revision is an optional field that stores the git source revision // information of the generic webhook trigger when it is available. - optional SourceRevision revision = 1; + optional SourceRevision revision = 1 [(gogoproto.customname) = "Revision"]; // secret is the obfuscated webhook secret that triggered a build. - optional string secret = 2; + optional string secret = 2 [(gogoproto.customname) = "Secret", (gogoproto.nullable) = false]; } // GenericWebHookEvent is the payload expected for a generic webhook post message GenericWebHookEvent { // type is the type of source repository // +k8s:conversion-gen=false - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "BuildSourceType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // git is the git information if the Type is BuildSourceGit - optional GitInfo git = 2; + optional GitInfo git = 2 [(gogoproto.customname) = "Git"]; // env contains additional environment variables you want to pass into a builder container. // ValueFrom is not supported. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3 [(gogoproto.customname) = "Env", (gogoproto.nullable) = false]; // DockerStrategyOptions contains additional docker-strategy specific options for the build - optional DockerStrategyOptions dockerStrategyOptions = 4; + optional DockerStrategyOptions dockerStrategyOptions = 4 [(gogoproto.customname) = "DockerStrategyOptions"]; } // GitBuildSource defines the parameters of a Git SCM message GitBuildSource { // uri points to the source that will be built. The structure of the source // will depend on the type of build to run - optional string uri = 1; + optional string uri = 1 [(gogoproto.customname) = "URI", (gogoproto.nullable) = false]; // ref is the branch/tag/ref to build. - optional string ref = 2; + optional string ref = 2 [(gogoproto.customname) = "Ref", (gogoproto.nullable) = false]; // proxyConfig defines the proxies to use for the git clone operation - optional ProxyConfig proxyConfig = 3; + optional ProxyConfig proxyConfig = 3 [(gogoproto.customname) = "ProxyConfig", (gogoproto.nullable) = false]; } // GitHubWebHookCause has information about a GitHub webhook that triggered a // build. message GitHubWebHookCause { // revision is the git revision information of the trigger. - optional SourceRevision revision = 1; + optional SourceRevision revision = 1 [(gogoproto.customname) = "Revision"]; // secret is the obfuscated webhook secret that triggered a build. - optional string secret = 2; + optional string secret = 2 [(gogoproto.customname) = "Secret", (gogoproto.nullable) = false]; } // GitInfo is the aggregated git information for a generic webhook post message GitInfo { - optional GitBuildSource gitBuildSource = 1; + optional GitBuildSource gitBuildSource = 1 [(gogoproto.customname) = "GitBuildSource", (gogoproto.nullable) = false]; - optional GitSourceRevision gitSourceRevision = 2; + optional GitSourceRevision gitSourceRevision = 2 [(gogoproto.customname) = "GitSourceRevision", (gogoproto.nullable) = false]; } // GitLabWebHookCause has information about a GitLab webhook that triggered a // build. message GitLabWebHookCause { - optional CommonWebHookCause commonSpec = 1; + optional CommonWebHookCause commonSpec = 1 [(gogoproto.customname) = "CommonWebHookCause", (gogoproto.nullable) = false]; } // GitSourceRevision is the commit information from a git source for a build message GitSourceRevision { // commit is the commit hash identifying a specific commit - optional string commit = 1; + optional string commit = 1 [(gogoproto.customname) = "Commit", (gogoproto.nullable) = false]; // author is the author of a specific commit - optional SourceControlUser author = 2; + optional SourceControlUser author = 2 [(gogoproto.customname) = "Author", (gogoproto.nullable) = false]; // committer is the committer of a specific commit - optional SourceControlUser committer = 3; + optional SourceControlUser committer = 3 [(gogoproto.customname) = "Committer", (gogoproto.nullable) = false]; // message is the description of a specific commit - optional string message = 4; + optional string message = 4 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; } // ImageChangeCause contains information about the image that triggered a // build message ImageChangeCause { // imageID is the ID of the image that triggered a a new build. - optional string imageID = 1; + optional string imageID = 1 [(gogoproto.customname) = "ImageID", (gogoproto.nullable) = false]; // fromRef contains detailed information about an image that triggered a // build. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference fromRef = 2; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference fromRef = 2 [(gogoproto.customname) = "FromRef"]; } // ImageChangeTrigger allows builds to be triggered when an ImageStream changes message ImageChangeTrigger { // lastTriggeredImageID is used internally by the ImageChangeController to save last // used image ID for build - optional string lastTriggeredImageID = 1; + optional string lastTriggeredImageID = 1 [(gogoproto.customname) = "LastTriggeredImageID", (gogoproto.nullable) = false]; // from is a reference to an ImageStreamTag that will trigger a build when updated // It is optional. If no From is specified, the From image from the build strategy // will be used. Only one ImageChangeTrigger with an empty From reference is allowed in // a build configuration. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 2; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 2 [(gogoproto.customname) = "From"]; } // ImageLabel represents a label applied to the resulting image. message ImageLabel { // name defines the name of the label. It must have non-zero length. - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // value defines the literal value of the label. - optional string value = 2; + optional string value = 2 [(gogoproto.customname) = "Value", (gogoproto.nullable) = false]; } // ImageSource is used to describe build source that will be extracted from an image. A reference of @@ -778,14 +788,14 @@ message ImageLabel { message ImageSource { // from is a reference to an ImageStreamTag, ImageStreamImage, or DockerImage to // copy source from. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // paths is a list of source and destination paths to copy from the image. - repeated ImageSourcePath paths = 2; + repeated ImageSourcePath paths = 2 [(gogoproto.customname) = "Paths", (gogoproto.nullable) = false]; // pullSecret is a reference to a secret to be used to pull the image from a registry // If the image is pulled from the OpenShift registry, this field does not need to be set. - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 3; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 3 [(gogoproto.customname) = "PullSecret"]; } // ImageSourcePath describes a path to be copied from a source image and its destination within the build directory. @@ -794,11 +804,11 @@ message ImageSourcePath { // copy to the build directory. If the source path ends in /. then the content of // the directory will be copied, but the directory itself will not be created at the // destination. - optional string sourcePath = 1; + optional string sourcePath = 1 [(gogoproto.customname) = "SourcePath", (gogoproto.nullable) = false]; // destinationDir is the relative directory within the build directory // where files copied from the image are placed. - optional string destinationDir = 2; + optional string destinationDir = 2 [(gogoproto.customname) = "DestinationDir", (gogoproto.nullable) = false]; } // JenkinsPipelineBuildStrategy holds parameters specific to a Jenkins Pipeline build. @@ -807,34 +817,37 @@ message JenkinsPipelineBuildStrategy { // JenkinsfilePath is the optional path of the Jenkinsfile that will be used to configure the pipeline // relative to the root of the context (contextDir). If both JenkinsfilePath & Jenkinsfile are // both not specified, this defaults to Jenkinsfile in the root of the specified contextDir. - optional string jenkinsfilePath = 1; + optional string jenkinsfilePath = 1 [(gogoproto.customname) = "JenkinsfilePath", (gogoproto.nullable) = false]; // Jenkinsfile defines the optional raw contents of a Jenkinsfile which defines a Jenkins pipeline build. - optional string jenkinsfile = 2; + optional string jenkinsfile = 2 [(gogoproto.customname) = "Jenkinsfile", (gogoproto.nullable) = false]; // env contains additional environment variables you want to pass into a build pipeline. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3 [(gogoproto.customname) = "Env", (gogoproto.nullable) = false]; } // OptionalNodeSelector is a map that may also be left nil to distinguish between set and unset. // +protobuf.nullable=true // +protobuf.options.(gogoproto.goproto_stringer)=false message OptionalNodeSelector { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + // items, if empty, will result in an empty map - map items = 1; + map items = 1 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ProxyConfig defines what proxies to use for an operation message ProxyConfig { // httpProxy is a proxy used to reach the git repository over http - optional string httpProxy = 3; + optional string httpProxy = 3 [(gogoproto.customname) = "HTTPProxy"]; // httpsProxy is a proxy used to reach the git repository over https - optional string httpsProxy = 4; + optional string httpsProxy = 4 [(gogoproto.customname) = "HTTPSProxy"]; // noProxy is the list of domains for which the proxy should not be used - optional string noProxy = 5; + optional string noProxy = 5 [(gogoproto.customname) = "NoProxy"]; } // SecretBuildSource describes a secret and its destination directory that will be @@ -843,7 +856,7 @@ message ProxyConfig { message SecretBuildSource { // secret is a reference to an existing secret that you want to use in your // build. - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference secret = 1; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference secret = 1 [(gogoproto.customname) = "Secret", (gogoproto.nullable) = false]; // destinationDir is the directory where the files from the secret should be // available for the build time. @@ -853,40 +866,40 @@ message SecretBuildSource { // For the Docker build strategy, these will be copied into the build // directory, where the Dockerfile is located, so users can ADD or COPY them // during docker build. - optional string destinationDir = 2; + optional string destinationDir = 2 [(gogoproto.customname) = "DestinationDir", (gogoproto.nullable) = false]; } // SecretSpec specifies a secret to be included in a build pod and its corresponding mount point message SecretSpec { // secretSource is a reference to the secret - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference secretSource = 1; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference secretSource = 1 [(gogoproto.customname) = "SecretSource", (gogoproto.nullable) = false]; // mountPath is the path at which to mount the secret - optional string mountPath = 2; + optional string mountPath = 2 [(gogoproto.customname) = "MountPath", (gogoproto.nullable) = false]; } // SourceBuildStrategy defines input parameters specific to an Source build. message SourceBuildStrategy { // from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which // the docker image should be pulled - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // pullSecret is the name of a Secret that would be used for setting up // the authentication for pulling the Docker images from the private Docker // registries - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 2; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 2 [(gogoproto.customname) = "PullSecret"]; // env contains additional environment variables you want to pass into a builder container. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3 [(gogoproto.customname) = "Env", (gogoproto.nullable) = false]; // scripts is the location of Source scripts - optional string scripts = 4; + optional string scripts = 4 [(gogoproto.customname) = "Scripts", (gogoproto.nullable) = false]; // incremental flag forces the Source build to do incremental builds if true. - optional bool incremental = 5; + optional bool incremental = 5 [(gogoproto.customname) = "Incremental"]; // forcePull describes if the builder should pull the images from registry prior to building. - optional bool forcePull = 6; + optional bool forcePull = 6 [(gogoproto.customname) = "ForcePull", (gogoproto.nullable) = false]; // runtimeImage is an optional image that is used to run an application // without unneeded dependencies installed. The building of the application @@ -894,7 +907,7 @@ message SourceBuildStrategy { // needed artifacts in the runtime image for use. // Deprecated: This feature will be removed in a future release. Use ImageSource // to copy binary artifacts created from one build into a separate runtime image. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference runtimeImage = 7; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference runtimeImage = 7 [(gogoproto.customname) = "RuntimeImage"]; // runtimeArtifacts specifies a list of source/destination pairs that will be // copied from the builder to the runtime image. sourcePath can be a file or @@ -902,75 +915,75 @@ message SourceBuildStrategy { // empty or equal to ".", in this case it just refers to the root of WORKDIR. // Deprecated: This feature will be removed in a future release. Use ImageSource // to copy binary artifacts created from one build into a separate runtime image. - repeated ImageSourcePath runtimeArtifacts = 8; + repeated ImageSourcePath runtimeArtifacts = 8 [(gogoproto.customname) = "RuntimeArtifacts", (gogoproto.nullable) = false]; } // SourceControlUser defines the identity of a user of source control message SourceControlUser { // name of the source control user - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // email of the source control user - optional string email = 2; + optional string email = 2 [(gogoproto.customname) = "Email", (gogoproto.nullable) = false]; } // SourceRevision is the revision or commit information from the source for the build message SourceRevision { // type of the build source, may be one of 'Source', 'Dockerfile', 'Binary', or 'Images' // +k8s:conversion-gen=false - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "BuildSourceType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Git contains information about git-based build source - optional GitSourceRevision git = 2; + optional GitSourceRevision git = 2 [(gogoproto.customname) = "Git"]; } // SourceStrategyOptions contains extra strategy options for Source builds message SourceStrategyOptions { // incremental overrides the source-strategy incremental option in the build config - optional bool incremental = 1; + optional bool incremental = 1 [(gogoproto.customname) = "Incremental"]; } // StageInfo contains details about a build stage. message StageInfo { // name is a unique identifier for each build stage that occurs. - optional string name = 1; + optional string name = 1 [(gogoproto.casttype) = "StageName", (gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // startTime is a timestamp representing the server time when this Stage started. // It is represented in RFC3339 form and is in UTC. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 2; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 2 [(gogoproto.customname) = "StartTime", (gogoproto.nullable) = false]; // durationMilliseconds identifies how long the stage took // to complete in milliseconds. // Note: the duration of a stage can exceed the sum of the duration of the steps within // the stage as not all actions are accounted for in explicit build steps. - optional int64 durationMilliseconds = 3; + optional int64 durationMilliseconds = 3 [(gogoproto.customname) = "DurationMilliseconds", (gogoproto.nullable) = false]; // steps contains details about each step that occurs during a build stage // including start time and duration in milliseconds. - repeated StepInfo steps = 4; + repeated StepInfo steps = 4 [(gogoproto.customname) = "Steps", (gogoproto.nullable) = false]; } // StepInfo contains details about a build step. message StepInfo { // name is a unique identifier for each build step. - optional string name = 1; + optional string name = 1 [(gogoproto.casttype) = "StepName", (gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // startTime is a timestamp representing the server time when this Step started. // it is represented in RFC3339 form and is in UTC. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 2; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 2 [(gogoproto.customname) = "StartTime", (gogoproto.nullable) = false]; // durationMilliseconds identifies how long the step took // to complete in milliseconds. - optional int64 durationMilliseconds = 3; + optional int64 durationMilliseconds = 3 [(gogoproto.customname) = "DurationMilliseconds", (gogoproto.nullable) = false]; } // WebHookTrigger is a trigger that gets invoked using a webhook type of post message WebHookTrigger { // secret used to validate requests. - optional string secret = 1; + optional string secret = 1 [(gogoproto.customname) = "Secret", (gogoproto.nullable) = false]; // allowEnv determines whether the webhook can set environment variables; can only // be set to true for GenericWebHook. - optional bool allowEnv = 2; + optional bool allowEnv = 2 [(gogoproto.customname) = "AllowEnv", (gogoproto.nullable) = false]; } diff --git a/api/protobuf-spec/github_com_openshift_origin_pkg_deploy_apis_apps_v1.proto b/api/protobuf-spec/github_com_openshift_origin_pkg_deploy_apis_apps_v1.proto index cbe661809b57..6589f2a65d17 100644 --- a/api/protobuf-spec/github_com_openshift_origin_pkg_deploy_apis_apps_v1.proto +++ b/api/protobuf-spec/github_com_openshift_origin_pkg_deploy_apis_apps_v1.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -13,27 +14,36 @@ import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; import "k8s.io/kubernetes/pkg/apis/policy/v1beta1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // CustomDeploymentStrategyParams are the input to the Custom deployment strategy. message CustomDeploymentStrategyParams { // Image specifies a Docker image which can carry out a deployment. - optional string image = 1; + optional string image = 1 [(gogoproto.customname) = "Image", (gogoproto.nullable) = false]; // Environment holds the environment which will be given to the container for Image. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar environment = 2; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar environment = 2 [(gogoproto.customname) = "Environment", (gogoproto.nullable) = false]; // Command is optional and overrides CMD in the container Image. - repeated string command = 3; + repeated string command = 3 [(gogoproto.customname) = "Command"]; } // DeploymentCause captures information about a particular cause of a deployment. message DeploymentCause { // Type of the trigger that resulted in the creation of a new deployment - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "DeploymentTriggerType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // ImageTrigger contains the image trigger details, if this trigger was fired based on an image change - optional DeploymentCauseImageTrigger imageTrigger = 2; + optional DeploymentCauseImageTrigger imageTrigger = 2 [(gogoproto.customname) = "ImageTrigger"]; } // DeploymentCauseImageTrigger represents details about the cause of a deployment originating @@ -41,28 +51,28 @@ message DeploymentCause { message DeploymentCauseImageTrigger { // From is a reference to the changed object which triggered a deployment. The field may have // the kinds DockerImage, ImageStreamTag, or ImageStreamImage. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; } // DeploymentCondition describes the state of a deployment config at a certain point. message DeploymentCondition { // Type of deployment condition. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "DeploymentConditionType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Status of the condition, one of True, False, Unknown. - optional string status = 2; + optional string status = 2 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.ConditionStatus", (gogoproto.customname) = "Status", (gogoproto.nullable) = false]; // The last time this condition was updated. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6 [(gogoproto.customname) = "LastUpdateTime", (gogoproto.nullable) = false]; // The last time the condition transitioned from one status to another. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3 [(gogoproto.customname) = "LastTransitionTime", (gogoproto.nullable) = false]; // The reason for the condition's last transition. - optional string reason = 4; + optional string reason = 4 [(gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // A human readable message indicating details about the transition. - optional string message = 5; + optional string message = 5 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; } // Deployment Configs define the template for a pod and manages deploying new images or configuration changes. @@ -76,139 +86,139 @@ message DeploymentCondition { // is triggered by any means. message DeploymentConfig { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Spec represents a desired deployment state and how to deploy to it. - optional DeploymentConfigSpec spec = 2; + optional DeploymentConfigSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status represents the current deployment state. - optional DeploymentConfigStatus status = 3; + optional DeploymentConfigStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // DeploymentConfigList is a collection of deployment configs. message DeploymentConfigList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of deployment configs - repeated DeploymentConfig items = 2; + repeated DeploymentConfig items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // DeploymentConfigRollback provides the input to rollback generation. message DeploymentConfigRollback { // Name of the deployment config that will be rolled back. - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // UpdatedAnnotations is a set of new annotations that will be added in the deployment config. - map updatedAnnotations = 2; + map updatedAnnotations = 2 [(gogoproto.customname) = "UpdatedAnnotations", (gogoproto.nullable) = false]; // Spec defines the options to rollback generation. - optional DeploymentConfigRollbackSpec spec = 3; + optional DeploymentConfigRollbackSpec spec = 3 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; } // DeploymentConfigRollbackSpec represents the options for rollback generation. message DeploymentConfigRollbackSpec { // From points to a ReplicationController which is a deployment. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // Revision to rollback to. If set to 0, rollback to the last revision. - optional int64 revision = 2; + optional int64 revision = 2 [(gogoproto.customname) = "Revision", (gogoproto.nullable) = false]; // IncludeTriggers specifies whether to include config Triggers. - optional bool includeTriggers = 3; + optional bool includeTriggers = 3 [(gogoproto.customname) = "IncludeTriggers", (gogoproto.nullable) = false]; // IncludeTemplate specifies whether to include the PodTemplateSpec. - optional bool includeTemplate = 4; + optional bool includeTemplate = 4 [(gogoproto.customname) = "IncludeTemplate", (gogoproto.nullable) = false]; // IncludeReplicationMeta specifies whether to include the replica count and selector. - optional bool includeReplicationMeta = 5; + optional bool includeReplicationMeta = 5 [(gogoproto.customname) = "IncludeReplicationMeta", (gogoproto.nullable) = false]; // IncludeStrategy specifies whether to include the deployment Strategy. - optional bool includeStrategy = 6; + optional bool includeStrategy = 6 [(gogoproto.customname) = "IncludeStrategy", (gogoproto.nullable) = false]; } // DeploymentConfigSpec represents the desired state of the deployment. message DeploymentConfigSpec { // Strategy describes how a deployment is executed. - optional DeploymentStrategy strategy = 1; + optional DeploymentStrategy strategy = 1 [(gogoproto.customname) = "Strategy", (gogoproto.nullable) = false]; // MinReadySeconds is the minimum number of seconds for which a newly created pod should // be ready without any of its container crashing, for it to be considered available. // Defaults to 0 (pod will be considered available as soon as it is ready) - optional int32 minReadySeconds = 9; + optional int32 minReadySeconds = 9 [(gogoproto.customname) = "MinReadySeconds", (gogoproto.nullable) = false]; // Triggers determine how updates to a DeploymentConfig result in new deployments. If no triggers // are defined, a new deployment can only occur as a result of an explicit client update to the // DeploymentConfig with a new LatestVersion. If null, defaults to having a config change trigger. - optional DeploymentTriggerPolicies triggers = 2; + optional DeploymentTriggerPolicies triggers = 2 [(gogoproto.customname) = "Triggers"]; // Replicas is the number of desired replicas. - optional int32 replicas = 3; + optional int32 replicas = 3 [(gogoproto.customname) = "Replicas", (gogoproto.nullable) = false]; // RevisionHistoryLimit is the number of old ReplicationControllers to retain to allow for rollbacks. // This field is a pointer to allow for differentiation between an explicit zero and not specified. // Defaults to 10. (This only applies to DeploymentConfigs created via the new group API resource, not the legacy resource.) - optional int32 revisionHistoryLimit = 4; + optional int32 revisionHistoryLimit = 4 [(gogoproto.customname) = "RevisionHistoryLimit"]; // Test ensures that this deployment config will have zero replicas except while a deployment is running. This allows the // deployment config to be used as a continuous deployment test - triggering on images, running the deployment, and then succeeding // or failing. Post strategy hooks and After actions can be used to integrate successful deployment with an action. - optional bool test = 5; + optional bool test = 5 [(gogoproto.customname) = "Test", (gogoproto.nullable) = false]; // Paused indicates that the deployment config is paused resulting in no new deployments on template // changes or changes in the template caused by other triggers. - optional bool paused = 6; + optional bool paused = 6 [(gogoproto.customname) = "Paused", (gogoproto.nullable) = false]; // Selector is a label query over pods that should match the Replicas count. - map selector = 7; + map selector = 7 [(gogoproto.customname) = "Selector", (gogoproto.nullable) = false]; // Template is the object that describes the pod that will be created if // insufficient replicas are detected. - optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 8; + optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 8 [(gogoproto.customname) = "Template"]; } // DeploymentConfigStatus represents the current deployment state. message DeploymentConfigStatus { // LatestVersion is used to determine whether the current deployment associated with a deployment // config is out of sync. - optional int64 latestVersion = 1; + optional int64 latestVersion = 1 [(gogoproto.customname) = "LatestVersion", (gogoproto.nullable) = false]; // ObservedGeneration is the most recent generation observed by the deployment config controller. - optional int64 observedGeneration = 2; + optional int64 observedGeneration = 2 [(gogoproto.customname) = "ObservedGeneration", (gogoproto.nullable) = false]; // Replicas is the total number of pods targeted by this deployment config. - optional int32 replicas = 3; + optional int32 replicas = 3 [(gogoproto.customname) = "Replicas", (gogoproto.nullable) = false]; // UpdatedReplicas is the total number of non-terminated pods targeted by this deployment config // that have the desired template spec. - optional int32 updatedReplicas = 4; + optional int32 updatedReplicas = 4 [(gogoproto.customname) = "UpdatedReplicas", (gogoproto.nullable) = false]; // AvailableReplicas is the total number of available pods targeted by this deployment config. - optional int32 availableReplicas = 5; + optional int32 availableReplicas = 5 [(gogoproto.customname) = "AvailableReplicas", (gogoproto.nullable) = false]; // UnavailableReplicas is the total number of unavailable pods targeted by this deployment config. - optional int32 unavailableReplicas = 6; + optional int32 unavailableReplicas = 6 [(gogoproto.customname) = "UnavailableReplicas", (gogoproto.nullable) = false]; // Details are the reasons for the update to this deployment config. // This could be based on a change made by the user or caused by an automatic trigger - optional DeploymentDetails details = 7; + optional DeploymentDetails details = 7 [(gogoproto.customname) = "Details"]; // Conditions represents the latest available observations of a deployment config's current state. // +patchMergeKey=type // +patchStrategy=merge - repeated DeploymentCondition conditions = 8; + repeated DeploymentCondition conditions = 8 [(gogoproto.customname) = "Conditions", (gogoproto.nullable) = false]; // Total number of ready pods targeted by this deployment. - optional int32 readyReplicas = 9; + optional int32 readyReplicas = 9 [(gogoproto.customname) = "ReadyReplicas", (gogoproto.nullable) = false]; } // DeploymentDetails captures information about the causes of a deployment. message DeploymentDetails { // Message is the user specified change message, if this deployment was triggered manually by the user - optional string message = 1; + optional string message = 1 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; // Causes are extended data associated with all the causes for creating a new deployment - repeated DeploymentCause causes = 2; + repeated DeploymentCause causes = 2 [(gogoproto.customname) = "Causes", (gogoproto.nullable) = false]; } // DeploymentLog represents the logs for a deployment @@ -218,134 +228,137 @@ message DeploymentLog { // DeploymentLogOptions is the REST options for a deployment log message DeploymentLogOptions { // The container for which to stream logs. Defaults to only container if there is one container in the pod. - optional string container = 1; + optional string container = 1 [(gogoproto.customname) = "Container", (gogoproto.nullable) = false]; // Follow if true indicates that the build log should be streamed until // the build terminates. - optional bool follow = 2; + optional bool follow = 2 [(gogoproto.customname) = "Follow", (gogoproto.nullable) = false]; // Return previous deployment logs. Defaults to false. - optional bool previous = 3; + optional bool previous = 3 [(gogoproto.customname) = "Previous", (gogoproto.nullable) = false]; // A relative time in seconds before the current time from which to show logs. If this value // precedes the time a pod was started, only logs since the pod start will be returned. // If this value is in the future, no logs will be returned. // Only one of sinceSeconds or sinceTime may be specified. - optional int64 sinceSeconds = 4; + optional int64 sinceSeconds = 4 [(gogoproto.customname) = "SinceSeconds"]; // An RFC3339 timestamp from which to show logs. If this value // precedes the time a pod was started, only logs since the pod start will be returned. // If this value is in the future, no logs will be returned. // Only one of sinceSeconds or sinceTime may be specified. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5 [(gogoproto.customname) = "SinceTime"]; // If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line // of log output. Defaults to false. - optional bool timestamps = 6; + optional bool timestamps = 6 [(gogoproto.customname) = "Timestamps", (gogoproto.nullable) = false]; // If set, the number of lines from the end of the logs to show. If not specified, // logs are shown from the creation of the container or sinceSeconds or sinceTime - optional int64 tailLines = 7; + optional int64 tailLines = 7 [(gogoproto.customname) = "TailLines"]; // If set, the number of bytes to read from the server before terminating the // log output. This may not display a complete final line of logging, and may return // slightly more or slightly less than the specified limit. - optional int64 limitBytes = 8; + optional int64 limitBytes = 8 [(gogoproto.customname) = "LimitBytes"]; // NoWait if true causes the call to return immediately even if the deployment // is not available yet. Otherwise the server will wait until the deployment has started. // TODO: Fix the tag to 'noWait' in v2 - optional bool nowait = 9; + optional bool nowait = 9 [(gogoproto.customname) = "NoWait", (gogoproto.nullable) = false]; // Version of the deployment for which to view logs. - optional int64 version = 10; + optional int64 version = 10 [(gogoproto.customname) = "Version"]; } // DeploymentRequest is a request to a deployment config for a new deployment. message DeploymentRequest { // Name of the deployment config for requesting a new deployment. - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // Latest will update the deployment config with the latest state from all triggers. - optional bool latest = 2; + optional bool latest = 2 [(gogoproto.customname) = "Latest", (gogoproto.nullable) = false]; // Force will try to force a new deployment to run. If the deployment config is paused, // then setting this to true will return an Invalid error. - optional bool force = 3; + optional bool force = 3 [(gogoproto.customname) = "Force", (gogoproto.nullable) = false]; // ExcludeTriggers instructs the instantiator to avoid processing the specified triggers. // This field overrides the triggers from latest and allows clients to control specific // logic. This field is ignored if not specified. - repeated string excludeTriggers = 4; + repeated string excludeTriggers = 4 [(gogoproto.casttype) = "DeploymentTriggerType", (gogoproto.customname) = "ExcludeTriggers"]; } // DeploymentStrategy describes how to perform a deployment. message DeploymentStrategy { // Type is the name of a deployment strategy. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "DeploymentStrategyType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // CustomParams are the input to the Custom deployment strategy, and may also // be specified for the Recreate and Rolling strategies to customize the execution // process that runs the deployment. - optional CustomDeploymentStrategyParams customParams = 2; + optional CustomDeploymentStrategyParams customParams = 2 [(gogoproto.customname) = "CustomParams"]; // RecreateParams are the input to the Recreate deployment strategy. - optional RecreateDeploymentStrategyParams recreateParams = 3; + optional RecreateDeploymentStrategyParams recreateParams = 3 [(gogoproto.customname) = "RecreateParams"]; // RollingParams are the input to the Rolling deployment strategy. - optional RollingDeploymentStrategyParams rollingParams = 4; + optional RollingDeploymentStrategyParams rollingParams = 4 [(gogoproto.customname) = "RollingParams"]; // Resources contains resource requirements to execute the deployment and any hooks. - optional k8s.io.kubernetes.pkg.api.v1.ResourceRequirements resources = 5; + optional k8s.io.kubernetes.pkg.api.v1.ResourceRequirements resources = 5 [(gogoproto.customname) = "Resources", (gogoproto.nullable) = false]; // Labels is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods. - map labels = 6; + map labels = 6 [(gogoproto.customname) = "Labels", (gogoproto.nullable) = false]; // Annotations is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods. - map annotations = 7; + map annotations = 7 [(gogoproto.customname) = "Annotations", (gogoproto.nullable) = false]; // ActiveDeadlineSeconds is the duration in seconds that the deployer pods for this deployment // config may be active on a node before the system actively tries to terminate them. - optional int64 activeDeadlineSeconds = 8; + optional int64 activeDeadlineSeconds = 8 [(gogoproto.customname) = "ActiveDeadlineSeconds"]; } // DeploymentTriggerImageChangeParams represents the parameters to the ImageChange trigger. message DeploymentTriggerImageChangeParams { // Automatic means that the detection of a new tag value should result in an image update // inside the pod template. - optional bool automatic = 1; + optional bool automatic = 1 [(gogoproto.customname) = "Automatic", (gogoproto.nullable) = false]; // ContainerNames is used to restrict tag updates to the specified set of container names in a pod. // If multiple triggers point to the same containers, the resulting behavior is undefined. Future // API versions will make this a validation error. If ContainerNames does not point to a valid container, // the trigger will be ignored. Future API versions will make this a validation error. - repeated string containerNames = 2; + repeated string containerNames = 2 [(gogoproto.customname) = "ContainerNames"]; // From is a reference to an image stream tag to watch for changes. From.Name is the only // required subfield - if From.Namespace is blank, the namespace of the current deployment // trigger will be used. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 3; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 3 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // LastTriggeredImage is the last image to be triggered. - optional string lastTriggeredImage = 4; + optional string lastTriggeredImage = 4 [(gogoproto.customname) = "LastTriggeredImage", (gogoproto.nullable) = false]; } // DeploymentTriggerPolicies is a list of policies where nil values and different from empty arrays. // +protobuf.nullable=true // +protobuf.options.(gogoproto.goproto_stringer)=false message DeploymentTriggerPolicies { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + // items, if empty, will result in an empty slice - repeated DeploymentTriggerPolicy items = 1; + repeated DeploymentTriggerPolicy items = 1 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // DeploymentTriggerPolicy describes a policy for a single trigger that results in a new deployment. message DeploymentTriggerPolicy { // Type of the trigger - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "DeploymentTriggerType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // ImageChangeParams represents the parameters for the ImageChange trigger. - optional DeploymentTriggerImageChangeParams imageChangeParams = 2; + optional DeploymentTriggerImageChangeParams imageChangeParams = 2 [(gogoproto.customname) = "ImageChangeParams"]; } // ExecNewPodHook is a hook implementation which runs a command in a new pod @@ -353,31 +366,31 @@ message DeploymentTriggerPolicy { // deployment template. message ExecNewPodHook { // Command is the action command and its arguments. - repeated string command = 1; + repeated string command = 1 [(gogoproto.customname) = "Command"]; // Env is a set of environment variables to supply to the hook pod's container. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 2; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 2 [(gogoproto.customname) = "Env", (gogoproto.nullable) = false]; // ContainerName is the name of a container in the deployment pod template // whose Docker image will be used for the hook pod's container. - optional string containerName = 3; + optional string containerName = 3 [(gogoproto.customname) = "ContainerName", (gogoproto.nullable) = false]; // Volumes is a list of named volumes from the pod template which should be // copied to the hook pod. Volumes names not found in pod spec are ignored. // An empty list means no volumes will be copied. - repeated string volumes = 4; + repeated string volumes = 4 [(gogoproto.customname) = "Volumes"]; } // LifecycleHook defines a specific deployment lifecycle action. Only one type of action may be specified at any time. message LifecycleHook { // FailurePolicy specifies what action to take if the hook fails. - optional string failurePolicy = 1; + optional string failurePolicy = 1 [(gogoproto.casttype) = "LifecycleHookFailurePolicy", (gogoproto.customname) = "FailurePolicy", (gogoproto.nullable) = false]; // ExecNewPod specifies the options for a lifecycle hook backed by a pod. - optional ExecNewPodHook execNewPod = 2; + optional ExecNewPodHook execNewPod = 2 [(gogoproto.customname) = "ExecNewPod"]; // TagImages instructs the deployer to tag the current image referenced under a container onto an image stream tag. - repeated TagImageHook tagImages = 3; + repeated TagImageHook tagImages = 3 [(gogoproto.customname) = "TagImages", (gogoproto.nullable) = false]; } // RecreateDeploymentStrategyParams are the input to the Recreate deployment @@ -385,19 +398,19 @@ message LifecycleHook { message RecreateDeploymentStrategyParams { // TimeoutSeconds is the time to wait for updates before giving up. If the // value is nil, a default will be used. - optional int64 timeoutSeconds = 1; + optional int64 timeoutSeconds = 1 [(gogoproto.customname) = "TimeoutSeconds"]; // Pre is a lifecycle hook which is executed before the strategy manipulates // the deployment. All LifecycleHookFailurePolicy values are supported. - optional LifecycleHook pre = 2; + optional LifecycleHook pre = 2 [(gogoproto.customname) = "Pre"]; // Mid is a lifecycle hook which is executed while the deployment is scaled down to zero before the first new // pod is created. All LifecycleHookFailurePolicy values are supported. - optional LifecycleHook mid = 3; + optional LifecycleHook mid = 3 [(gogoproto.customname) = "Mid"]; // Post is a lifecycle hook which is executed after the strategy has // finished all deployment logic. All LifecycleHookFailurePolicy values are supported. - optional LifecycleHook post = 4; + optional LifecycleHook post = 4 [(gogoproto.customname) = "Post"]; } // RollingDeploymentStrategyParams are the input to the Rolling deployment @@ -405,15 +418,15 @@ message RecreateDeploymentStrategyParams { message RollingDeploymentStrategyParams { // UpdatePeriodSeconds is the time to wait between individual pod updates. // If the value is nil, a default will be used. - optional int64 updatePeriodSeconds = 1; + optional int64 updatePeriodSeconds = 1 [(gogoproto.customname) = "UpdatePeriodSeconds"]; // IntervalSeconds is the time to wait between polling deployment status // after update. If the value is nil, a default will be used. - optional int64 intervalSeconds = 2; + optional int64 intervalSeconds = 2 [(gogoproto.customname) = "IntervalSeconds"]; // TimeoutSeconds is the time to wait for updates before giving up. If the // value is nil, a default will be used. - optional int64 timeoutSeconds = 3; + optional int64 timeoutSeconds = 3 [(gogoproto.customname) = "TimeoutSeconds"]; // MaxUnavailable is the maximum number of pods that can be unavailable // during the update. Value can be an absolute number (ex: 5) or a @@ -427,7 +440,7 @@ message RollingDeploymentStrategyParams { // RC can be scaled down further, followed by scaling up the new RC, // ensuring that at least 70% of original number of pods are available at // all times during the update. - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 4; + optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 4 [(gogoproto.customname) = "MaxUnavailable"]; // MaxSurge is the maximum number of pods that can be scheduled above the // original number of pods. Value can be an absolute number (ex: 5) or a @@ -441,25 +454,25 @@ message RollingDeploymentStrategyParams { // killed, new RC can be scaled up further, ensuring that total number of // pods running at any time during the update is atmost 130% of original // pods. - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 5; + optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 5 [(gogoproto.customname) = "MaxSurge"]; // Pre is a lifecycle hook which is executed before the deployment process // begins. All LifecycleHookFailurePolicy values are supported. - optional LifecycleHook pre = 7; + optional LifecycleHook pre = 7 [(gogoproto.customname) = "Pre"]; // Post is a lifecycle hook which is executed after the strategy has // finished all deployment logic. All LifecycleHookFailurePolicy values // are supported. - optional LifecycleHook post = 8; + optional LifecycleHook post = 8 [(gogoproto.customname) = "Post"]; } // TagImageHook is a request to tag the image in a particular container onto an ImageStreamTag. message TagImageHook { // ContainerName is the name of a container in the deployment config whose image value will be used as the source of the tag. If there is only a single // container this value will be defaulted to the name of that container. - optional string containerName = 1; + optional string containerName = 1 [(gogoproto.customname) = "ContainerName", (gogoproto.nullable) = false]; // To is the target ImageStreamTag to set the container's image onto. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference to = 2; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference to = 2 [(gogoproto.customname) = "To", (gogoproto.nullable) = false]; } diff --git a/api/protobuf-spec/github_com_openshift_origin_pkg_image_apis_image_v1.proto b/api/protobuf-spec/github_com_openshift_origin_pkg_image_apis_image_v1.proto index bca0e2c04eef..75c613138efe 100644 --- a/api/protobuf-spec/github_com_openshift_origin_pkg_image_apis_image_v1.proto +++ b/api/protobuf-spec/github_com_openshift_origin_pkg_image_apis_image_v1.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,111 +13,120 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // DockerImageReference points to a Docker image. message DockerImageReference { // Registry is the registry that contains the Docker image - optional string registry = 1; + optional string registry = 1 [(gogoproto.customname) = "Registry", (gogoproto.nullable) = false]; // Namespace is the namespace that contains the Docker image - optional string namespace = 2; + optional string namespace = 2 [(gogoproto.customname) = "Namespace", (gogoproto.nullable) = false]; // Name is the name of the Docker image - optional string name = 3; + optional string name = 3 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // Tag is which tag of the Docker image is being referenced - optional string tag = 4; + optional string tag = 4 [(gogoproto.customname) = "Tag", (gogoproto.nullable) = false]; // ID is the identifier for the Docker image - optional string iD = 5; + optional string iD = 5 [(gogoproto.customname) = "ID", (gogoproto.nullable) = false]; } // Image is an immutable representation of a Docker image and metadata at a point in time. message Image { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // DockerImageReference is the string that can be used to pull this image. - optional string dockerImageReference = 2; + optional string dockerImageReference = 2 [(gogoproto.customname) = "DockerImageReference", (gogoproto.nullable) = false]; // DockerImageMetadata contains metadata about this image // +patchStrategy=replace - optional k8s.io.apimachinery.pkg.runtime.RawExtension dockerImageMetadata = 3; + optional k8s.io.apimachinery.pkg.runtime.RawExtension dockerImageMetadata = 3 [(gogoproto.customname) = "DockerImageMetadata", (gogoproto.nullable) = false]; // DockerImageMetadataVersion conveys the version of the object, which if empty defaults to "1.0" - optional string dockerImageMetadataVersion = 4; + optional string dockerImageMetadataVersion = 4 [(gogoproto.customname) = "DockerImageMetadataVersion", (gogoproto.nullable) = false]; // DockerImageManifest is the raw JSON of the manifest - optional string dockerImageManifest = 5; + optional string dockerImageManifest = 5 [(gogoproto.customname) = "DockerImageManifest", (gogoproto.nullable) = false]; // DockerImageLayers represents the layers in the image. May not be set if the image does not define that data. - repeated ImageLayer dockerImageLayers = 6; + repeated ImageLayer dockerImageLayers = 6 [(gogoproto.customname) = "DockerImageLayers", (gogoproto.nullable) = false]; // Signatures holds all signatures of the image. // +patchMergeKey=name // +patchStrategy=merge - repeated ImageSignature signatures = 7; + repeated ImageSignature signatures = 7 [(gogoproto.customname) = "Signatures", (gogoproto.nullable) = false]; // DockerImageSignatures provides the signatures as opaque blobs. This is a part of manifest schema v1. - repeated bytes dockerImageSignatures = 8; + repeated bytes dockerImageSignatures = 8 [(gogoproto.customname) = "DockerImageSignatures"]; // DockerImageManifestMediaType specifies the mediaType of manifest. This is a part of manifest schema v2. - optional string dockerImageManifestMediaType = 9; + optional string dockerImageManifestMediaType = 9 [(gogoproto.customname) = "DockerImageManifestMediaType", (gogoproto.nullable) = false]; // DockerImageConfig is a JSON blob that the runtime uses to set up the container. This is a part of manifest schema v2. - optional string dockerImageConfig = 10; + optional string dockerImageConfig = 10 [(gogoproto.customname) = "DockerImageConfig", (gogoproto.nullable) = false]; } // ImageImportSpec describes a request to import a specific image. message ImageImportSpec { // From is the source of an image to import; only kind DockerImage is allowed - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // To is a tag in the current image stream to assign the imported image to, if name is not specified the default tag from from.name will be used - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference to = 2; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference to = 2 [(gogoproto.customname) = "To"]; // ImportPolicy is the policy controlling how the image is imported - optional TagImportPolicy importPolicy = 3; + optional TagImportPolicy importPolicy = 3 [(gogoproto.customname) = "ImportPolicy", (gogoproto.nullable) = false]; // ReferencePolicy defines how other components should consume the image - optional TagReferencePolicy referencePolicy = 5; + optional TagReferencePolicy referencePolicy = 5 [(gogoproto.customname) = "ReferencePolicy", (gogoproto.nullable) = false]; // IncludeManifest determines if the manifest for each image is returned in the response - optional bool includeManifest = 4; + optional bool includeManifest = 4 [(gogoproto.customname) = "IncludeManifest", (gogoproto.nullable) = false]; } // ImageImportStatus describes the result of an image import. message ImageImportStatus { // Status is the status of the image import, including errors encountered while retrieving the image - optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 1 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; // Image is the metadata of that image, if the image was located - optional Image image = 2; + optional Image image = 2 [(gogoproto.customname) = "Image"]; // Tag is the tag this image was located under, if any - optional string tag = 3; + optional string tag = 3 [(gogoproto.customname) = "Tag", (gogoproto.nullable) = false]; } // ImageLayer represents a single layer of the image. Some images may have multiple layers. Some may have none. message ImageLayer { // Name of the layer as defined by the underlying store. - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // Size of the layer in bytes as defined by the underlying store. - optional int64 size = 2; + optional int64 size = 2 [(gogoproto.customname) = "LayerSize", (gogoproto.nullable) = false]; // MediaType of the referenced object. - optional string mediaType = 3; + optional string mediaType = 3 [(gogoproto.customname) = "MediaType", (gogoproto.nullable) = false]; } // ImageList is a list of Image objects. message ImageList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of images - repeated Image items = 2; + repeated Image items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ImageLookupPolicy describes how an image stream can be used to override the image references @@ -127,7 +137,7 @@ message ImageLookupPolicy { // this image stream, instead of reaching out to a remote registry. The name will // be fully qualified to an image ID if found. The tag's referencePolicy is taken // into account on the replaced value. Only works within the current namespace. - optional bool local = 3; + optional bool local = 3 [(gogoproto.customname) = "Local", (gogoproto.nullable) = false]; } // ImageSignature holds a signature of an image. It allows to verify image identity and possibly other claims @@ -137,36 +147,36 @@ message ImageLookupPolicy { // signature's content by the server. They serve just an informative purpose. message ImageSignature { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Required: Describes a type of stored blob. - optional string type = 2; + optional string type = 2 [(gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Required: An opaque binary string which is an image's signature. - optional bytes content = 3; + optional bytes content = 3 [(gogoproto.customname) = "Content"]; // Conditions represent the latest available observations of a signature's current state. // +patchMergeKey=type // +patchStrategy=merge - repeated SignatureCondition conditions = 4; + repeated SignatureCondition conditions = 4 [(gogoproto.customname) = "Conditions", (gogoproto.nullable) = false]; // A human readable string representing image's identity. It could be a product name and version, or an // image pull spec (e.g. "registry.access.redhat.com/rhel7/rhel:7.2"). - optional string imageIdentity = 5; + optional string imageIdentity = 5 [(gogoproto.customname) = "ImageIdentity", (gogoproto.nullable) = false]; // Contains claims from the signature. - map signedClaims = 6; + map signedClaims = 6 [(gogoproto.customname) = "SignedClaims", (gogoproto.nullable) = false]; // If specified, it is the time of signature's creation. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time created = 7; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time created = 7 [(gogoproto.customname) = "Created"]; // If specified, it holds information about an issuer of signing certificate or key (a person or entity // who signed the signing certificate or key). - optional SignatureIssuer issuedBy = 8; + optional SignatureIssuer issuedBy = 8 [(gogoproto.customname) = "IssuedBy"]; // If specified, it holds information about a subject of signing certificate or key (a person or entity // who signed the image). - optional SignatureSubject issuedTo = 9; + optional SignatureSubject issuedTo = 9 [(gogoproto.customname) = "IssuedTo"]; } // ImageStream stores a mapping of tags to images, metadata overrides that are applied @@ -174,22 +184,22 @@ message ImageSignature { // repository on a registry. message ImageStream { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Spec describes the desired state of this stream - optional ImageStreamSpec spec = 2; + optional ImageStreamSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status describes the current state of this stream - optional ImageStreamStatus status = 3; + optional ImageStreamStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // ImageStreamImage represents an Image that is retrieved by image name from an ImageStream. message ImageStreamImage { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Image associated with the ImageStream and image name. - optional Image image = 2; + optional Image image = 2 [(gogoproto.customname) = "Image", (gogoproto.nullable) = false]; } // The image stream import resource provides an easy way for a user to find and import Docker images @@ -202,280 +212,289 @@ message ImageStreamImage { // to create spec.tags directly into their image streams. message ImageStreamImport { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Spec is a description of the images that the user wishes to import - optional ImageStreamImportSpec spec = 2; + optional ImageStreamImportSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status is the the result of importing the image - optional ImageStreamImportStatus status = 3; + optional ImageStreamImportStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // ImageStreamImportSpec defines what images should be imported. message ImageStreamImportSpec { // Import indicates whether to perform an import - if so, the specified tags are set on the spec // and status of the image stream defined by the type meta. - optional bool import = 1; + optional bool import = 1 [(gogoproto.customname) = "Import", (gogoproto.nullable) = false]; // Repository is an optional import of an entire Docker image repository. A maximum limit on the // number of tags imported this way is imposed by the server. - optional RepositoryImportSpec repository = 2; + optional RepositoryImportSpec repository = 2 [(gogoproto.customname) = "Repository"]; // Images are a list of individual images to import. - repeated ImageImportSpec images = 3; + repeated ImageImportSpec images = 3 [(gogoproto.customname) = "Images", (gogoproto.nullable) = false]; } // ImageStreamImportStatus contains information about the status of an image stream import. message ImageStreamImportStatus { // Import is the image stream that was successfully updated or created when 'to' was set. - optional ImageStream import = 1; + optional ImageStream import = 1 [(gogoproto.customname) = "Import"]; // Repository is set if spec.repository was set to the outcome of the import - optional RepositoryImportStatus repository = 2; + optional RepositoryImportStatus repository = 2 [(gogoproto.customname) = "Repository"]; // Images is set with the result of importing spec.images - repeated ImageImportStatus images = 3; + repeated ImageImportStatus images = 3 [(gogoproto.customname) = "Images", (gogoproto.nullable) = false]; } // ImageStreamList is a list of ImageStream objects. message ImageStreamList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of imageStreams - repeated ImageStream items = 2; + repeated ImageStream items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ImageStreamMapping represents a mapping from a single tag to a Docker image as // well as the reference to the Docker image stream the image came from. message ImageStreamMapping { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Image is a Docker image. - optional Image image = 2; + optional Image image = 2 [(gogoproto.customname) = "Image", (gogoproto.nullable) = false]; // Tag is a string value this image can be located with inside the stream. - optional string tag = 3; + optional string tag = 3 [(gogoproto.customname) = "Tag", (gogoproto.nullable) = false]; } // ImageStreamSpec represents options for ImageStreams. message ImageStreamSpec { // lookupPolicy controls how other resources reference images within this namespace. - optional ImageLookupPolicy lookupPolicy = 3; + optional ImageLookupPolicy lookupPolicy = 3 [(gogoproto.customname) = "LookupPolicy", (gogoproto.nullable) = false]; // dockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server - optional string dockerImageRepository = 1; + // Deprecated: This field is deprecated as of v3.7 and will be removed in a future release + // Specify the source for the tags to be imported in each tag via the spec.tags.from reference instead. + optional string dockerImageRepository = 1 [(gogoproto.customname) = "DockerImageRepository", (gogoproto.nullable) = false]; // tags map arbitrary string values to specific image locators - repeated TagReference tags = 2; + repeated TagReference tags = 2 [(gogoproto.customname) = "Tags", (gogoproto.nullable) = false]; } // ImageStreamStatus contains information about the state of this image stream. message ImageStreamStatus { // DockerImageRepository represents the effective location this stream may be accessed at. // May be empty until the server determines where the repository is located - optional string dockerImageRepository = 1; + optional string dockerImageRepository = 1 [(gogoproto.customname) = "DockerImageRepository", (gogoproto.nullable) = false]; // PublicDockerImageRepository represents the public location from where the image can // be pulled outside the cluster. This field may be empty if the administrator // has not exposed the integrated registry externally. - optional string publicDockerImageRepository = 3; + optional string publicDockerImageRepository = 3 [(gogoproto.customname) = "PublicDockerImageRepository", (gogoproto.nullable) = false]; // Tags are a historical record of images associated with each tag. The first entry in the // TagEvent array is the currently tagged image. - repeated NamedTagEventList tags = 2; + repeated NamedTagEventList tags = 2 [(gogoproto.customname) = "Tags", (gogoproto.nullable) = false]; } // ImageStreamTag represents an Image that is retrieved by tag name from an ImageStream. message ImageStreamTag { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // tag is the spec tag associated with this image stream tag, and it may be null // if only pushes have occurred to this image stream. - optional TagReference tag = 2; + optional TagReference tag = 2 [(gogoproto.customname) = "Tag"]; // generation is the current generation of the tagged image - if tag is provided // and this value is not equal to the tag generation, a user has requested an // import that has not completed, or conditions will be filled out indicating any // error. - optional int64 generation = 3; + optional int64 generation = 3 [(gogoproto.customname) = "Generation", (gogoproto.nullable) = false]; // lookupPolicy indicates whether this tag will handle image references in this // namespace. - optional ImageLookupPolicy lookupPolicy = 6; + optional ImageLookupPolicy lookupPolicy = 6 [(gogoproto.customname) = "LookupPolicy", (gogoproto.nullable) = false]; // conditions is an array of conditions that apply to the image stream tag. - repeated TagEventCondition conditions = 4; + repeated TagEventCondition conditions = 4 [(gogoproto.customname) = "Conditions", (gogoproto.nullable) = false]; // image associated with the ImageStream and tag. - optional Image image = 5; + optional Image image = 5 [(gogoproto.customname) = "Image", (gogoproto.nullable) = false]; } // ImageStreamTagList is a list of ImageStreamTag objects. message ImageStreamTagList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of image stream tags - repeated ImageStreamTag items = 2; + repeated ImageStreamTag items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // NamedTagEventList relates a tag to its image history. message NamedTagEventList { // Tag is the tag for which the history is recorded - optional string tag = 1; + optional string tag = 1 [(gogoproto.customname) = "Tag", (gogoproto.nullable) = false]; // Standard object's metadata. - repeated TagEvent items = 2; + repeated TagEvent items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; // Conditions is an array of conditions that apply to the tag event list. - repeated TagEventCondition conditions = 3; + repeated TagEventCondition conditions = 3 [(gogoproto.customname) = "Conditions", (gogoproto.nullable) = false]; } // RepositoryImportSpec describes a request to import images from a Docker image repository. message RepositoryImportSpec { // From is the source for the image repository to import; only kind DockerImage and a name of a Docker image repository is allowed - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // ImportPolicy is the policy controlling how the image is imported - optional TagImportPolicy importPolicy = 2; + optional TagImportPolicy importPolicy = 2 [(gogoproto.customname) = "ImportPolicy", (gogoproto.nullable) = false]; // ReferencePolicy defines how other components should consume the image - optional TagReferencePolicy referencePolicy = 4; + optional TagReferencePolicy referencePolicy = 4 [(gogoproto.customname) = "ReferencePolicy", (gogoproto.nullable) = false]; // IncludeManifest determines if the manifest for each image is returned in the response - optional bool includeManifest = 3; + optional bool includeManifest = 3 [(gogoproto.customname) = "IncludeManifest", (gogoproto.nullable) = false]; } // RepositoryImportStatus describes the result of an image repository import message RepositoryImportStatus { // Status reflects whether any failure occurred during import - optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 1 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; // Images is a list of images successfully retrieved by the import of the repository. - repeated ImageImportStatus images = 2; + repeated ImageImportStatus images = 2 [(gogoproto.customname) = "Images", (gogoproto.nullable) = false]; // AdditionalTags are tags that exist in the repository but were not imported because // a maximum limit of automatic imports was applied. - repeated string additionalTags = 3; + repeated string additionalTags = 3 [(gogoproto.customname) = "AdditionalTags"]; } // SignatureCondition describes an image signature condition of particular kind at particular probe time. message SignatureCondition { // Type of signature condition, Complete or Failed. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "SignatureConditionType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Status of the condition, one of True, False, Unknown. - optional string status = 2; + optional string status = 2 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.ConditionStatus", (gogoproto.customname) = "Status", (gogoproto.nullable) = false]; // Last time the condition was checked. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3 [(gogoproto.customname) = "LastProbeTime", (gogoproto.nullable) = false]; // Last time the condition transit from one status to another. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4 [(gogoproto.customname) = "LastTransitionTime", (gogoproto.nullable) = false]; // (brief) reason for the condition's last transition. - optional string reason = 5; + optional string reason = 5 [(gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // Human readable message indicating details about last transition. - optional string message = 6; + optional string message = 6 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; } // SignatureGenericEntity holds a generic information about a person or entity who is an issuer or a subject // of signing certificate or key. message SignatureGenericEntity { // Organization name. - optional string organization = 1; + optional string organization = 1 [(gogoproto.customname) = "Organization", (gogoproto.nullable) = false]; // Common name (e.g. openshift-signing-service). - optional string commonName = 2; + optional string commonName = 2 [(gogoproto.customname) = "CommonName", (gogoproto.nullable) = false]; } // SignatureIssuer holds information about an issuer of signing certificate or key. message SignatureIssuer { - optional SignatureGenericEntity signatureGenericEntity = 1; + optional SignatureGenericEntity signatureGenericEntity = 1 [(gogoproto.customname) = "SignatureGenericEntity", (gogoproto.nullable) = false]; } // SignatureSubject holds information about a person or entity who created the signature. message SignatureSubject { - optional SignatureGenericEntity signatureGenericEntity = 1; + optional SignatureGenericEntity signatureGenericEntity = 1 [(gogoproto.customname) = "SignatureGenericEntity", (gogoproto.nullable) = false]; // If present, it is a human readable key id of public key belonging to the subject used to verify image // signature. It should contain at least 64 lowest bits of public key's fingerprint (e.g. // 0x685ebe62bf278440). - optional string publicKeyID = 2; + optional string publicKeyID = 2 [(gogoproto.customname) = "PublicKeyID", (gogoproto.nullable) = false]; } // TagEvent is used by ImageStreamStatus to keep a historical record of images associated with a tag. message TagEvent { // Created holds the time the TagEvent was created - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time created = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time created = 1 [(gogoproto.customname) = "Created", (gogoproto.nullable) = false]; // DockerImageReference is the string that can be used to pull this image - optional string dockerImageReference = 2; + optional string dockerImageReference = 2 [(gogoproto.customname) = "DockerImageReference", (gogoproto.nullable) = false]; // Image is the image - optional string image = 3; + optional string image = 3 [(gogoproto.customname) = "Image", (gogoproto.nullable) = false]; // Generation is the spec tag generation that resulted in this tag being updated - optional int64 generation = 4; + optional int64 generation = 4 [(gogoproto.customname) = "Generation", (gogoproto.nullable) = false]; } // TagEventCondition contains condition information for a tag event. message TagEventCondition { // Type of tag event condition, currently only ImportSuccess - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "TagEventConditionType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Status of the condition, one of True, False, Unknown. - optional string status = 2; + optional string status = 2 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.ConditionStatus", (gogoproto.customname) = "Status", (gogoproto.nullable) = false]; // LastTransitionTIme is the time the condition transitioned from one status to another. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3 [(gogoproto.customname) = "LastTransitionTime", (gogoproto.nullable) = false]; // Reason is a brief machine readable explanation for the condition's last transition. - optional string reason = 4; + optional string reason = 4 [(gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // Message is a human readable description of the details about last transition, complementing reason. - optional string message = 5; + optional string message = 5 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; // Generation is the spec tag generation that this status corresponds to - optional int64 generation = 6; + optional int64 generation = 6 [(gogoproto.customname) = "Generation", (gogoproto.nullable) = false]; } // TagImportPolicy controls how images related to this tag will be imported. message TagImportPolicy { // Insecure is true if the server may bypass certificate verification or connect directly over HTTP during image import. - optional bool insecure = 1; + optional bool insecure = 1 [(gogoproto.customname) = "Insecure", (gogoproto.nullable) = false]; // Scheduled indicates to the server that this tag should be periodically checked to ensure it is up to date, and imported - optional bool scheduled = 2; + optional bool scheduled = 2 [(gogoproto.customname) = "Scheduled", (gogoproto.nullable) = false]; } // TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track. message TagReference { // Name of the tag - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; - // Annotations associated with images using this tag - map annotations = 2; + // Optional; if specified, annotations that are applied to images retrieved via ImageStreamTags. + map annotations = 2 [(gogoproto.customname) = "Annotations", (gogoproto.nullable) = false]; - // From is a reference to an image stream tag or image stream this tag should track - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 3; + // Optional; if specified, a reference to another image that this tag should point to. Valid values + // are ImageStreamTag, ImageStreamImage, and DockerImage. + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 3 [(gogoproto.customname) = "From"]; - // Reference states if the tag will be imported. Default value is false, which means the tag will be imported. - optional bool reference = 4; + // Reference states if the tag will be imported. Default value is false, which means the tag will + // be imported. + optional bool reference = 4 [(gogoproto.customname) = "Reference", (gogoproto.nullable) = false]; - // Generation is the image stream generation that updated this tag - setting it to 0 is an indication that the generation must be updated. - // Legacy clients will send this as nil, which means the client doesn't know or care. - optional int64 generation = 5; + // Generation is a counter that tracks mutations to the spec tag (user intent). When a tag reference + // is changed the generation is set to match the current stream generation (which is incremented every + // time spec is changed). Other processes in the system like the image importer observe that the + // generation of spec tag is newer than the generation recorded in the status and use that as a trigger + // to import the newest remote tag. To trigger a new import, clients may set this value to zero which + // will reset the generation to the latest stream generation. Legacy clients will send this value as + // nil which will be merged with the current tag generation. + optional int64 generation = 5 [(gogoproto.customname) = "Generation"]; - // Import is information that controls how images may be imported by the server. - optional TagImportPolicy importPolicy = 6; + // ImportPolicy is information that controls how images may be imported by the server. + optional TagImportPolicy importPolicy = 6 [(gogoproto.customname) = "ImportPolicy", (gogoproto.nullable) = false]; - // ReferencePolicy defines how other components should consume the image - optional TagReferencePolicy referencePolicy = 7; + // ReferencePolicy defines how other components should consume the image. + optional TagReferencePolicy referencePolicy = 7 [(gogoproto.customname) = "ReferencePolicy", (gogoproto.nullable) = false]; } // TagReferencePolicy describes how pull-specs for images in this image stream tag are generated when @@ -490,6 +509,6 @@ message TagReferencePolicy { // image to be managed from the image stream's namespace, so others on the platform can access a remote // image but have no access to the remote secret. It also allows the image layers to be mirrored into // the local registry which the images can still be pulled even if the upstream registry is unavailable. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "TagReferencePolicyType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; } diff --git a/api/protobuf-spec/github_com_openshift_origin_pkg_network_apis_network_v1.proto b/api/protobuf-spec/github_com_openshift_origin_pkg_network_apis_network_v1.proto index 6b08c1927c8b..0ee49008116f 100644 --- a/api/protobuf-spec/github_com_openshift_origin_pkg_network_apis_network_v1.proto +++ b/api/protobuf-spec/github_com_openshift_origin_pkg_network_apis_network_v1.proto @@ -5,12 +5,22 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.network.apis.network.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // ClusterNetwork describes the cluster network. There is normally only one object of this type, @@ -18,28 +28,28 @@ option go_package = "v1"; // when the cluster is brought up for the first time. message ClusterNetwork { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Network is a CIDR string specifying the global overlay network's L3 space - optional string network = 2; + optional string network = 2 [(gogoproto.customname) = "Network", (gogoproto.nullable) = false]; // HostSubnetLength is the number of bits of network to allocate to each node. eg, 8 would mean that each node would have a /24 slice of the overlay network for its pods - optional uint32 hostsubnetlength = 3; + optional uint32 hostsubnetlength = 3 [(gogoproto.customname) = "HostSubnetLength", (gogoproto.nullable) = false]; // ServiceNetwork is the CIDR range that Service IP addresses are allocated from - optional string serviceNetwork = 4; + optional string serviceNetwork = 4 [(gogoproto.customname) = "ServiceNetwork", (gogoproto.nullable) = false]; // PluginName is the name of the network plugin being used - optional string pluginName = 5; + optional string pluginName = 5 [(gogoproto.customname) = "PluginName", (gogoproto.nullable) = false]; } // ClusterNetworkList is a collection of ClusterNetworks message ClusterNetworkList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of cluster networks - repeated ClusterNetwork items = 2; + repeated ClusterNetwork items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // EgressNetworkPolicy describes the current egress network policy for a Namespace. When using @@ -49,68 +59,68 @@ message ClusterNetworkList { // is present) then the traffic will be allowed by default. message EgressNetworkPolicy { // metadata for EgressNetworkPolicy - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // spec is the specification of the current egress network policy - optional EgressNetworkPolicySpec spec = 2; + optional EgressNetworkPolicySpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; } // EgressNetworkPolicyList is a collection of EgressNetworkPolicy message EgressNetworkPolicyList { // metadata for EgressNetworkPolicyList - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // items is the list of policies - repeated EgressNetworkPolicy items = 2; + repeated EgressNetworkPolicy items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // EgressNetworkPolicyPeer specifies a target to apply egress network policy to message EgressNetworkPolicyPeer { // cidrSelector is the CIDR range to allow/deny traffic to. If this is set, dnsName must be unset - optional string cidrSelector = 1; + optional string cidrSelector = 1 [(gogoproto.customname) = "CIDRSelector", (gogoproto.nullable) = false]; // dnsName is the domain name to allow/deny traffic to. If this is set, cidrSelector must be unset - optional string dnsName = 2; + optional string dnsName = 2 [(gogoproto.customname) = "DNSName", (gogoproto.nullable) = false]; } // EgressNetworkPolicyRule contains a single egress network policy rule message EgressNetworkPolicyRule { // type marks this as an "Allow" or "Deny" rule - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "EgressNetworkPolicyRuleType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // to is the target that traffic is allowed/denied to - optional EgressNetworkPolicyPeer to = 2; + optional EgressNetworkPolicyPeer to = 2 [(gogoproto.customname) = "To", (gogoproto.nullable) = false]; } // EgressNetworkPolicySpec provides a list of policies on outgoing network traffic message EgressNetworkPolicySpec { // egress contains the list of egress policy rules - repeated EgressNetworkPolicyRule egress = 1; + repeated EgressNetworkPolicyRule egress = 1 [(gogoproto.customname) = "Egress", (gogoproto.nullable) = false]; } // HostSubnet describes the container subnet network on a node. The HostSubnet object must have the // same name as the Node object it corresponds to. message HostSubnet { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Host is the name of the node. (This is the same as the object's name, but both fields must be set.) - optional string host = 2; + optional string host = 2 [(gogoproto.customname) = "Host", (gogoproto.nullable) = false]; // HostIP is the IP address to be used as a VTEP by other nodes in the overlay network - optional string hostIP = 3; + optional string hostIP = 3 [(gogoproto.customname) = "HostIP", (gogoproto.nullable) = false]; // Subnet is the CIDR range of the overlay network assigned to the node for its pods - optional string subnet = 4; + optional string subnet = 4 [(gogoproto.customname) = "Subnet", (gogoproto.nullable) = false]; } // HostSubnetList is a collection of HostSubnets message HostSubnetList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of host subnets - repeated HostSubnet items = 2; + repeated HostSubnet items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // NetNamespace describes a single isolated network. When using the redhat/openshift-ovs-multitenant @@ -118,21 +128,21 @@ message HostSubnetList { // (When using redhat/openshift-ovs-subnet, NetNamespaces are not used.) message NetNamespace { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // NetName is the name of the network namespace. (This is the same as the object's name, but both fields must be set.) - optional string netname = 2; + optional string netname = 2 [(gogoproto.customname) = "NetName", (gogoproto.nullable) = false]; // NetID is the network identifier of the network namespace assigned to each overlay network packet. This can be manipulated with the "oc adm pod-network" commands. - optional uint32 netid = 3; + optional uint32 netid = 3 [(gogoproto.customname) = "NetID", (gogoproto.nullable) = false]; } // NetNamespaceList is a collection of NetNamespaces message NetNamespaceList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of net namespaces - repeated NetNamespace items = 2; + repeated NetNamespace items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } diff --git a/api/protobuf-spec/github_com_openshift_origin_pkg_oauth_apis_oauth_v1.proto b/api/protobuf-spec/github_com_openshift_origin_pkg_oauth_apis_oauth_v1.proto index d7accff7d38c..fe638c89591a 100644 --- a/api/protobuf-spec/github_com_openshift_origin_pkg_oauth_apis_oauth_v1.proto +++ b/api/protobuf-spec/github_com_openshift_origin_pkg_oauth_apis_oauth_v1.proto @@ -5,204 +5,214 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.oauth.apis.oauth.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // ClusterRoleScopeRestriction describes restrictions on cluster role scopes message ClusterRoleScopeRestriction { // RoleNames is the list of cluster roles that can referenced. * means anything - repeated string roleNames = 1; + repeated string roleNames = 1 [(gogoproto.customname) = "RoleNames"]; // Namespaces is the list of namespaces that can be referenced. * means any of them (including *) - repeated string namespaces = 2; + repeated string namespaces = 2 [(gogoproto.customname) = "Namespaces"]; // AllowEscalation indicates whether you can request roles and their escalating resources - optional bool allowEscalation = 3; + optional bool allowEscalation = 3 [(gogoproto.customname) = "AllowEscalation", (gogoproto.nullable) = false]; } // OAuthAccessToken describes an OAuth access token message OAuthAccessToken { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // ClientName references the client that created this token. - optional string clientName = 2; + optional string clientName = 2 [(gogoproto.customname) = "ClientName", (gogoproto.nullable) = false]; // ExpiresIn is the seconds from CreationTime before this token expires. - optional int64 expiresIn = 3; + optional int64 expiresIn = 3 [(gogoproto.customname) = "ExpiresIn", (gogoproto.nullable) = false]; // Scopes is an array of the requested scopes. - repeated string scopes = 4; + repeated string scopes = 4 [(gogoproto.customname) = "Scopes"]; // RedirectURI is the redirection associated with the token. - optional string redirectURI = 5; + optional string redirectURI = 5 [(gogoproto.customname) = "RedirectURI", (gogoproto.nullable) = false]; // UserName is the user name associated with this token - optional string userName = 6; + optional string userName = 6 [(gogoproto.customname) = "UserName", (gogoproto.nullable) = false]; // UserUID is the unique UID associated with this token - optional string userUID = 7; + optional string userUID = 7 [(gogoproto.customname) = "UserUID", (gogoproto.nullable) = false]; // AuthorizeToken contains the token that authorized this token - optional string authorizeToken = 8; + optional string authorizeToken = 8 [(gogoproto.customname) = "AuthorizeToken", (gogoproto.nullable) = false]; // RefreshToken is the value by which this token can be renewed. Can be blank. - optional string refreshToken = 9; + optional string refreshToken = 9 [(gogoproto.customname) = "RefreshToken", (gogoproto.nullable) = false]; } // OAuthAccessTokenList is a collection of OAuth access tokens message OAuthAccessTokenList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of OAuth access tokens - repeated OAuthAccessToken items = 2; + repeated OAuthAccessToken items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // OAuthAuthorizeToken describes an OAuth authorization token message OAuthAuthorizeToken { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // ClientName references the client that created this token. - optional string clientName = 2; + optional string clientName = 2 [(gogoproto.customname) = "ClientName", (gogoproto.nullable) = false]; // ExpiresIn is the seconds from CreationTime before this token expires. - optional int64 expiresIn = 3; + optional int64 expiresIn = 3 [(gogoproto.customname) = "ExpiresIn", (gogoproto.nullable) = false]; // Scopes is an array of the requested scopes. - repeated string scopes = 4; + repeated string scopes = 4 [(gogoproto.customname) = "Scopes"]; // RedirectURI is the redirection associated with the token. - optional string redirectURI = 5; + optional string redirectURI = 5 [(gogoproto.customname) = "RedirectURI", (gogoproto.nullable) = false]; // State data from request - optional string state = 6; + optional string state = 6 [(gogoproto.customname) = "State", (gogoproto.nullable) = false]; // UserName is the user name associated with this token - optional string userName = 7; + optional string userName = 7 [(gogoproto.customname) = "UserName", (gogoproto.nullable) = false]; // UserUID is the unique UID associated with this token. UserUID and UserName must both match // for this token to be valid. - optional string userUID = 8; + optional string userUID = 8 [(gogoproto.customname) = "UserUID", (gogoproto.nullable) = false]; // CodeChallenge is the optional code_challenge associated with this authorization code, as described in rfc7636 - optional string codeChallenge = 9; + optional string codeChallenge = 9 [(gogoproto.customname) = "CodeChallenge", (gogoproto.nullable) = false]; // CodeChallengeMethod is the optional code_challenge_method associated with this authorization code, as described in rfc7636 - optional string codeChallengeMethod = 10; + optional string codeChallengeMethod = 10 [(gogoproto.customname) = "CodeChallengeMethod", (gogoproto.nullable) = false]; } // OAuthAuthorizeTokenList is a collection of OAuth authorization tokens message OAuthAuthorizeTokenList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of OAuth authorization tokens - repeated OAuthAuthorizeToken items = 2; + repeated OAuthAuthorizeToken items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // OAuthClient describes an OAuth client message OAuthClient { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Secret is the unique secret associated with a client - optional string secret = 2; + optional string secret = 2 [(gogoproto.customname) = "Secret", (gogoproto.nullable) = false]; // AdditionalSecrets holds other secrets that may be used to identify the client. This is useful for rotation // and for service account token validation - repeated string additionalSecrets = 3; + repeated string additionalSecrets = 3 [(gogoproto.customname) = "AdditionalSecrets"]; // RespondWithChallenges indicates whether the client wants authentication needed responses made in the form of challenges instead of redirects - optional bool respondWithChallenges = 4; + optional bool respondWithChallenges = 4 [(gogoproto.customname) = "RespondWithChallenges", (gogoproto.nullable) = false]; // RedirectURIs is the valid redirection URIs associated with a client // +patchStrategy=merge - repeated string redirectURIs = 5; + repeated string redirectURIs = 5 [(gogoproto.customname) = "RedirectURIs"]; // GrantMethod determines how to handle grants for this client. If no method is provided, the // cluster default grant handling method will be used. Valid grant handling methods are: // - auto: always approves grant requests, useful for trusted clients // - prompt: prompts the end user for approval of grant requests, useful for third-party clients // - deny: always denies grant requests, useful for black-listed clients - optional string grantMethod = 6; + optional string grantMethod = 6 [(gogoproto.casttype) = "GrantHandlerType", (gogoproto.customname) = "GrantMethod", (gogoproto.nullable) = false]; // ScopeRestrictions describes which scopes this client can request. Each requested scope // is checked against each restriction. If any restriction matches, then the scope is allowed. // If no restriction matches, then the scope is denied. - repeated ScopeRestriction scopeRestrictions = 7; + repeated ScopeRestriction scopeRestrictions = 7 [(gogoproto.customname) = "ScopeRestrictions", (gogoproto.nullable) = false]; } // OAuthClientAuthorization describes an authorization created by an OAuth client message OAuthClientAuthorization { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // ClientName references the client that created this authorization - optional string clientName = 2; + optional string clientName = 2 [(gogoproto.customname) = "ClientName", (gogoproto.nullable) = false]; // UserName is the user name that authorized this client - optional string userName = 3; + optional string userName = 3 [(gogoproto.customname) = "UserName", (gogoproto.nullable) = false]; // UserUID is the unique UID associated with this authorization. UserUID and UserName // must both match for this authorization to be valid. - optional string userUID = 4; + optional string userUID = 4 [(gogoproto.customname) = "UserUID", (gogoproto.nullable) = false]; // Scopes is an array of the granted scopes. - repeated string scopes = 5; + repeated string scopes = 5 [(gogoproto.customname) = "Scopes"]; } // OAuthClientAuthorizationList is a collection of OAuth client authorizations message OAuthClientAuthorizationList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of OAuth client authorizations - repeated OAuthClientAuthorization items = 2; + repeated OAuthClientAuthorization items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // OAuthClientList is a collection of OAuth clients message OAuthClientList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of OAuth clients - repeated OAuthClient items = 2; + repeated OAuthClient items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // OAuthRedirectReference is a reference to an OAuth redirect object. message OAuthRedirectReference { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // The reference to an redirect object in the current namespace. - optional RedirectReference reference = 2; + optional RedirectReference reference = 2 [(gogoproto.customname) = "Reference", (gogoproto.nullable) = false]; } // RedirectReference specifies the target in the current namespace that resolves into redirect URIs. Only the 'Route' kind is currently allowed. message RedirectReference { // The group of the target that is being referred to. - optional string group = 1; + optional string group = 1 [(gogoproto.customname) = "Group", (gogoproto.nullable) = false]; // The kind of the target that is being referred to. Currently, only 'Route' is allowed. - optional string kind = 2; + optional string kind = 2 [(gogoproto.customname) = "Kind", (gogoproto.nullable) = false]; // The name of the target that is being referred to. e.g. name of the Route. - optional string name = 3; + optional string name = 3 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; } // ScopeRestriction describe one restriction on scopes. Exactly one option must be non-nil. message ScopeRestriction { // ExactValues means the scope has to match a particular set of strings exactly - repeated string literals = 1; + repeated string literals = 1 [(gogoproto.customname) = "ExactValues"]; // ClusterRole describes a set of restrictions for cluster role scoping. - optional ClusterRoleScopeRestriction clusterRole = 2; + optional ClusterRoleScopeRestriction clusterRole = 2 [(gogoproto.customname) = "ClusterRole"]; } diff --git a/api/protobuf-spec/github_com_openshift_origin_pkg_project_apis_project_v1.proto b/api/protobuf-spec/github_com_openshift_origin_pkg_project_apis_project_v1.proto index f19ff14cb7ca..5e92e342bd5d 100644 --- a/api/protobuf-spec/github_com_openshift_origin_pkg_project_apis_project_v1.proto +++ b/api/protobuf-spec/github_com_openshift_origin_pkg_project_apis_project_v1.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.project.apis.project.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,6 +13,15 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // Projects are the unit of isolation and collaboration in OpenShift. A project has one or more members, @@ -28,45 +38,45 @@ option go_package = "v1"; // to administrators, while end users should use the requestproject resource. message Project { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Spec defines the behavior of the Namespace. - optional ProjectSpec spec = 2; + optional ProjectSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status describes the current status of a Namespace - optional ProjectStatus status = 3; + optional ProjectStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // ProjectList is a list of Project objects. message ProjectList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of projects - repeated Project items = 2; + repeated Project items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ProjecRequest is the set of options necessary to fully qualify a project request message ProjectRequest { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // DisplayName is the display name to apply to a project - optional string displayName = 2; + optional string displayName = 2 [(gogoproto.customname) = "DisplayName", (gogoproto.nullable) = false]; // Description is the description to apply to a project - optional string description = 3; + optional string description = 3 [(gogoproto.customname) = "Description", (gogoproto.nullable) = false]; } // ProjectSpec describes the attributes on a Project message ProjectSpec { // Finalizers is an opaque list of values that must be empty to permanently remove object from storage - repeated string finalizers = 1; + repeated string finalizers = 1 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.FinalizerName", (gogoproto.customname) = "Finalizers"]; } // ProjectStatus is information about the current status of a Project message ProjectStatus { // Phase is the current lifecycle phase of the project - optional string phase = 1; + optional string phase = 1 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.NamespacePhase", (gogoproto.customname) = "Phase", (gogoproto.nullable) = false]; } diff --git a/api/protobuf-spec/github_com_openshift_origin_pkg_quota_apis_quota_v1.proto b/api/protobuf-spec/github_com_openshift_origin_pkg_quota_apis_quota_v1.proto index 1544c1cd6975..389807162e2b 100644 --- a/api/protobuf-spec/github_com_openshift_origin_pkg_quota_apis_quota_v1.proto +++ b/api/protobuf-spec/github_com_openshift_origin_pkg_quota_apis_quota_v1.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.quota.apis.quota.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,6 +13,15 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // AppliedClusterResourceQuota mirrors ClusterResourceQuota at a project scope, for projection @@ -19,44 +29,44 @@ option go_package = "v1"; // his project and their associated usage. message AppliedClusterResourceQuota { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Spec defines the desired quota - optional ClusterResourceQuotaSpec spec = 2; + optional ClusterResourceQuotaSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status defines the actual enforced quota and its current usage - optional ClusterResourceQuotaStatus status = 3; + optional ClusterResourceQuotaStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // AppliedClusterResourceQuotaList is a collection of AppliedClusterResourceQuotas message AppliedClusterResourceQuotaList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of AppliedClusterResourceQuota - repeated AppliedClusterResourceQuota items = 2; + repeated AppliedClusterResourceQuota items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ClusterResourceQuota mirrors ResourceQuota at a cluster scope. This object is easily convertible to // synthetic ResourceQuota object to allow quota evaluation re-use. message ClusterResourceQuota { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Spec defines the desired quota - optional ClusterResourceQuotaSpec spec = 2; + optional ClusterResourceQuotaSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status defines the actual enforced quota and its current usage - optional ClusterResourceQuotaStatus status = 3; + optional ClusterResourceQuotaStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // ClusterResourceQuotaList is a collection of ClusterResourceQuotas message ClusterResourceQuotaList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of ClusterResourceQuotas - repeated ClusterResourceQuota items = 2; + repeated ClusterResourceQuota items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ClusterResourceQuotaSelector is used to select projects. At least one of LabelSelector or AnnotationSelector @@ -64,10 +74,10 @@ message ClusterResourceQuotaList { // the project must match both restrictions. message ClusterResourceQuotaSelector { // LabelSelector is used to select projects by label. - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labels = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labels = 1 [(gogoproto.customname) = "LabelSelector"]; // AnnotationSelector is used to select projects by annotation. - map annotations = 2; + map annotations = 2 [(gogoproto.customname) = "AnnotationSelector", (gogoproto.nullable) = false]; } // ClusterResourceQuotaSpec defines the desired quota restrictions @@ -76,29 +86,29 @@ message ClusterResourceQuotaSpec { // It should only select active projects on the scale of dozens (though it can select // many more less active projects). These projects will contend on object creation through // this resource. - optional ClusterResourceQuotaSelector selector = 1; + optional ClusterResourceQuotaSelector selector = 1 [(gogoproto.customname) = "Selector", (gogoproto.nullable) = false]; // Quota defines the desired quota - optional k8s.io.kubernetes.pkg.api.v1.ResourceQuotaSpec quota = 2; + optional k8s.io.kubernetes.pkg.api.v1.ResourceQuotaSpec quota = 2 [(gogoproto.customname) = "Quota", (gogoproto.nullable) = false]; } // ClusterResourceQuotaStatus defines the actual enforced quota and its current usage message ClusterResourceQuotaStatus { // Total defines the actual enforced quota and its current usage across all projects - optional k8s.io.kubernetes.pkg.api.v1.ResourceQuotaStatus total = 1; + optional k8s.io.kubernetes.pkg.api.v1.ResourceQuotaStatus total = 1 [(gogoproto.customname) = "Total", (gogoproto.nullable) = false]; // Namespaces slices the usage by project. This division allows for quick resolution of // deletion reconciliation inside of a single project without requiring a recalculation // across all projects. This can be used to pull the deltas for a given project. - repeated ResourceQuotaStatusByNamespace namespaces = 2; + repeated ResourceQuotaStatusByNamespace namespaces = 2 [(gogoproto.customname) = "Namespaces", (gogoproto.nullable) = false]; } // ResourceQuotaStatusByNamespace gives status for a particular project message ResourceQuotaStatusByNamespace { // Namespace the project this status applies to - optional string namespace = 1; + optional string namespace = 1 [(gogoproto.customname) = "Namespace", (gogoproto.nullable) = false]; // Status indicates how many resources have been consumed by this project - optional k8s.io.kubernetes.pkg.api.v1.ResourceQuotaStatus status = 2; + optional k8s.io.kubernetes.pkg.api.v1.ResourceQuotaStatus status = 2 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } diff --git a/api/protobuf-spec/github_com_openshift_origin_pkg_route_apis_route_v1.proto b/api/protobuf-spec/github_com_openshift_origin_pkg_route_apis_route_v1.proto index dc0a19f6d906..2188a80008c5 100644 --- a/api/protobuf-spec/github_com_openshift_origin_pkg_route_apis_route_v1.proto +++ b/api/protobuf-spec/github_com_openshift_origin_pkg_route_apis_route_v1.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.route.apis.route.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,6 +13,15 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // A route allows developers to expose services through an HTTP(S) aware load balancing and proxy @@ -33,32 +43,32 @@ option go_package = "v1"; // to indicate the route cannot be chosen. message Route { // Standard object metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // spec is the desired state of the route - optional RouteSpec spec = 2; + optional RouteSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // status is the current state of the route - optional RouteStatus status = 3; + optional RouteStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // RouteIngress holds information about the places where a route is exposed. message RouteIngress { // Host is the host string under which the route is exposed; this value is required - optional string host = 1; + optional string host = 1 [(gogoproto.customname) = "Host", (gogoproto.nullable) = false]; // Name is a name chosen by the router to identify itself; this value is required - optional string routerName = 2; + optional string routerName = 2 [(gogoproto.customname) = "RouterName", (gogoproto.nullable) = false]; // Conditions is the state of the route, may be empty. - repeated RouteIngressCondition conditions = 3; + repeated RouteIngressCondition conditions = 3 [(gogoproto.customname) = "Conditions", (gogoproto.nullable) = false]; // Wildcard policy is the wildcard policy that was allowed where this route is exposed. - optional string wildcardPolicy = 4; + optional string wildcardPolicy = 4 [(gogoproto.casttype) = "WildcardPolicyType", (gogoproto.customname) = "WildcardPolicy", (gogoproto.nullable) = false]; // CanonicalHostname is the external host name for the router that can be used as a CNAME // for the host requested for this route. This value is optional and may not be set in all cases. - optional string routerCanonicalHostname = 5; + optional string routerCanonicalHostname = 5 [(gogoproto.customname) = "RouterCanonicalHostname", (gogoproto.nullable) = false]; } // RouteIngressCondition contains details for the current condition of this route on a particular @@ -66,30 +76,30 @@ message RouteIngress { message RouteIngressCondition { // Type is the type of the condition. // Currently only Ready. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "RouteIngressConditionType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Status is the status of the condition. // Can be True, False, Unknown. - optional string status = 2; + optional string status = 2 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.ConditionStatus", (gogoproto.customname) = "Status", (gogoproto.nullable) = false]; // (brief) reason for the condition's last transition, and is usually a machine and human // readable constant - optional string reason = 3; + optional string reason = 3 [(gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // Human readable message indicating details about last transition. - optional string message = 4; + optional string message = 4 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; // RFC 3339 date and time when this condition last transitioned - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 5; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 5 [(gogoproto.customname) = "LastTransitionTime"]; } // RouteList is a collection of Routes. message RouteList { // Standard object metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // items is a list of routes - repeated Route items = 2; + repeated Route items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // RoutePort defines a port mapping from a router to an endpoint in the service endpoints. @@ -97,7 +107,7 @@ message RoutePort { // The target port on pods selected by the service this route points to. // If this is a string, it will be looked up as a named port in the target // endpoints port list. Required - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 1; + optional k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 1 [(gogoproto.customname) = "TargetPort", (gogoproto.nullable) = false]; } // RouteSpec describes the hostname or path the route exposes, any security information, @@ -120,32 +130,32 @@ message RouteSpec { // If not specified a route name will typically be automatically // chosen. // Must follow DNS952 subdomain conventions. - optional string host = 1; + optional string host = 1 [(gogoproto.customname) = "Host", (gogoproto.nullable) = false]; // Path that the router watches for, to route traffic for to the service. Optional - optional string path = 2; + optional string path = 2 [(gogoproto.customname) = "Path", (gogoproto.nullable) = false]; // to is an object the route should use as the primary backend. Only the Service kind // is allowed, and it will be defaulted to Service. If the weight field (0-256 default 1) // is set to zero, no traffic will be sent to this backend. - optional RouteTargetReference to = 3; + optional RouteTargetReference to = 3 [(gogoproto.customname) = "To", (gogoproto.nullable) = false]; // alternateBackends allows up to 3 additional backends to be assigned to the route. // Only the Service kind is allowed, and it will be defaulted to Service. // Use the weight field in RouteTargetReference object to specify relative preference. - repeated RouteTargetReference alternateBackends = 4; + repeated RouteTargetReference alternateBackends = 4 [(gogoproto.customname) = "AlternateBackends", (gogoproto.nullable) = false]; // If specified, the port to be used by the router. Most routers will use all // endpoints exposed by the service by default - set this value to instruct routers // which port to use. - optional RoutePort port = 5; + optional RoutePort port = 5 [(gogoproto.customname) = "Port"]; // The tls field provides the ability to configure certificates and termination for the route. - optional TLSConfig tls = 6; + optional TLSConfig tls = 6 [(gogoproto.customname) = "TLS"]; // Wildcard policy if any for the route. // Currently only 'Subdomain' or 'None' is allowed. - optional string wildcardPolicy = 7; + optional string wildcardPolicy = 7 [(gogoproto.casttype) = "WildcardPolicyType", (gogoproto.customname) = "WildcardPolicy", (gogoproto.nullable) = false]; } // RouteStatus provides relevant info about the status of a route, including which routers @@ -154,21 +164,21 @@ message RouteStatus { // ingress describes the places where the route may be exposed. The list of // ingress points may contain duplicate Host or RouterName values. Routes // are considered live once they are `Ready` - repeated RouteIngress ingress = 1; + repeated RouteIngress ingress = 1 [(gogoproto.customname) = "Ingress", (gogoproto.nullable) = false]; } // RouteTargetReference specifies the target that resolve into endpoints. Only the 'Service' // kind is allowed. Use 'weight' field to emphasize one over others. message RouteTargetReference { // The kind of target that the route is referring to. Currently, only 'Service' is allowed - optional string kind = 1; + optional string kind = 1 [(gogoproto.customname) = "Kind", (gogoproto.nullable) = false]; // name of the service/target that is being referred to. e.g. name of the service - optional string name = 2; + optional string name = 2 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // weight as an integer between 0 and 256, default 1, that specifies the target's relative weight // against other target reference objects. 0 suppresses requests to this backend. - optional int32 weight = 3; + optional int32 weight = 3 [(gogoproto.customname) = "Weight"]; } // RouterShard has information of a routing shard and is used to @@ -179,32 +189,32 @@ message RouteTargetReference { message RouterShard { // shardName uniquely identifies a router shard in the "set" of // routers used for routing traffic to the services. - optional string shardName = 1; + optional string shardName = 1 [(gogoproto.customname) = "ShardName", (gogoproto.nullable) = false]; // dnsSuffix for the shard ala: shard-1.v3.openshift.com - optional string dnsSuffix = 2; + optional string dnsSuffix = 2 [(gogoproto.customname) = "DNSSuffix", (gogoproto.nullable) = false]; } // TLSConfig defines config used to secure a route and provide termination message TLSConfig { // termination indicates termination type. - optional string termination = 1; + optional string termination = 1 [(gogoproto.casttype) = "TLSTerminationType", (gogoproto.customname) = "Termination", (gogoproto.nullable) = false]; // certificate provides certificate contents - optional string certificate = 2; + optional string certificate = 2 [(gogoproto.customname) = "Certificate", (gogoproto.nullable) = false]; // key provides key file contents - optional string key = 3; + optional string key = 3 [(gogoproto.customname) = "Key", (gogoproto.nullable) = false]; // caCertificate provides the cert authority certificate contents - optional string caCertificate = 4; + optional string caCertificate = 4 [(gogoproto.customname) = "CACertificate", (gogoproto.nullable) = false]; // destinationCACertificate provides the contents of the ca certificate of the final destination. When using reencrypt // termination this file should be provided in order to have routers use it for health checks on the secure connection. // If this field is not specified, the router may provide its own destination CA and perform hostname validation using // the short service name (service.namespace.svc), which allows infrastructure generated certificates to automatically // verify. - optional string destinationCACertificate = 5; + optional string destinationCACertificate = 5 [(gogoproto.customname) = "DestinationCACertificate", (gogoproto.nullable) = false]; // insecureEdgeTerminationPolicy indicates the desired behavior for insecure connections to a route. While // each router may make its own decisions on which ports to expose, this is normally port 80. @@ -212,6 +222,6 @@ message TLSConfig { // * Allow - traffic is sent to the server on the insecure port (default) // * Disable - no traffic is allowed on the insecure port. // * Redirect - clients are redirected to the secure port. - optional string insecureEdgeTerminationPolicy = 6; + optional string insecureEdgeTerminationPolicy = 6 [(gogoproto.casttype) = "InsecureEdgeTerminationPolicyType", (gogoproto.customname) = "InsecureEdgeTerminationPolicy", (gogoproto.nullable) = false]; } diff --git a/api/protobuf-spec/github_com_openshift_origin_pkg_security_apis_security_v1.proto b/api/protobuf-spec/github_com_openshift_origin_pkg_security_apis_security_v1.proto index 9d4c938d0039..763ea2fd2cde 100644 --- a/api/protobuf-spec/github_com_openshift_origin_pkg_security_apis_security_v1.proto +++ b/api/protobuf-spec/github_com_openshift_origin_pkg_security_apis_security_v1.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,35 +13,44 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // FSGroupStrategyOptions defines the strategy type and options used to create the strategy. message FSGroupStrategyOptions { // Type is the strategy that will dictate what FSGroup is used in the SecurityContext. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "FSGroupStrategyType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Ranges are the allowed ranges of fs groups. If you would like to force a single // fs group then supply a single range with the same start and end. - repeated IDRange ranges = 2; + repeated IDRange ranges = 2 [(gogoproto.customname) = "Ranges", (gogoproto.nullable) = false]; } // IDRange provides a min/max of an allowed range of IDs. // TODO: this could be reused for UIDs. message IDRange { // Min is the start of the range, inclusive. - optional int64 min = 1; + optional int64 min = 1 [(gogoproto.customname) = "Min", (gogoproto.nullable) = false]; // Max is the end of the range, inclusive. - optional int64 max = 2; + optional int64 max = 2 [(gogoproto.customname) = "Max", (gogoproto.nullable) = false]; } // PodSecurityPolicyReview checks which service accounts (not users, since that would be cluster-wide) can create the `PodTemplateSpec` in question. message PodSecurityPolicyReview { // spec is the PodSecurityPolicy to check. - optional PodSecurityPolicyReviewSpec spec = 1; + optional PodSecurityPolicyReviewSpec spec = 1 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // status represents the current information/status for the PodSecurityPolicyReview. - optional PodSecurityPolicyReviewStatus status = 2; + optional PodSecurityPolicyReviewStatus status = 2 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // PodSecurityPolicyReviewSpec defines specification for PodSecurityPolicyReview @@ -49,58 +59,58 @@ message PodSecurityPolicyReviewSpec { // if serviceAccountNames is empty, unless the template.spec.serviceAccountName is empty, // in which case "default" is used. // If serviceAccountNames is specified, template.spec.serviceAccountName is ignored. - optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 1; + optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 1 [(gogoproto.customname) = "Template", (gogoproto.nullable) = false]; // serviceAccountNames is an optional set of ServiceAccounts to run the check with. // If serviceAccountNames is empty, the template.spec.serviceAccountName is used, // unless it's empty, in which case "default" is used instead. // If serviceAccountNames is specified, template.spec.serviceAccountName is ignored. - repeated string serviceAccountNames = 2; + repeated string serviceAccountNames = 2 [(gogoproto.customname) = "ServiceAccountNames"]; } // PodSecurityPolicyReviewStatus represents the status of PodSecurityPolicyReview. message PodSecurityPolicyReviewStatus { // allowedServiceAccounts returns the list of service accounts in *this* namespace that have the power to create the PodTemplateSpec. - repeated ServiceAccountPodSecurityPolicyReviewStatus allowedServiceAccounts = 1; + repeated ServiceAccountPodSecurityPolicyReviewStatus allowedServiceAccounts = 1 [(gogoproto.customname) = "AllowedServiceAccounts", (gogoproto.nullable) = false]; } // PodSecurityPolicySelfSubjectReview checks whether this user/SA tuple can create the PodTemplateSpec message PodSecurityPolicySelfSubjectReview { // spec defines specification the PodSecurityPolicySelfSubjectReview. - optional PodSecurityPolicySelfSubjectReviewSpec spec = 1; + optional PodSecurityPolicySelfSubjectReviewSpec spec = 1 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // status represents the current information/status for the PodSecurityPolicySelfSubjectReview. - optional PodSecurityPolicySubjectReviewStatus status = 2; + optional PodSecurityPolicySubjectReviewStatus status = 2 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // PodSecurityPolicySelfSubjectReviewSpec contains specification for PodSecurityPolicySelfSubjectReview. message PodSecurityPolicySelfSubjectReviewSpec { // template is the PodTemplateSpec to check. - optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 1; + optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 1 [(gogoproto.customname) = "Template", (gogoproto.nullable) = false]; } // PodSecurityPolicySubjectReview checks whether a particular user/SA tuple can create the PodTemplateSpec. message PodSecurityPolicySubjectReview { // spec defines specification for the PodSecurityPolicySubjectReview. - optional PodSecurityPolicySubjectReviewSpec spec = 1; + optional PodSecurityPolicySubjectReviewSpec spec = 1 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // status represents the current information/status for the PodSecurityPolicySubjectReview. - optional PodSecurityPolicySubjectReviewStatus status = 2; + optional PodSecurityPolicySubjectReviewStatus status = 2 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // PodSecurityPolicySubjectReviewSpec defines specification for PodSecurityPolicySubjectReview message PodSecurityPolicySubjectReviewSpec { // template is the PodTemplateSpec to check. If template.spec.serviceAccountName is empty it will not be defaulted. // If its non-empty, it will be checked. - optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 1; + optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 1 [(gogoproto.customname) = "Template", (gogoproto.nullable) = false]; // user is the user you're testing for. // If you specify "user" but not "group", then is it interpreted as "What if user were not a member of any groups. // If user and groups are empty, then the check is performed using *only* the serviceAccountName in the template. - optional string user = 2; + optional string user = 2 [(gogoproto.customname) = "User", (gogoproto.nullable) = false]; // groups is the groups you're testing for. - repeated string groups = 3; + repeated string groups = 3 [(gogoproto.customname) = "Groups"]; } // PodSecurityPolicySubjectReviewStatus contains information/status for PodSecurityPolicySubjectReview. @@ -108,40 +118,40 @@ message PodSecurityPolicySubjectReviewStatus { // allowedBy is a reference to the rule that allows the PodTemplateSpec. // A rule can be a SecurityContextConstraint or a PodSecurityPolicy // A `nil`, indicates that it was denied. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference allowedBy = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference allowedBy = 1 [(gogoproto.customname) = "AllowedBy"]; // A machine-readable description of why this operation is in the // "Failure" status. If this value is empty there // is no information available. - optional string reason = 2; + optional string reason = 2 [(gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // template is the PodTemplateSpec after the defaulting is applied. - optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 3; + optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 3 [(gogoproto.customname) = "Template", (gogoproto.nullable) = false]; } // RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. message RunAsUserStrategyOptions { // Type is the strategy that will dictate what RunAsUser is used in the SecurityContext. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "RunAsUserStrategyType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // UID is the user id that containers must run as. Required for the MustRunAs strategy if not using // namespace/service account allocated uids. - optional int64 uid = 2; + optional int64 uid = 2 [(gogoproto.customname) = "UID"]; // UIDRangeMin defines the min value for a strategy that allocates by range. - optional int64 uidRangeMin = 3; + optional int64 uidRangeMin = 3 [(gogoproto.customname) = "UIDRangeMin"]; // UIDRangeMax defines the max value for a strategy that allocates by range. - optional int64 uidRangeMax = 4; + optional int64 uidRangeMax = 4 [(gogoproto.customname) = "UIDRangeMax"]; } // SELinuxContextStrategyOptions defines the strategy type and any options used to create the strategy. message SELinuxContextStrategyOptions { // Type is the strategy that will dictate what SELinux context is used in the SecurityContext. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "SELinuxContextStrategyType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // seLinuxOptions required to run as; required for MustRunAs - optional k8s.io.kubernetes.pkg.api.v1.SELinuxOptions seLinuxOptions = 2; + optional k8s.io.kubernetes.pkg.api.v1.SELinuxOptions seLinuxOptions = 2 [(gogoproto.customname) = "SELinuxOptions"]; } // SecurityContextConstraints governs the ability to make requests that affect the SecurityContext @@ -149,7 +159,7 @@ message SELinuxContextStrategyOptions { message SecurityContextConstraints { // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Priority influences the sort order of SCCs when evaluating which SCCs to try first for // a given pod request based on access in the Users and Groups fields. The higher the int, the @@ -157,104 +167,104 @@ message SecurityContextConstraints { // for multiple SCCs are equal they will be sorted from most restrictive to // least restrictive. If both priorities and restrictions are equal the // SCCs will be sorted by name. - optional int32 priority = 2; + optional int32 priority = 2 [(gogoproto.customname) = "Priority"]; // AllowPrivilegedContainer determines if a container can request to be run as privileged. - optional bool allowPrivilegedContainer = 3; + optional bool allowPrivilegedContainer = 3 [(gogoproto.customname) = "AllowPrivilegedContainer", (gogoproto.nullable) = false]; // DefaultAddCapabilities is the default set of capabilities that will be added to the container // unless the pod spec specifically drops the capability. You may not list a capabiility in both // DefaultAddCapabilities and RequiredDropCapabilities. - repeated string defaultAddCapabilities = 4; + repeated string defaultAddCapabilities = 4 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.Capability", (gogoproto.customname) = "DefaultAddCapabilities"]; // RequiredDropCapabilities are the capabilities that will be dropped from the container. These // are required to be dropped and cannot be added. - repeated string requiredDropCapabilities = 5; + repeated string requiredDropCapabilities = 5 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.Capability", (gogoproto.customname) = "RequiredDropCapabilities"]; // AllowedCapabilities is a list of capabilities that can be requested to add to the container. // Capabilities in this field maybe added at the pod author's discretion. // You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities. // To allow all capabilities you may use '*'. - repeated string allowedCapabilities = 6; + repeated string allowedCapabilities = 6 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.Capability", (gogoproto.customname) = "AllowedCapabilities"]; // AllowHostDirVolumePlugin determines if the policy allow containers to use the HostDir volume plugin // +k8s:conversion-gen=false - optional bool allowHostDirVolumePlugin = 7; + optional bool allowHostDirVolumePlugin = 7 [(gogoproto.customname) = "AllowHostDirVolumePlugin", (gogoproto.nullable) = false]; // Volumes is a white list of allowed volume plugins. FSType corresponds directly with the field names // of a VolumeSource (azureFile, configMap, emptyDir). To allow all volumes you may use "*". // To allow no volumes, set to ["none"]. - repeated string volumes = 8; + repeated string volumes = 8 [(gogoproto.casttype) = "FSType", (gogoproto.customname) = "Volumes"]; // AllowHostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - optional bool allowHostNetwork = 9; + optional bool allowHostNetwork = 9 [(gogoproto.customname) = "AllowHostNetwork", (gogoproto.nullable) = false]; // AllowHostPorts determines if the policy allows host ports in the containers. - optional bool allowHostPorts = 10; + optional bool allowHostPorts = 10 [(gogoproto.customname) = "AllowHostPorts", (gogoproto.nullable) = false]; // AllowHostPID determines if the policy allows host pid in the containers. - optional bool allowHostPID = 11; + optional bool allowHostPID = 11 [(gogoproto.customname) = "AllowHostPID", (gogoproto.nullable) = false]; // AllowHostIPC determines if the policy allows host ipc in the containers. - optional bool allowHostIPC = 12; + optional bool allowHostIPC = 12 [(gogoproto.customname) = "AllowHostIPC", (gogoproto.nullable) = false]; // SELinuxContext is the strategy that will dictate what labels will be set in the SecurityContext. - optional SELinuxContextStrategyOptions seLinuxContext = 13; + optional SELinuxContextStrategyOptions seLinuxContext = 13 [(gogoproto.customname) = "SELinuxContext", (gogoproto.nullable) = false]; // RunAsUser is the strategy that will dictate what RunAsUser is used in the SecurityContext. - optional RunAsUserStrategyOptions runAsUser = 14; + optional RunAsUserStrategyOptions runAsUser = 14 [(gogoproto.customname) = "RunAsUser", (gogoproto.nullable) = false]; // SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - optional SupplementalGroupsStrategyOptions supplementalGroups = 15; + optional SupplementalGroupsStrategyOptions supplementalGroups = 15 [(gogoproto.customname) = "SupplementalGroups", (gogoproto.nullable) = false]; // FSGroup is the strategy that will dictate what fs group is used by the SecurityContext. - optional FSGroupStrategyOptions fsGroup = 16; + optional FSGroupStrategyOptions fsGroup = 16 [(gogoproto.customname) = "FSGroup", (gogoproto.nullable) = false]; // ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file // system. If the container specifically requests to run with a non-read only root file system // the SCC should deny the pod. // If set to false the container may run with a read only root file system if it wishes but it // will not be forced to. - optional bool readOnlyRootFilesystem = 17; + optional bool readOnlyRootFilesystem = 17 [(gogoproto.customname) = "ReadOnlyRootFilesystem", (gogoproto.nullable) = false]; // The users who have permissions to use this security context constraints - repeated string users = 18; + repeated string users = 18 [(gogoproto.customname) = "Users"]; // The groups that have permission to use this security context constraints - repeated string groups = 19; + repeated string groups = 19 [(gogoproto.customname) = "Groups"]; // SeccompProfiles lists the allowed profiles that may be set for the pod or // container's seccomp annotations. An unset (nil) or empty value means that no profiles may // be specifid by the pod or container. The wildcard '*' may be used to allow all profiles. When // used to generate a value for a pod the first non-wildcard profile will be used as // the default. - repeated string seccompProfiles = 20; + repeated string seccompProfiles = 20 [(gogoproto.customname) = "SeccompProfiles"]; } // SecurityContextConstraintsList is a list of SecurityContextConstraints objects message SecurityContextConstraintsList { // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // List of security context constraints. - repeated SecurityContextConstraints items = 2; + repeated SecurityContextConstraints items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ServiceAccountPodSecurityPolicyReviewStatus represents ServiceAccount name and related review status message ServiceAccountPodSecurityPolicyReviewStatus { - optional PodSecurityPolicySubjectReviewStatus podSecurityPolicySubjectReviewStatus = 1; + optional PodSecurityPolicySubjectReviewStatus podSecurityPolicySubjectReviewStatus = 1 [(gogoproto.customname) = "PodSecurityPolicySubjectReviewStatus", (gogoproto.nullable) = false]; // name contains the allowed and the denied ServiceAccount name - optional string name = 2; + optional string name = 2 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; } // SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. message SupplementalGroupsStrategyOptions { // Type is the strategy that will dictate what supplemental groups is used in the SecurityContext. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "SupplementalGroupsStrategyType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Ranges are the allowed ranges of supplemental groups. If you would like to force a single // supplemental group then supply a single range with the same start and end. - repeated IDRange ranges = 2; + repeated IDRange ranges = 2 [(gogoproto.customname) = "Ranges", (gogoproto.nullable) = false]; } diff --git a/api/protobuf-spec/github_com_openshift_origin_pkg_template_apis_template_v1.proto b/api/protobuf-spec/github_com_openshift_origin_pkg_template_apis_template_v1.proto index ceed8beb146e..e9e3c7a74738 100644 --- a/api/protobuf-spec/github_com_openshift_origin_pkg_template_apis_template_v1.proto +++ b/api/protobuf-spec/github_com_openshift_origin_pkg_template_apis_template_v1.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,49 +13,61 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // BrokerTemplateInstance holds the service broker-related state associated with // a TemplateInstance. BrokerTemplateInstance is part of an experimental API. message BrokerTemplateInstance { // Standard object metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // spec describes the state of this BrokerTemplateInstance. - optional BrokerTemplateInstanceSpec spec = 2; + optional BrokerTemplateInstanceSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; } // BrokerTemplateInstanceList is a list of BrokerTemplateInstance objects. message BrokerTemplateInstanceList { // Standard object metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // items is a list of BrokerTemplateInstances - repeated BrokerTemplateInstance items = 2; + repeated BrokerTemplateInstance items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // BrokerTemplateInstanceSpec describes the state of a BrokerTemplateInstance. message BrokerTemplateInstanceSpec { // templateinstance is a reference to a TemplateInstance object residing // in a namespace. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference templateInstance = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference templateInstance = 1 [(gogoproto.customname) = "TemplateInstance", (gogoproto.nullable) = false]; // secret is a reference to a Secret object residing in a namespace, // containing the necessary template parameters. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference secret = 2; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference secret = 2 [(gogoproto.customname) = "Secret", (gogoproto.nullable) = false]; // bindingids is a list of 'binding_id's provided during successive bind // calls to the template service broker. - repeated string bindingIDs = 3; + repeated string bindingIDs = 3 [(gogoproto.customname) = "BindingIDs"]; } // ExtraValue masks the value so protobuf can generate // +protobuf.nullable=true // +protobuf.options.(gogoproto.goproto_stringer)=false message ExtraValue { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + // items, if empty, will result in an empty slice - repeated string items = 1; + repeated string items = 1 [(gogoproto.customname) = "Items"]; } // Parameter defines a name/value variable that is to be processed during @@ -62,18 +75,18 @@ message ExtraValue { message Parameter { // Name must be set and it can be referenced in Template // Items using ${PARAMETER_NAME}. Required. - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // Optional: The name that will show in UI instead of parameter 'Name' - optional string displayName = 2; + optional string displayName = 2 [(gogoproto.customname) = "DisplayName", (gogoproto.nullable) = false]; // Description of a parameter. Optional. - optional string description = 3; + optional string description = 3 [(gogoproto.customname) = "Description", (gogoproto.nullable) = false]; // Value holds the Parameter data. If specified, the generator will be // ignored. The value replaces all occurrences of the Parameter ${Name} // expression during the Template to Config transformation. Optional. - optional string value = 4; + optional string value = 4 [(gogoproto.customname) = "Value", (gogoproto.nullable) = false]; // generate specifies the generator to be used to generate random string // from an input value specified by From field. The result string is @@ -92,19 +105,19 @@ message Parameter { // "[0-1]{8}" | "01001100" // "0x[A-F0-9]{4}" | "0xB3AF" // "[a-zA-Z0-9]{8}" | "hW4yQU5i" - optional string generate = 5; + optional string generate = 5 [(gogoproto.customname) = "Generate", (gogoproto.nullable) = false]; // From is an input value for the generator. Optional. - optional string from = 6; + optional string from = 6 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // Optional: Indicates the parameter must have a value. Defaults to false. - optional bool required = 7; + optional bool required = 7 [(gogoproto.customname) = "Required", (gogoproto.nullable) = false]; } // Template contains the inputs needed to produce a Config. message Template { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // message is an optional instructional message that will // be displayed when this template is instantiated. @@ -112,7 +125,7 @@ message Template { // Parameter substitution will be performed on the message before being // displayed so that generated credentials and other parameters can be // included in the output. - optional string message = 2; + optional string message = 2 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; // objects is an array of resources to include in this template. // If a namespace value is hardcoded in the object, it will be removed @@ -120,59 +133,59 @@ message Template { // is, or contains, a ${PARAMETER_REFERENCE}, the resolved // value after parameter substitution will be respected and the object // will be created in that namespace. - repeated k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; + repeated k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3 [(gogoproto.customname) = "Objects", (gogoproto.nullable) = false]; // parameters is an optional array of Parameters used during the // Template to Config transformation. - repeated Parameter parameters = 4; + repeated Parameter parameters = 4 [(gogoproto.customname) = "Parameters", (gogoproto.nullable) = false]; // labels is a optional set of labels that are applied to every // object during the Template to Config transformation. - map labels = 5; + map labels = 5 [(gogoproto.customname) = "ObjectLabels", (gogoproto.nullable) = false]; } // TemplateInstance requests and records the instantiation of a Template. // TemplateInstance is part of an experimental API. message TemplateInstance { // Standard object metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // spec describes the desired state of this TemplateInstance. - optional TemplateInstanceSpec spec = 2; + optional TemplateInstanceSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // status describes the current state of this TemplateInstance. - optional TemplateInstanceStatus status = 3; + optional TemplateInstanceStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // TemplateInstanceCondition contains condition information for a // TemplateInstance. message TemplateInstanceCondition { // Type of the condition, currently Ready or InstantiateFailure. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "TemplateInstanceConditionType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Status of the condition, one of True, False or Unknown. - optional string status = 2; + optional string status = 2 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.ConditionStatus", (gogoproto.customname) = "Status", (gogoproto.nullable) = false]; // LastTransitionTime is the last time a condition status transitioned from // one state to another. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3 [(gogoproto.customname) = "LastTransitionTime", (gogoproto.nullable) = false]; // Reason is a brief machine readable explanation for the condition's last // transition. - optional string reason = 4; + optional string reason = 4 [(gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // Message is a human readable description of the details of the last // transition, complementing reason. - optional string message = 5; + optional string message = 5 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; } // TemplateInstanceList is a list of TemplateInstance objects. message TemplateInstanceList { // Standard object metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // items is a list of Templateinstances - repeated TemplateInstance items = 2; + repeated TemplateInstance items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // TemplateInstanceObject references an object created by a TemplateInstance. @@ -180,57 +193,57 @@ message TemplateInstanceObject { // ref is a reference to the created object. When used under .spec, only // name and namespace are used; these can contain references to parameters // which will be substituted following the usual rules. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference ref = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference ref = 1 [(gogoproto.customname) = "Ref", (gogoproto.nullable) = false]; } // TemplateInstanceRequester holds the identity of an agent requesting a // template instantiation. message TemplateInstanceRequester { // username uniquely identifies this user among all active users. - optional string username = 1; + optional string username = 1 [(gogoproto.customname) = "Username", (gogoproto.nullable) = false]; // uid is a unique value that identifies this user across time; if this user is // deleted and another user by the same name is added, they will have // different UIDs. - optional string uid = 2; + optional string uid = 2 [(gogoproto.customname) = "UID", (gogoproto.nullable) = false]; // groups represent the groups this user is a part of. - repeated string groups = 3; + repeated string groups = 3 [(gogoproto.customname) = "Groups"]; // extra holds additional information provided by the authenticator. - map extra = 4; + map extra = 4 [(gogoproto.customname) = "Extra", (gogoproto.nullable) = false]; } // TemplateInstanceSpec describes the desired state of a TemplateInstance. message TemplateInstanceSpec { // template is a full copy of the template for instantiation. - optional Template template = 1; + optional Template template = 1 [(gogoproto.customname) = "Template", (gogoproto.nullable) = false]; // secret is a reference to a Secret object containing the necessary // template parameters. - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference secret = 2; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference secret = 2 [(gogoproto.customname) = "Secret"]; // requester holds the identity of the agent requesting the template // instantiation. - optional TemplateInstanceRequester requester = 3; + optional TemplateInstanceRequester requester = 3 [(gogoproto.customname) = "Requester"]; } // TemplateInstanceStatus describes the current state of a TemplateInstance. message TemplateInstanceStatus { // conditions represent the latest available observations of a // TemplateInstance's current state. - repeated TemplateInstanceCondition conditions = 1; + repeated TemplateInstanceCondition conditions = 1 [(gogoproto.customname) = "Conditions", (gogoproto.nullable) = false]; // Objects references the objects created by the TemplateInstance. - repeated TemplateInstanceObject objects = 2; + repeated TemplateInstanceObject objects = 2 [(gogoproto.customname) = "Objects", (gogoproto.nullable) = false]; } // TemplateList is a list of Template objects. message TemplateList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of templates - repeated Template items = 2; + repeated Template items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } diff --git a/api/protobuf-spec/github_com_openshift_origin_pkg_user_apis_user_v1.proto b/api/protobuf-spec/github_com_openshift_origin_pkg_user_apis_user_v1.proto index 2f6d238fa59f..cae66cd71985 100644 --- a/api/protobuf-spec/github_com_openshift_origin_pkg_user_apis_user_v1.proto +++ b/api/protobuf-spec/github_com_openshift_origin_pkg_user_apis_user_v1.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.user.apis.user.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,24 +13,33 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // Group represents a referenceable set of Users message Group { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Users is the list of users in this group. - optional OptionalNames users = 2; + optional OptionalNames users = 2 [(gogoproto.customname) = "Users"]; } // GroupList is a collection of Groups message GroupList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of groups - repeated Group items = 2; + repeated Group items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // Identity records a successful authentication of a user with an identity provider. The @@ -39,38 +49,41 @@ message GroupList { // using a schema determined by the provider. message Identity { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // ProviderName is the source of identity information - optional string providerName = 2; + optional string providerName = 2 [(gogoproto.customname) = "ProviderName", (gogoproto.nullable) = false]; // ProviderUserName uniquely represents this identity in the scope of the provider - optional string providerUserName = 3; + optional string providerUserName = 3 [(gogoproto.customname) = "ProviderUserName", (gogoproto.nullable) = false]; // User is a reference to the user this identity is associated with // Both Name and UID must be set - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference user = 4; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference user = 4 [(gogoproto.customname) = "User", (gogoproto.nullable) = false]; // Extra holds extra information about this identity - map extra = 5; + map extra = 5 [(gogoproto.customname) = "Extra", (gogoproto.nullable) = false]; } // IdentityList is a collection of Identities message IdentityList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of identities - repeated Identity items = 2; + repeated Identity items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // OptionalNames is an array that may also be left nil to distinguish between set and unset. // +protobuf.nullable=true // +protobuf.options.(gogoproto.goproto_stringer)=false message OptionalNames { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + // items, if empty, will result in an empty slice - repeated string items = 1; + repeated string items = 1 [(gogoproto.customname) = "Items"]; } // Upon log in, every user of the system receives a User and Identity resource. Administrators @@ -80,38 +93,38 @@ message OptionalNames { // a number appended to it depending on the configuration of the system. message User { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // FullName is the full name of user - optional string fullName = 2; + optional string fullName = 2 [(gogoproto.customname) = "FullName", (gogoproto.nullable) = false]; // Identities are the identities associated with this user - repeated string identities = 3; + repeated string identities = 3 [(gogoproto.customname) = "Identities"]; // Groups specifies group names this user is a member of. // This field is deprecated and will be removed in a future release. // Instead, create a Group object containing the name of this User. - repeated string groups = 4; + repeated string groups = 4 [(gogoproto.customname) = "Groups"]; } // UserIdentityMapping maps a user to an identity message UserIdentityMapping { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Identity is a reference to an identity - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference identity = 2; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference identity = 2 [(gogoproto.customname) = "Identity", (gogoproto.nullable) = false]; // User is a reference to a user - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference user = 3; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference user = 3 [(gogoproto.customname) = "User", (gogoproto.nullable) = false]; } // UserList is a collection of Users message UserList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of users - repeated User items = 2; + repeated User items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } diff --git a/api/swagger-spec/openshift-openapi-spec.json b/api/swagger-spec/openshift-openapi-spec.json index 137fdaa155ea..082672ba9223 100644 --- a/api/swagger-spec/openshift-openapi-spec.json +++ b/api/swagger-spec/openshift-openapi-spec.json @@ -90332,7 +90332,7 @@ "description": "ImageStreamSpec represents options for ImageStreams.", "properties": { "dockerImageRepository": { - "description": "dockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server", + "description": "dockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server Deprecated: This field is deprecated as of v3.7 and will be removed in a future release Specify the source for the tags to be imported in each tag via the spec.tags.from reference instead.", "type": "string" }, "lookupPolicy": { @@ -90701,7 +90701,7 @@ } }, "from": { - "description": "From is a reference to an image stream tag or image stream this tag should track", + "description": "Optional; if specified, a reference to another image that this tag should point to. Valid values are ImageStreamTag, ImageStreamImage, and DockerImage.", "$ref": "#/definitions/io.k8s.kubernetes.pkg.api.v1.ObjectReference" }, "generation": { diff --git a/pkg/authorization/apis/authorization/v1/generated.pb.go b/pkg/authorization/apis/authorization/v1/generated.pb.go deleted file mode 100644 index 4f6a5abcb900..000000000000 --- a/pkg/authorization/apis/authorization/v1/generated.pb.go +++ /dev/null @@ -1,9090 +0,0 @@ -// Code generated by protoc-gen-gogo. -// source: github.com/openshift/origin/pkg/authorization/apis/authorization/v1/generated.proto -// DO NOT EDIT! - -/* - Package v1 is a generated protocol buffer package. - - It is generated from these files: - github.com/openshift/origin/pkg/authorization/apis/authorization/v1/generated.proto - - It has these top-level messages: - Action - ClusterPolicy - ClusterPolicyBinding - ClusterPolicyBindingList - ClusterPolicyList - ClusterRole - ClusterRoleBinding - ClusterRoleBindingList - ClusterRoleList - GroupRestriction - IsPersonalSubjectAccessReview - LocalResourceAccessReview - LocalSubjectAccessReview - NamedClusterRole - NamedClusterRoleBinding - NamedRole - NamedRoleBinding - OptionalNames - OptionalScopes - Policy - PolicyBinding - PolicyBindingList - PolicyList - PolicyRule - ResourceAccessReview - ResourceAccessReviewResponse - Role - RoleBinding - RoleBindingList - RoleBindingRestriction - RoleBindingRestrictionList - RoleBindingRestrictionSpec - RoleList - SelfSubjectRulesReview - SelfSubjectRulesReviewSpec - ServiceAccountReference - ServiceAccountRestriction - SubjectAccessReview - SubjectAccessReviewResponse - SubjectRulesReview - SubjectRulesReviewSpec - SubjectRulesReviewStatus - UserRestriction -*/ -package v1 - -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" - -import strings "strings" -import reflect "reflect" - -import io "io" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *Action) Reset() { *m = Action{} } -func (*Action) ProtoMessage() {} -func (*Action) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } - -func (m *ClusterPolicy) Reset() { *m = ClusterPolicy{} } -func (*ClusterPolicy) ProtoMessage() {} -func (*ClusterPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } - -func (m *ClusterPolicyBinding) Reset() { *m = ClusterPolicyBinding{} } -func (*ClusterPolicyBinding) ProtoMessage() {} -func (*ClusterPolicyBinding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } - -func (m *ClusterPolicyBindingList) Reset() { *m = ClusterPolicyBindingList{} } -func (*ClusterPolicyBindingList) ProtoMessage() {} -func (*ClusterPolicyBindingList) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{3} -} - -func (m *ClusterPolicyList) Reset() { *m = ClusterPolicyList{} } -func (*ClusterPolicyList) ProtoMessage() {} -func (*ClusterPolicyList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } - -func (m *ClusterRole) Reset() { *m = ClusterRole{} } -func (*ClusterRole) ProtoMessage() {} -func (*ClusterRole) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } - -func (m *ClusterRoleBinding) Reset() { *m = ClusterRoleBinding{} } -func (*ClusterRoleBinding) ProtoMessage() {} -func (*ClusterRoleBinding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } - -func (m *ClusterRoleBindingList) Reset() { *m = ClusterRoleBindingList{} } -func (*ClusterRoleBindingList) ProtoMessage() {} -func (*ClusterRoleBindingList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } - -func (m *ClusterRoleList) Reset() { *m = ClusterRoleList{} } -func (*ClusterRoleList) ProtoMessage() {} -func (*ClusterRoleList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } - -func (m *GroupRestriction) Reset() { *m = GroupRestriction{} } -func (*GroupRestriction) ProtoMessage() {} -func (*GroupRestriction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } - -func (m *IsPersonalSubjectAccessReview) Reset() { *m = IsPersonalSubjectAccessReview{} } -func (*IsPersonalSubjectAccessReview) ProtoMessage() {} -func (*IsPersonalSubjectAccessReview) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{10} -} - -func (m *LocalResourceAccessReview) Reset() { *m = LocalResourceAccessReview{} } -func (*LocalResourceAccessReview) ProtoMessage() {} -func (*LocalResourceAccessReview) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{11} -} - -func (m *LocalSubjectAccessReview) Reset() { *m = LocalSubjectAccessReview{} } -func (*LocalSubjectAccessReview) ProtoMessage() {} -func (*LocalSubjectAccessReview) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{12} -} - -func (m *NamedClusterRole) Reset() { *m = NamedClusterRole{} } -func (*NamedClusterRole) ProtoMessage() {} -func (*NamedClusterRole) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } - -func (m *NamedClusterRoleBinding) Reset() { *m = NamedClusterRoleBinding{} } -func (*NamedClusterRoleBinding) ProtoMessage() {} -func (*NamedClusterRoleBinding) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{14} -} - -func (m *NamedRole) Reset() { *m = NamedRole{} } -func (*NamedRole) ProtoMessage() {} -func (*NamedRole) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} } - -func (m *NamedRoleBinding) Reset() { *m = NamedRoleBinding{} } -func (*NamedRoleBinding) ProtoMessage() {} -func (*NamedRoleBinding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} } - -func (m *OptionalNames) Reset() { *m = OptionalNames{} } -func (*OptionalNames) ProtoMessage() {} -func (*OptionalNames) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} } - -func (m *OptionalScopes) Reset() { *m = OptionalScopes{} } -func (*OptionalScopes) ProtoMessage() {} -func (*OptionalScopes) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } - -func (m *Policy) Reset() { *m = Policy{} } -func (*Policy) ProtoMessage() {} -func (*Policy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } - -func (m *PolicyBinding) Reset() { *m = PolicyBinding{} } -func (*PolicyBinding) ProtoMessage() {} -func (*PolicyBinding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} } - -func (m *PolicyBindingList) Reset() { *m = PolicyBindingList{} } -func (*PolicyBindingList) ProtoMessage() {} -func (*PolicyBindingList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{21} } - -func (m *PolicyList) Reset() { *m = PolicyList{} } -func (*PolicyList) ProtoMessage() {} -func (*PolicyList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{22} } - -func (m *PolicyRule) Reset() { *m = PolicyRule{} } -func (*PolicyRule) ProtoMessage() {} -func (*PolicyRule) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{23} } - -func (m *ResourceAccessReview) Reset() { *m = ResourceAccessReview{} } -func (*ResourceAccessReview) ProtoMessage() {} -func (*ResourceAccessReview) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{24} } - -func (m *ResourceAccessReviewResponse) Reset() { *m = ResourceAccessReviewResponse{} } -func (*ResourceAccessReviewResponse) ProtoMessage() {} -func (*ResourceAccessReviewResponse) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{25} -} - -func (m *Role) Reset() { *m = Role{} } -func (*Role) ProtoMessage() {} -func (*Role) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{26} } - -func (m *RoleBinding) Reset() { *m = RoleBinding{} } -func (*RoleBinding) ProtoMessage() {} -func (*RoleBinding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{27} } - -func (m *RoleBindingList) Reset() { *m = RoleBindingList{} } -func (*RoleBindingList) ProtoMessage() {} -func (*RoleBindingList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{28} } - -func (m *RoleBindingRestriction) Reset() { *m = RoleBindingRestriction{} } -func (*RoleBindingRestriction) ProtoMessage() {} -func (*RoleBindingRestriction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{29} } - -func (m *RoleBindingRestrictionList) Reset() { *m = RoleBindingRestrictionList{} } -func (*RoleBindingRestrictionList) ProtoMessage() {} -func (*RoleBindingRestrictionList) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{30} -} - -func (m *RoleBindingRestrictionSpec) Reset() { *m = RoleBindingRestrictionSpec{} } -func (*RoleBindingRestrictionSpec) ProtoMessage() {} -func (*RoleBindingRestrictionSpec) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{31} -} - -func (m *RoleList) Reset() { *m = RoleList{} } -func (*RoleList) ProtoMessage() {} -func (*RoleList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{32} } - -func (m *SelfSubjectRulesReview) Reset() { *m = SelfSubjectRulesReview{} } -func (*SelfSubjectRulesReview) ProtoMessage() {} -func (*SelfSubjectRulesReview) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{33} } - -func (m *SelfSubjectRulesReviewSpec) Reset() { *m = SelfSubjectRulesReviewSpec{} } -func (*SelfSubjectRulesReviewSpec) ProtoMessage() {} -func (*SelfSubjectRulesReviewSpec) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{34} -} - -func (m *ServiceAccountReference) Reset() { *m = ServiceAccountReference{} } -func (*ServiceAccountReference) ProtoMessage() {} -func (*ServiceAccountReference) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{35} -} - -func (m *ServiceAccountRestriction) Reset() { *m = ServiceAccountRestriction{} } -func (*ServiceAccountRestriction) ProtoMessage() {} -func (*ServiceAccountRestriction) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{36} -} - -func (m *SubjectAccessReview) Reset() { *m = SubjectAccessReview{} } -func (*SubjectAccessReview) ProtoMessage() {} -func (*SubjectAccessReview) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{37} } - -func (m *SubjectAccessReviewResponse) Reset() { *m = SubjectAccessReviewResponse{} } -func (*SubjectAccessReviewResponse) ProtoMessage() {} -func (*SubjectAccessReviewResponse) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{38} -} - -func (m *SubjectRulesReview) Reset() { *m = SubjectRulesReview{} } -func (*SubjectRulesReview) ProtoMessage() {} -func (*SubjectRulesReview) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{39} } - -func (m *SubjectRulesReviewSpec) Reset() { *m = SubjectRulesReviewSpec{} } -func (*SubjectRulesReviewSpec) ProtoMessage() {} -func (*SubjectRulesReviewSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{40} } - -func (m *SubjectRulesReviewStatus) Reset() { *m = SubjectRulesReviewStatus{} } -func (*SubjectRulesReviewStatus) ProtoMessage() {} -func (*SubjectRulesReviewStatus) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{41} -} - -func (m *UserRestriction) Reset() { *m = UserRestriction{} } -func (*UserRestriction) ProtoMessage() {} -func (*UserRestriction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{42} } - -func init() { - proto.RegisterType((*Action)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.Action") - proto.RegisterType((*ClusterPolicy)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.ClusterPolicy") - proto.RegisterType((*ClusterPolicyBinding)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.ClusterPolicyBinding") - proto.RegisterType((*ClusterPolicyBindingList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.ClusterPolicyBindingList") - proto.RegisterType((*ClusterPolicyList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.ClusterPolicyList") - proto.RegisterType((*ClusterRole)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.ClusterRole") - proto.RegisterType((*ClusterRoleBinding)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.ClusterRoleBinding") - proto.RegisterType((*ClusterRoleBindingList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.ClusterRoleBindingList") - proto.RegisterType((*ClusterRoleList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.ClusterRoleList") - proto.RegisterType((*GroupRestriction)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.GroupRestriction") - proto.RegisterType((*IsPersonalSubjectAccessReview)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.IsPersonalSubjectAccessReview") - proto.RegisterType((*LocalResourceAccessReview)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.LocalResourceAccessReview") - proto.RegisterType((*LocalSubjectAccessReview)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.LocalSubjectAccessReview") - proto.RegisterType((*NamedClusterRole)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.NamedClusterRole") - proto.RegisterType((*NamedClusterRoleBinding)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.NamedClusterRoleBinding") - proto.RegisterType((*NamedRole)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.NamedRole") - proto.RegisterType((*NamedRoleBinding)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.NamedRoleBinding") - proto.RegisterType((*OptionalNames)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.OptionalNames") - proto.RegisterType((*OptionalScopes)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.OptionalScopes") - proto.RegisterType((*Policy)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.Policy") - proto.RegisterType((*PolicyBinding)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.PolicyBinding") - proto.RegisterType((*PolicyBindingList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.PolicyBindingList") - proto.RegisterType((*PolicyList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.PolicyList") - proto.RegisterType((*PolicyRule)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.PolicyRule") - proto.RegisterType((*ResourceAccessReview)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.ResourceAccessReview") - proto.RegisterType((*ResourceAccessReviewResponse)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.ResourceAccessReviewResponse") - proto.RegisterType((*Role)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.Role") - proto.RegisterType((*RoleBinding)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.RoleBinding") - proto.RegisterType((*RoleBindingList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.RoleBindingList") - proto.RegisterType((*RoleBindingRestriction)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.RoleBindingRestriction") - proto.RegisterType((*RoleBindingRestrictionList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.RoleBindingRestrictionList") - proto.RegisterType((*RoleBindingRestrictionSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.RoleBindingRestrictionSpec") - proto.RegisterType((*RoleList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.RoleList") - proto.RegisterType((*SelfSubjectRulesReview)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.SelfSubjectRulesReview") - proto.RegisterType((*SelfSubjectRulesReviewSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.SelfSubjectRulesReviewSpec") - proto.RegisterType((*ServiceAccountReference)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.ServiceAccountReference") - proto.RegisterType((*ServiceAccountRestriction)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.ServiceAccountRestriction") - proto.RegisterType((*SubjectAccessReview)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.SubjectAccessReview") - proto.RegisterType((*SubjectAccessReviewResponse)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.SubjectAccessReviewResponse") - proto.RegisterType((*SubjectRulesReview)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.SubjectRulesReview") - proto.RegisterType((*SubjectRulesReviewSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.SubjectRulesReviewSpec") - proto.RegisterType((*SubjectRulesReviewStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.SubjectRulesReviewStatus") - proto.RegisterType((*UserRestriction)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1.UserRestriction") -} -func (m *Action) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Action) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i += copy(dAtA[i:], m.Namespace) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verb))) - i += copy(dAtA[i:], m.Verb) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) - i += copy(dAtA[i:], m.Group) - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) - i += copy(dAtA[i:], m.Version) - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resource))) - i += copy(dAtA[i:], m.Resource) - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceName))) - i += copy(dAtA[i:], m.ResourceName) - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Content.Size())) - n1, err := m.Content.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i += copy(dAtA[i:], m.Path) - dAtA[i] = 0x48 - i++ - if m.IsNonResourceURL { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - return i, nil -} - -func (m *ClusterPolicy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterPolicy) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n2, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LastModified.Size())) - n3, err := m.LastModified.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - if len(m.Roles) > 0 { - for _, msg := range m.Roles { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ClusterPolicyBinding) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterPolicyBinding) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n4, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LastModified.Size())) - n5, err := m.LastModified.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.PolicyRef.Size())) - n6, err := m.PolicyRef.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - if len(m.RoleBindings) > 0 { - for _, msg := range m.RoleBindings { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ClusterPolicyBindingList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterPolicyBindingList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n7, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ClusterPolicyList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterPolicyList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n8, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ClusterRole) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRole) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n9, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - if len(m.Rules) > 0 { - for _, msg := range m.Rules { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ClusterRoleBinding) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRoleBinding) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n10, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 - if m.UserNames != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.UserNames.Size())) - n11, err := m.UserNames.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 - } - if m.GroupNames != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.GroupNames.Size())) - n12, err := m.GroupNames.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n12 - } - if len(m.Subjects) > 0 { - for _, msg := range m.Subjects { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.RoleRef.Size())) - n13, err := m.RoleRef.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 - return i, nil -} - -func (m *ClusterRoleBindingList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRoleBindingList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n14, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n14 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ClusterRoleList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRoleList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n15, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n15 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *GroupRestriction) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupRestriction) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Groups) > 0 { - for _, s := range m.Groups { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.Selectors) > 0 { - for _, msg := range m.Selectors { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *IsPersonalSubjectAccessReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IsPersonalSubjectAccessReview) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - return i, nil -} - -func (m *LocalResourceAccessReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LocalResourceAccessReview) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Action.Size())) - n16, err := m.Action.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n16 - return i, nil -} - -func (m *LocalSubjectAccessReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LocalSubjectAccessReview) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Action.Size())) - n17, err := m.Action.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n17 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.User))) - i += copy(dAtA[i:], m.User) - if len(m.GroupsSlice) > 0 { - for _, s := range m.GroupsSlice { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if m.Scopes != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Scopes.Size())) - n18, err := m.Scopes.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n18 - } - return i, nil -} - -func (m *NamedClusterRole) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NamedClusterRole) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Role.Size())) - n19, err := m.Role.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n19 - return i, nil -} - -func (m *NamedClusterRoleBinding) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NamedClusterRoleBinding) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.RoleBinding.Size())) - n20, err := m.RoleBinding.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n20 - return i, nil -} - -func (m *NamedRole) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NamedRole) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Role.Size())) - n21, err := m.Role.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n21 - return i, nil -} - -func (m *NamedRoleBinding) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NamedRoleBinding) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.RoleBinding.Size())) - n22, err := m.RoleBinding.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n22 - return i, nil -} - -func (m OptionalNames) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m OptionalNames) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m) > 0 { - for _, s := range m { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m OptionalScopes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m OptionalScopes) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m) > 0 { - for _, s := range m { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *Policy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Policy) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n23, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n23 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LastModified.Size())) - n24, err := m.LastModified.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n24 - if len(m.Roles) > 0 { - for _, msg := range m.Roles { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *PolicyBinding) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PolicyBinding) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n25, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n25 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LastModified.Size())) - n26, err := m.LastModified.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n26 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.PolicyRef.Size())) - n27, err := m.PolicyRef.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n27 - if len(m.RoleBindings) > 0 { - for _, msg := range m.RoleBindings { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *PolicyBindingList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PolicyBindingList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n28, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n28 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *PolicyList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PolicyList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n29, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n29 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *PolicyRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PolicyRule) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Verbs) > 0 { - for _, s := range m.Verbs { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.AttributeRestrictions.Size())) - n30, err := m.AttributeRestrictions.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n30 - if len(m.APIGroups) > 0 { - for _, s := range m.APIGroups { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.Resources) > 0 { - for _, s := range m.Resources { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.ResourceNames) > 0 { - for _, s := range m.ResourceNames { - dAtA[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.NonResourceURLsSlice) > 0 { - for _, s := range m.NonResourceURLsSlice { - dAtA[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *ResourceAccessReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceAccessReview) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Action.Size())) - n31, err := m.Action.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n31 - return i, nil -} - -func (m *ResourceAccessReviewResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceAccessReviewResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i += copy(dAtA[i:], m.Namespace) - if len(m.UsersSlice) > 0 { - for _, s := range m.UsersSlice { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.GroupsSlice) > 0 { - for _, s := range m.GroupsSlice { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.EvaluationError))) - i += copy(dAtA[i:], m.EvaluationError) - return i, nil -} - -func (m *Role) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Role) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n32, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n32 - if len(m.Rules) > 0 { - for _, msg := range m.Rules { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *RoleBinding) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleBinding) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n33, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n33 - if m.UserNames != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.UserNames.Size())) - n34, err := m.UserNames.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n34 - } - if m.GroupNames != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.GroupNames.Size())) - n35, err := m.GroupNames.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n35 - } - if len(m.Subjects) > 0 { - for _, msg := range m.Subjects { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.RoleRef.Size())) - n36, err := m.RoleRef.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n36 - return i, nil -} - -func (m *RoleBindingList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleBindingList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n37, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n37 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *RoleBindingRestriction) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleBindingRestriction) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n38, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n38 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n39, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n39 - return i, nil -} - -func (m *RoleBindingRestrictionList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleBindingRestrictionList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n40, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n40 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *RoleBindingRestrictionSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleBindingRestrictionSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.UserRestriction != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.UserRestriction.Size())) - n41, err := m.UserRestriction.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n41 - } - if m.GroupRestriction != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.GroupRestriction.Size())) - n42, err := m.GroupRestriction.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n42 - } - if m.ServiceAccountRestriction != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ServiceAccountRestriction.Size())) - n43, err := m.ServiceAccountRestriction.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n43 - } - return i, nil -} - -func (m *RoleList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n44, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n44 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *SelfSubjectRulesReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SelfSubjectRulesReview) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n45, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n45 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n46, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n46 - return i, nil -} - -func (m *SelfSubjectRulesReviewSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SelfSubjectRulesReviewSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Scopes != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Scopes.Size())) - n47, err := m.Scopes.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n47 - } - return i, nil -} - -func (m *ServiceAccountReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceAccountReference) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i += copy(dAtA[i:], m.Namespace) - return i, nil -} - -func (m *ServiceAccountRestriction) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceAccountRestriction) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ServiceAccounts) > 0 { - for _, msg := range m.ServiceAccounts { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Namespaces) > 0 { - for _, s := range m.Namespaces { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *SubjectAccessReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubjectAccessReview) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Action.Size())) - n48, err := m.Action.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n48 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.User))) - i += copy(dAtA[i:], m.User) - if len(m.GroupsSlice) > 0 { - for _, s := range m.GroupsSlice { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if m.Scopes != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Scopes.Size())) - n49, err := m.Scopes.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n49 - } - return i, nil -} - -func (m *SubjectAccessReviewResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubjectAccessReviewResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i += copy(dAtA[i:], m.Namespace) - dAtA[i] = 0x10 - i++ - if m.Allowed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i += copy(dAtA[i:], m.Reason) - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.EvaluationError))) - i += copy(dAtA[i:], m.EvaluationError) - return i, nil -} - -func (m *SubjectRulesReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubjectRulesReview) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n50, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n50 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n51, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n51 - return i, nil -} - -func (m *SubjectRulesReviewSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubjectRulesReviewSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.User))) - i += copy(dAtA[i:], m.User) - if len(m.Groups) > 0 { - for _, s := range m.Groups { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if m.Scopes != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Scopes.Size())) - n52, err := m.Scopes.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n52 - } - return i, nil -} - -func (m *SubjectRulesReviewStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubjectRulesReviewStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Rules) > 0 { - for _, msg := range m.Rules { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.EvaluationError))) - i += copy(dAtA[i:], m.EvaluationError) - return i, nil -} - -func (m *UserRestriction) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UserRestriction) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Users) > 0 { - for _, s := range m.Users { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.Groups) > 0 { - for _, s := range m.Groups { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.Selectors) > 0 { - for _, msg := range m.Selectors { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - dAtA[offset+4] = uint8(v >> 32) - dAtA[offset+5] = uint8(v >> 40) - dAtA[offset+6] = uint8(v >> 48) - dAtA[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *Action) Size() (n int) { - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Verb) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Group) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Version) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Resource) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ResourceName) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Content.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func (m *ClusterPolicy) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastModified.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Roles) > 0 { - for _, e := range m.Roles { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ClusterPolicyBinding) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastModified.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.PolicyRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.RoleBindings) > 0 { - for _, e := range m.RoleBindings { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ClusterPolicyBindingList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ClusterPolicyList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ClusterRole) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ClusterRoleBinding) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.UserNames != nil { - l = m.UserNames.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.GroupNames != nil { - l = m.GroupNames.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Subjects) > 0 { - for _, e := range m.Subjects { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.RoleRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ClusterRoleBindingList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ClusterRoleList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *GroupRestriction) Size() (n int) { - var l int - _ = l - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Selectors) > 0 { - for _, e := range m.Selectors { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *IsPersonalSubjectAccessReview) Size() (n int) { - var l int - _ = l - return n -} - -func (m *LocalResourceAccessReview) Size() (n int) { - var l int - _ = l - l = m.Action.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *LocalSubjectAccessReview) Size() (n int) { - var l int - _ = l - l = m.Action.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.User) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.GroupsSlice) > 0 { - for _, s := range m.GroupsSlice { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.Scopes != nil { - l = m.Scopes.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *NamedClusterRole) Size() (n int) { - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Role.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NamedClusterRoleBinding) Size() (n int) { - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.RoleBinding.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NamedRole) Size() (n int) { - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Role.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NamedRoleBinding) Size() (n int) { - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.RoleBinding.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m OptionalNames) Size() (n int) { - var l int - _ = l - if len(m) > 0 { - for _, s := range m { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m OptionalScopes) Size() (n int) { - var l int - _ = l - if len(m) > 0 { - for _, s := range m { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Policy) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastModified.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Roles) > 0 { - for _, e := range m.Roles { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PolicyBinding) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastModified.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.PolicyRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.RoleBindings) > 0 { - for _, e := range m.RoleBindings { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PolicyBindingList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PolicyList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PolicyRule) Size() (n int) { - var l int - _ = l - if len(m.Verbs) > 0 { - for _, s := range m.Verbs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.AttributeRestrictions.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.APIGroups) > 0 { - for _, s := range m.APIGroups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Resources) > 0 { - for _, s := range m.Resources { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.ResourceNames) > 0 { - for _, s := range m.ResourceNames { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.NonResourceURLsSlice) > 0 { - for _, s := range m.NonResourceURLsSlice { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ResourceAccessReview) Size() (n int) { - var l int - _ = l - l = m.Action.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ResourceAccessReviewResponse) Size() (n int) { - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.UsersSlice) > 0 { - for _, s := range m.UsersSlice { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.GroupsSlice) > 0 { - for _, s := range m.GroupsSlice { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.EvaluationError) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Role) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RoleBinding) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.UserNames != nil { - l = m.UserNames.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.GroupNames != nil { - l = m.GroupNames.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Subjects) > 0 { - for _, e := range m.Subjects { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.RoleRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RoleBindingList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RoleBindingRestriction) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RoleBindingRestrictionList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RoleBindingRestrictionSpec) Size() (n int) { - var l int - _ = l - if m.UserRestriction != nil { - l = m.UserRestriction.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.GroupRestriction != nil { - l = m.GroupRestriction.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ServiceAccountRestriction != nil { - l = m.ServiceAccountRestriction.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RoleList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *SelfSubjectRulesReview) Size() (n int) { - var l int - _ = l - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SelfSubjectRulesReviewSpec) Size() (n int) { - var l int - _ = l - if m.Scopes != nil { - l = m.Scopes.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ServiceAccountReference) Size() (n int) { - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ServiceAccountRestriction) Size() (n int) { - var l int - _ = l - if len(m.ServiceAccounts) > 0 { - for _, e := range m.ServiceAccounts { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Namespaces) > 0 { - for _, s := range m.Namespaces { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *SubjectAccessReview) Size() (n int) { - var l int - _ = l - l = m.Action.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.User) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.GroupsSlice) > 0 { - for _, s := range m.GroupsSlice { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.Scopes != nil { - l = m.Scopes.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *SubjectAccessReviewResponse) Size() (n int) { - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.EvaluationError) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SubjectRulesReview) Size() (n int) { - var l int - _ = l - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SubjectRulesReviewSpec) Size() (n int) { - var l int - _ = l - l = len(m.User) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.Scopes != nil { - l = m.Scopes.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *SubjectRulesReviewStatus) Size() (n int) { - var l int - _ = l - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.EvaluationError) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *UserRestriction) Size() (n int) { - var l int - _ = l - if len(m.Users) > 0 { - for _, s := range m.Users { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Selectors) > 0 { - for _, e := range m.Selectors { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Action) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Action{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Verb:` + fmt.Sprintf("%v", this.Verb) + `,`, - `Group:` + fmt.Sprintf("%v", this.Group) + `,`, - `Version:` + fmt.Sprintf("%v", this.Version) + `,`, - `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, - `ResourceName:` + fmt.Sprintf("%v", this.ResourceName) + `,`, - `Content:` + strings.Replace(strings.Replace(this.Content.String(), "RawExtension", "k8s_io_apimachinery_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `IsNonResourceURL:` + fmt.Sprintf("%v", this.IsNonResourceURL) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterPolicy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterPolicy{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `LastModified:` + strings.Replace(strings.Replace(this.LastModified.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `Roles:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Roles), "NamedClusterRole", "NamedClusterRole", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterPolicyBinding) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterPolicyBinding{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `LastModified:` + strings.Replace(strings.Replace(this.LastModified.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `PolicyRef:` + strings.Replace(strings.Replace(this.PolicyRef.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `RoleBindings:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RoleBindings), "NamedClusterRoleBinding", "NamedClusterRoleBinding", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterPolicyBindingList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterPolicyBindingList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ClusterPolicyBinding", "ClusterPolicyBinding", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterPolicyList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterPolicyList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ClusterPolicy", "ClusterPolicy", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRole) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterRole{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRoleBinding) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterRoleBinding{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `UserNames:` + strings.Replace(fmt.Sprintf("%v", this.UserNames), "OptionalNames", "OptionalNames", 1) + `,`, - `GroupNames:` + strings.Replace(fmt.Sprintf("%v", this.GroupNames), "OptionalNames", "OptionalNames", 1) + `,`, - `Subjects:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Subjects), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `RoleRef:` + strings.Replace(strings.Replace(this.RoleRef.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRoleBindingList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterRoleBindingList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ClusterRoleBinding", "ClusterRoleBinding", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRoleList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterRoleList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ClusterRole", "ClusterRole", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *GroupRestriction) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GroupRestriction{`, - `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, - `Selectors:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Selectors), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *IsPersonalSubjectAccessReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IsPersonalSubjectAccessReview{`, - `}`, - }, "") - return s -} -func (this *LocalResourceAccessReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&LocalResourceAccessReview{`, - `Action:` + strings.Replace(strings.Replace(this.Action.String(), "Action", "Action", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *LocalSubjectAccessReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&LocalSubjectAccessReview{`, - `Action:` + strings.Replace(strings.Replace(this.Action.String(), "Action", "Action", 1), `&`, ``, 1) + `,`, - `User:` + fmt.Sprintf("%v", this.User) + `,`, - `GroupsSlice:` + fmt.Sprintf("%v", this.GroupsSlice) + `,`, - `Scopes:` + strings.Replace(fmt.Sprintf("%v", this.Scopes), "OptionalScopes", "OptionalScopes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *NamedClusterRole) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NamedClusterRole{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Role:` + strings.Replace(strings.Replace(this.Role.String(), "ClusterRole", "ClusterRole", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *NamedClusterRoleBinding) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NamedClusterRoleBinding{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `RoleBinding:` + strings.Replace(strings.Replace(this.RoleBinding.String(), "ClusterRoleBinding", "ClusterRoleBinding", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *NamedRole) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NamedRole{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Role:` + strings.Replace(strings.Replace(this.Role.String(), "Role", "Role", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *NamedRoleBinding) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NamedRoleBinding{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `RoleBinding:` + strings.Replace(strings.Replace(this.RoleBinding.String(), "RoleBinding", "RoleBinding", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *Policy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Policy{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `LastModified:` + strings.Replace(strings.Replace(this.LastModified.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `Roles:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Roles), "NamedRole", "NamedRole", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PolicyBinding) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PolicyBinding{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `LastModified:` + strings.Replace(strings.Replace(this.LastModified.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `PolicyRef:` + strings.Replace(strings.Replace(this.PolicyRef.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `RoleBindings:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RoleBindings), "NamedRoleBinding", "NamedRoleBinding", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PolicyBindingList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PolicyBindingList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PolicyBinding", "PolicyBinding", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PolicyList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PolicyList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Policy", "Policy", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PolicyRule) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PolicyRule{`, - `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, - `AttributeRestrictions:` + strings.Replace(strings.Replace(this.AttributeRestrictions.String(), "RawExtension", "k8s_io_apimachinery_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`, - `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, - `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, - `ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`, - `NonResourceURLsSlice:` + fmt.Sprintf("%v", this.NonResourceURLsSlice) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceAccessReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceAccessReview{`, - `Action:` + strings.Replace(strings.Replace(this.Action.String(), "Action", "Action", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceAccessReviewResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceAccessReviewResponse{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `UsersSlice:` + fmt.Sprintf("%v", this.UsersSlice) + `,`, - `GroupsSlice:` + fmt.Sprintf("%v", this.GroupsSlice) + `,`, - `EvaluationError:` + fmt.Sprintf("%v", this.EvaluationError) + `,`, - `}`, - }, "") - return s -} -func (this *Role) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Role{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RoleBinding) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RoleBinding{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `UserNames:` + strings.Replace(fmt.Sprintf("%v", this.UserNames), "OptionalNames", "OptionalNames", 1) + `,`, - `GroupNames:` + strings.Replace(fmt.Sprintf("%v", this.GroupNames), "OptionalNames", "OptionalNames", 1) + `,`, - `Subjects:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Subjects), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `RoleRef:` + strings.Replace(strings.Replace(this.RoleRef.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RoleBindingList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RoleBindingList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "RoleBinding", "RoleBinding", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RoleBindingRestriction) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RoleBindingRestriction{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "RoleBindingRestrictionSpec", "RoleBindingRestrictionSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RoleBindingRestrictionList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RoleBindingRestrictionList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "RoleBindingRestriction", "RoleBindingRestriction", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RoleBindingRestrictionSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RoleBindingRestrictionSpec{`, - `UserRestriction:` + strings.Replace(fmt.Sprintf("%v", this.UserRestriction), "UserRestriction", "UserRestriction", 1) + `,`, - `GroupRestriction:` + strings.Replace(fmt.Sprintf("%v", this.GroupRestriction), "GroupRestriction", "GroupRestriction", 1) + `,`, - `ServiceAccountRestriction:` + strings.Replace(fmt.Sprintf("%v", this.ServiceAccountRestriction), "ServiceAccountRestriction", "ServiceAccountRestriction", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RoleList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RoleList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Role", "Role", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *SelfSubjectRulesReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SelfSubjectRulesReview{`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SelfSubjectRulesReviewSpec", "SelfSubjectRulesReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectRulesReviewStatus", "SubjectRulesReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *SelfSubjectRulesReviewSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SelfSubjectRulesReviewSpec{`, - `Scopes:` + strings.Replace(fmt.Sprintf("%v", this.Scopes), "OptionalScopes", "OptionalScopes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceAccountReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServiceAccountReference{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceAccountRestriction) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServiceAccountRestriction{`, - `ServiceAccounts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ServiceAccounts), "ServiceAccountReference", "ServiceAccountReference", 1), `&`, ``, 1) + `,`, - `Namespaces:` + fmt.Sprintf("%v", this.Namespaces) + `,`, - `}`, - }, "") - return s -} -func (this *SubjectAccessReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SubjectAccessReview{`, - `Action:` + strings.Replace(strings.Replace(this.Action.String(), "Action", "Action", 1), `&`, ``, 1) + `,`, - `User:` + fmt.Sprintf("%v", this.User) + `,`, - `GroupsSlice:` + fmt.Sprintf("%v", this.GroupsSlice) + `,`, - `Scopes:` + strings.Replace(fmt.Sprintf("%v", this.Scopes), "OptionalScopes", "OptionalScopes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SubjectAccessReviewResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SubjectAccessReviewResponse{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Allowed:` + fmt.Sprintf("%v", this.Allowed) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `EvaluationError:` + fmt.Sprintf("%v", this.EvaluationError) + `,`, - `}`, - }, "") - return s -} -func (this *SubjectRulesReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SubjectRulesReview{`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SubjectRulesReviewSpec", "SubjectRulesReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectRulesReviewStatus", "SubjectRulesReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *SubjectRulesReviewSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SubjectRulesReviewSpec{`, - `User:` + fmt.Sprintf("%v", this.User) + `,`, - `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, - `Scopes:` + strings.Replace(fmt.Sprintf("%v", this.Scopes), "OptionalScopes", "OptionalScopes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SubjectRulesReviewStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SubjectRulesReviewStatus{`, - `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + `,`, - `EvaluationError:` + fmt.Sprintf("%v", this.EvaluationError) + `,`, - `}`, - }, "") - return s -} -func (this *UserRestriction) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UserRestriction{`, - `Users:` + fmt.Sprintf("%v", this.Users) + `,`, - `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, - `Selectors:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Selectors), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Action) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Action: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Action: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verb", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verb = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resource = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Content.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsNonResourceURL", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.IsNonResourceURL = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterPolicy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastModified", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastModified.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Roles = append(m.Roles, NamedClusterRole{}) - if err := m.Roles[len(m.Roles)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterPolicyBinding) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterPolicyBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterPolicyBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastModified", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastModified.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PolicyRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.PolicyRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleBindings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RoleBindings = append(m.RoleBindings, NamedClusterRoleBinding{}) - if err := m.RoleBindings[len(m.RoleBindings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterPolicyBindingList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterPolicyBindingList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterPolicyBindingList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ClusterPolicyBinding{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterPolicyList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterPolicyList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterPolicyList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ClusterPolicy{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRole) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRole: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRole: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, PolicyRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRoleBinding) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRoleBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserNames", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.UserNames == nil { - m.UserNames = OptionalNames{} - } - if err := m.UserNames.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupNames", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GroupNames == nil { - m.GroupNames = OptionalNames{} - } - if err := m.GroupNames.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subjects = append(m.Subjects, k8s_io_kubernetes_pkg_api_v1.ObjectReference{}) - if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RoleRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRoleBindingList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRoleBindingList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRoleBindingList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ClusterRoleBinding{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRoleList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRoleList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRoleList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ClusterRole{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupRestriction) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupRestriction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupRestriction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selectors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Selectors = append(m.Selectors, k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}) - if err := m.Selectors[len(m.Selectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IsPersonalSubjectAccessReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IsPersonalSubjectAccessReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IsPersonalSubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LocalResourceAccessReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LocalResourceAccessReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LocalResourceAccessReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Action.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LocalSubjectAccessReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LocalSubjectAccessReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LocalSubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Action.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupsSlice", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupsSlice = append(m.GroupsSlice, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Scopes == nil { - m.Scopes = OptionalScopes{} - } - if err := m.Scopes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NamedClusterRole) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NamedClusterRole: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NamedClusterRole: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Role.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NamedClusterRoleBinding) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NamedClusterRoleBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NamedClusterRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleBinding", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RoleBinding.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NamedRole) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NamedRole: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NamedRole: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Role.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NamedRoleBinding) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NamedRoleBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NamedRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleBinding", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RoleBinding.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OptionalNames) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OptionalNames: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OptionalNames: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - *m = append(*m, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OptionalScopes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OptionalScopes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OptionalScopes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - *m = append(*m, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Policy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Policy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Policy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastModified", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastModified.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Roles = append(m.Roles, NamedRole{}) - if err := m.Roles[len(m.Roles)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PolicyBinding) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PolicyBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PolicyBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastModified", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastModified.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PolicyRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.PolicyRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleBindings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RoleBindings = append(m.RoleBindings, NamedRoleBinding{}) - if err := m.RoleBindings[len(m.RoleBindings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PolicyBindingList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PolicyBindingList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PolicyBindingList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, PolicyBinding{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PolicyList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PolicyList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PolicyList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Policy{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PolicyRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PolicyRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PolicyRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AttributeRestrictions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.AttributeRestrictions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceNames", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceNames = append(m.ResourceNames, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLsSlice", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NonResourceURLsSlice = append(m.NonResourceURLsSlice, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceAccessReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceAccessReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceAccessReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Action.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceAccessReviewResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceAccessReviewResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceAccessReviewResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UsersSlice", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UsersSlice = append(m.UsersSlice, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupsSlice", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupsSlice = append(m.GroupsSlice, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EvaluationError", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EvaluationError = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Role) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Role: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Role: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, PolicyRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleBinding) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserNames", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.UserNames == nil { - m.UserNames = OptionalNames{} - } - if err := m.UserNames.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupNames", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GroupNames == nil { - m.GroupNames = OptionalNames{} - } - if err := m.GroupNames.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subjects = append(m.Subjects, k8s_io_kubernetes_pkg_api_v1.ObjectReference{}) - if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RoleRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleBindingList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleBindingList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleBindingList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, RoleBinding{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleBindingRestriction) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleBindingRestriction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleBindingRestriction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleBindingRestrictionList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleBindingRestrictionList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleBindingRestrictionList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, RoleBindingRestriction{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleBindingRestrictionSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleBindingRestrictionSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleBindingRestrictionSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserRestriction", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.UserRestriction == nil { - m.UserRestriction = &UserRestriction{} - } - if err := m.UserRestriction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupRestriction", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GroupRestriction == nil { - m.GroupRestriction = &GroupRestriction{} - } - if err := m.GroupRestriction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountRestriction", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ServiceAccountRestriction == nil { - m.ServiceAccountRestriction = &ServiceAccountRestriction{} - } - if err := m.ServiceAccountRestriction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Role{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SelfSubjectRulesReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SelfSubjectRulesReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SelfSubjectRulesReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SelfSubjectRulesReviewSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SelfSubjectRulesReviewSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SelfSubjectRulesReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Scopes == nil { - m.Scopes = OptionalScopes{} - } - if err := m.Scopes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceAccountReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceAccountReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceAccountReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceAccountRestriction) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceAccountRestriction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceAccountRestriction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccounts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceAccounts = append(m.ServiceAccounts, ServiceAccountReference{}) - if err := m.ServiceAccounts[len(m.ServiceAccounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespaces = append(m.Namespaces, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubjectAccessReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubjectAccessReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Action.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupsSlice", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupsSlice = append(m.GroupsSlice, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Scopes == nil { - m.Scopes = OptionalScopes{} - } - if err := m.Scopes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubjectAccessReviewResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubjectAccessReviewResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubjectAccessReviewResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Allowed", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Allowed = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EvaluationError", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EvaluationError = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubjectRulesReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubjectRulesReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubjectRulesReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubjectRulesReviewSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubjectRulesReviewSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubjectRulesReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Scopes == nil { - m.Scopes = OptionalScopes{} - } - if err := m.Scopes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubjectRulesReviewStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubjectRulesReviewStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubjectRulesReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, PolicyRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EvaluationError", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EvaluationError = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UserRestriction) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UserRestriction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UserRestriction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Users = append(m.Users, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selectors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Selectors = append(m.Selectors, k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}) - if err := m.Selectors[len(m.Selectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/openshift/origin/pkg/authorization/apis/authorization/v1/generated.proto", fileDescriptorGenerated) -} - -var fileDescriptorGenerated = []byte{ - // 2071 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0x4f, 0x6c, 0x1b, 0x59, - 0x19, 0xcf, 0xb3, 0x1d, 0xd7, 0xfe, 0x9c, 0xd4, 0xe9, 0x6b, 0xb6, 0x9d, 0x06, 0x6a, 0x47, 0x23, - 0x04, 0x01, 0x76, 0x6d, 0x9a, 0x45, 0xb0, 0x2c, 0x87, 0x55, 0x5c, 0xaa, 0x2a, 0xda, 0x6e, 0x1b, - 0x3d, 0x6f, 0xcb, 0x9f, 0x2e, 0x85, 0xf1, 0xe4, 0xc5, 0x19, 0x32, 0x99, 0xb1, 0xe6, 0xcd, 0x38, - 0xec, 0x8a, 0x3f, 0x2d, 0x12, 0x20, 0x38, 0x00, 0x12, 0x62, 0x41, 0x70, 0x80, 0x03, 0x07, 0x0e, - 0xdc, 0x90, 0xb8, 0x20, 0x71, 0x02, 0xa9, 0x2b, 0x71, 0x58, 0x69, 0x0f, 0xdb, 0xc3, 0xca, 0x50, - 0x03, 0x7b, 0x40, 0xe2, 0xc6, 0x81, 0x0b, 0x08, 0xbd, 0x37, 0x6f, 0x3c, 0x33, 0xf6, 0x0c, 0x75, - 0xca, 0xd8, 0xac, 0xaa, 0x9e, 0xe2, 0x79, 0xef, 0x7d, 0xff, 0xbf, 0xf7, 0x9b, 0xef, 0xfb, 0x26, - 0xd0, 0xee, 0x1a, 0xee, 0xbe, 0xd7, 0x69, 0xe8, 0xf6, 0x61, 0xd3, 0xee, 0x51, 0x8b, 0xed, 0x1b, - 0x7b, 0x6e, 0xd3, 0x76, 0x8c, 0xae, 0x61, 0x35, 0x7b, 0x07, 0xdd, 0xa6, 0xe6, 0xb9, 0xfb, 0xb6, - 0x63, 0xbc, 0xa2, 0xb9, 0x86, 0x6d, 0x35, 0xb5, 0x9e, 0xc1, 0xc6, 0x96, 0xfa, 0x17, 0x9a, 0x5d, - 0x6a, 0x51, 0x47, 0x73, 0xe9, 0x6e, 0xa3, 0xe7, 0xd8, 0xae, 0x8d, 0x2f, 0x86, 0x4c, 0x1b, 0x23, - 0xa6, 0x0d, 0x9f, 0x69, 0xa3, 0x77, 0xd0, 0x6d, 0xc4, 0x38, 0x34, 0x38, 0xd3, 0xb1, 0xa5, 0xfe, - 0x85, 0xb5, 0xa7, 0x22, 0x9a, 0x75, 0xed, 0xae, 0xdd, 0x14, 0xbc, 0x3b, 0xde, 0x9e, 0x78, 0x12, - 0x0f, 0xe2, 0x97, 0x2f, 0x73, 0xed, 0xc3, 0x07, 0xcf, 0xb0, 0x86, 0x61, 0x73, 0x0d, 0x0f, 0x35, - 0x7d, 0xdf, 0xb0, 0xa8, 0xf3, 0xb2, 0x6f, 0x00, 0x57, 0xf9, 0x90, 0xba, 0x5a, 0x82, 0xa6, 0x6b, - 0xcd, 0x34, 0x2a, 0xc7, 0xb3, 0x5c, 0xe3, 0x90, 0x4e, 0x10, 0x7c, 0xe4, 0x41, 0x04, 0x4c, 0xdf, - 0xa7, 0x87, 0xda, 0x04, 0xdd, 0xd3, 0x69, 0x74, 0x9e, 0x6b, 0x98, 0x4d, 0xc3, 0x72, 0x99, 0xeb, - 0x4c, 0x10, 0x3d, 0x29, 0x89, 0x0e, 0xbc, 0x0e, 0x75, 0x2c, 0xea, 0x52, 0x16, 0x58, 0x94, 0x60, - 0x8b, 0x7a, 0xa7, 0x00, 0xc5, 0x2d, 0x9d, 0xbb, 0x0f, 0x37, 0xa1, 0x6c, 0x69, 0x87, 0x94, 0xf5, - 0x34, 0x9d, 0x2a, 0x68, 0x1d, 0x6d, 0x94, 0x5b, 0xa7, 0xee, 0x0e, 0xea, 0x0b, 0xc3, 0x41, 0xbd, - 0x7c, 0x35, 0xd8, 0x20, 0xe1, 0x19, 0xbc, 0x0e, 0x85, 0x3e, 0x75, 0x3a, 0x4a, 0x4e, 0x9c, 0x5d, - 0x92, 0x67, 0x0b, 0x37, 0xa8, 0xd3, 0x21, 0x62, 0x07, 0x7f, 0x0c, 0x56, 0x1c, 0xca, 0x6c, 0xcf, - 0xd1, 0xe9, 0xd6, 0xce, 0xf6, 0x65, 0xc7, 0xf6, 0x7a, 0x4a, 0x5e, 0x9c, 0x5e, 0x96, 0xa7, 0x17, - 0xc5, 0x22, 0x99, 0x38, 0x86, 0x9f, 0x03, 0x1c, 0x59, 0xbb, 0x41, 0x1d, 0x66, 0xd8, 0x96, 0x52, - 0x10, 0xc4, 0x55, 0x49, 0x7c, 0x42, 0x2e, 0x93, 0x84, 0xa3, 0xf8, 0x49, 0x28, 0x05, 0xab, 0xca, - 0xa2, 0x20, 0x5b, 0x91, 0x64, 0x25, 0x22, 0xd7, 0xc9, 0xe8, 0x04, 0x7e, 0x06, 0x96, 0x82, 0xdf, - 0xdc, 0x56, 0xa5, 0x28, 0x28, 0x56, 0x25, 0xc5, 0x12, 0x89, 0xec, 0x91, 0xd8, 0x49, 0xfc, 0x29, - 0x38, 0xa1, 0xdb, 0x96, 0x4b, 0x2d, 0x57, 0x39, 0xb1, 0x8e, 0x36, 0x2a, 0x9b, 0x4f, 0x35, 0xfc, - 0x08, 0x34, 0xa2, 0x61, 0x13, 0x19, 0x2c, 0xc3, 0xdd, 0x20, 0xda, 0xd1, 0xa5, 0x2f, 0xba, 0xd4, - 0xe2, 0x7a, 0x86, 0xc6, 0x5c, 0xf4, 0xb9, 0x90, 0x80, 0x1d, 0xf7, 0x6f, 0x4f, 0x73, 0xf7, 0x95, - 0x52, 0xdc, 0xbf, 0x3b, 0x9a, 0xbb, 0x4f, 0xc4, 0x0e, 0xfe, 0x04, 0xac, 0x18, 0xec, 0xaa, 0x6d, - 0x05, 0xea, 0x5d, 0x27, 0x57, 0x94, 0xf2, 0x3a, 0xda, 0x28, 0xb5, 0x14, 0x79, 0x7a, 0x65, 0x7b, - 0x6c, 0x9f, 0x4c, 0x50, 0xa8, 0x6f, 0xe4, 0x60, 0xf9, 0xa2, 0xe9, 0x31, 0x97, 0x3a, 0x3b, 0xb6, - 0x69, 0xe8, 0x2f, 0xe3, 0xcf, 0x43, 0x89, 0x27, 0xff, 0xae, 0xe6, 0x6a, 0x22, 0x13, 0x2a, 0x9b, - 0x1f, 0x4a, 0x35, 0x4a, 0x5c, 0x44, 0x7e, 0xba, 0xd1, 0xbf, 0xd0, 0xb8, 0xd6, 0xf9, 0x02, 0xd5, - 0xdd, 0x17, 0xa8, 0xab, 0xb5, 0xb0, 0xd4, 0x00, 0xc2, 0x35, 0x32, 0xe2, 0x8a, 0x77, 0x61, 0xc9, - 0xd4, 0x98, 0xfb, 0x82, 0xbd, 0x6b, 0xec, 0x19, 0x74, 0x57, 0xe4, 0x50, 0x65, 0xf3, 0x03, 0xd3, - 0x49, 0x79, 0xd1, 0x38, 0xa4, 0x61, 0x6c, 0xae, 0x44, 0xf8, 0x90, 0x18, 0x57, 0xfc, 0x0a, 0x2c, - 0x3a, 0xb6, 0x49, 0x99, 0x92, 0x5f, 0xcf, 0x6f, 0x54, 0x36, 0xaf, 0x37, 0x32, 0xc0, 0x98, 0x06, - 0x8f, 0xfa, 0xae, 0xf4, 0x17, 0xb1, 0x4d, 0x1a, 0xe6, 0x32, 0x7f, 0x62, 0xc4, 0x17, 0xa9, 0xbe, - 0x99, 0x87, 0xd5, 0x98, 0x57, 0x5b, 0x86, 0xb5, 0x6b, 0x58, 0xdd, 0x47, 0xc6, 0xb9, 0xb7, 0xa0, - 0xdc, 0x13, 0x86, 0x11, 0xba, 0x27, 0x6e, 0x75, 0x24, 0xf5, 0x43, 0xf0, 0x09, 0x04, 0x84, 0x06, - 0x10, 0xba, 0x47, 0x1d, 0x6a, 0xe9, 0x34, 0x84, 0x97, 0x9d, 0x80, 0x0f, 0x09, 0x59, 0xe2, 0x57, - 0x11, 0x2c, 0x71, 0x57, 0x4a, 0xbf, 0x31, 0xa5, 0x20, 0x82, 0xf8, 0xd2, 0x6c, 0x82, 0xe8, 0x0b, - 0x89, 0xdc, 0xf8, 0x88, 0x64, 0x12, 0xd3, 0x43, 0xfd, 0x27, 0x02, 0x25, 0x29, 0xb2, 0x57, 0x0c, - 0xe6, 0xe2, 0x97, 0x26, 0xa2, 0xdb, 0x98, 0xce, 0xef, 0x9c, 0x5a, 0xc4, 0x76, 0x04, 0x53, 0xc1, - 0x4a, 0x24, 0xb2, 0x5f, 0x81, 0x45, 0xc3, 0xa5, 0x87, 0x4c, 0xc9, 0x09, 0x5f, 0x7c, 0x3a, 0x13, - 0x5f, 0x24, 0xd9, 0x12, 0x26, 0xf5, 0x36, 0x97, 0x47, 0x7c, 0xb1, 0xea, 0xdf, 0x10, 0x9c, 0x8a, - 0x1d, 0x9f, 0x83, 0xcd, 0x47, 0x71, 0x9b, 0xc9, 0x0c, 0x6c, 0x4e, 0x36, 0xf6, 0xaf, 0x08, 0x2a, - 0x91, 0x14, 0x99, 0xc3, 0xc5, 0x75, 0x61, 0xd1, 0xf1, 0x38, 0x5e, 0xf9, 0xa6, 0x5e, 0xcb, 0xc4, - 0x54, 0x79, 0xb9, 0xbc, 0x18, 0x52, 0x79, 0x3e, 0x52, 0xf1, 0x3f, 0xea, 0xaf, 0x0a, 0x80, 0x27, - 0xaf, 0xc2, 0x1c, 0xcc, 0xfd, 0x2a, 0x94, 0x3d, 0x46, 0x1d, 0x51, 0x5c, 0x48, 0x90, 0xca, 0x26, - 0xba, 0xd7, 0x7a, 0xfc, 0x97, 0x66, 0x0a, 0xce, 0xad, 0x65, 0x0e, 0x31, 0xd7, 0x03, 0x41, 0x24, - 0x94, 0x89, 0xbf, 0x86, 0x00, 0xba, 0xbc, 0xdc, 0xf0, 0x55, 0xc8, 0xcf, 0x4c, 0x85, 0x93, 0xdc, - 0x07, 0x97, 0x47, 0x92, 0x48, 0x44, 0x2a, 0xbe, 0x09, 0x25, 0xe6, 0x09, 0xf7, 0x04, 0x10, 0x77, - 0x4c, 0x18, 0x1d, 0x5d, 0x9e, 0xb6, 0x64, 0x43, 0x46, 0x0c, 0x79, 0x75, 0xc2, 0xb1, 0x8b, 0x43, - 0xf4, 0xe2, 0xc3, 0x40, 0xf4, 0xa8, 0x3a, 0x21, 0x3e, 0x17, 0x12, 0xb0, 0x53, 0xff, 0x81, 0xe0, - 0xcc, 0x64, 0xd6, 0xcc, 0x01, 0x0f, 0xbe, 0x14, 0xc7, 0x83, 0x4f, 0x66, 0x89, 0x07, 0xd1, 0x57, - 0x41, 0x32, 0x28, 0xbc, 0x8d, 0xa0, 0x1a, 0x39, 0x3c, 0x07, 0x7b, 0xbd, 0xb8, 0xbd, 0x3b, 0x99, - 0xdb, 0x9b, 0x6c, 0xe8, 0xab, 0x08, 0x56, 0xfc, 0xe2, 0x9c, 0x32, 0xd7, 0x31, 0xfc, 0x1e, 0x41, - 0x85, 0xa2, 0xc8, 0x5c, 0xa6, 0xa0, 0xf5, 0xfc, 0x46, 0xb9, 0x05, 0xc3, 0x41, 0xbd, 0x28, 0x4e, - 0x31, 0x22, 0x77, 0xf0, 0x2d, 0x28, 0x9a, 0x5a, 0x87, 0x9a, 0x81, 0xc2, 0x4f, 0x4f, 0xe9, 0x0b, - 0x4e, 0xd3, 0xa6, 0x26, 0xd5, 0x5d, 0xdb, 0x09, 0x4b, 0x83, 0x60, 0x85, 0x11, 0xc9, 0x55, 0xad, - 0xc3, 0xf9, 0x6d, 0xb6, 0x43, 0x1d, 0xc6, 0xaf, 0x97, 0x4c, 0xf9, 0x2d, 0x5d, 0xa7, 0x8c, 0x11, - 0xda, 0x37, 0xe8, 0x91, 0xfa, 0x0d, 0x04, 0xe7, 0xae, 0xd8, 0xba, 0x66, 0x06, 0x45, 0x6e, 0x74, - 0x17, 0x1b, 0x41, 0xc3, 0x23, 0x43, 0xf5, 0x7c, 0x26, 0xfe, 0xf4, 0x59, 0xb6, 0x0a, 0x5c, 0x6d, - 0x52, 0xd4, 0xc4, 0x93, 0xfa, 0x5a, 0x0e, 0x14, 0xa1, 0x48, 0x82, 0x96, 0x73, 0xd4, 0x83, 0x37, - 0x12, 0x1c, 0xf3, 0xc6, 0x1b, 0x35, 0x0e, 0x89, 0x44, 0xec, 0xe0, 0xf7, 0x8d, 0xe2, 0x9a, 0x17, - 0x71, 0xad, 0x0e, 0x07, 0xf5, 0x8a, 0x1f, 0xd7, 0xb6, 0x69, 0xe8, 0x74, 0x14, 0xdc, 0x23, 0x28, - 0x32, 0xdd, 0xee, 0x51, 0x26, 0x5a, 0xb1, 0xca, 0x66, 0x3b, 0x53, 0xb0, 0x6c, 0x0b, 0xd6, 0x7e, - 0x56, 0xf9, 0xbf, 0x89, 0x14, 0xa7, 0xfe, 0x02, 0xc1, 0xca, 0x78, 0xd1, 0xc6, 0x0d, 0xe3, 0xed, - 0xa8, 0xec, 0x56, 0x47, 0x86, 0x89, 0x2e, 0x4d, 0xec, 0x60, 0x07, 0x0a, 0x1c, 0xb0, 0xe4, 0xdb, - 0x25, 0xfb, 0xbb, 0x33, 0x92, 0x29, 0xf0, 0x51, 0xc8, 0x52, 0xff, 0x80, 0xe0, 0x6c, 0x4a, 0x7d, - 0x39, 0x85, 0xc6, 0xdf, 0x41, 0x50, 0x89, 0x94, 0x9b, 0x52, 0xf3, 0x99, 0xa1, 0xdc, 0x69, 0xa9, - 0x42, 0x25, 0xb2, 0x48, 0xa2, 0x0a, 0xa8, 0x3f, 0x46, 0x20, 0xfa, 0xff, 0xdd, 0x29, 0x5d, 0x7e, - 0x10, 0x73, 0xf9, 0x76, 0x26, 0x8a, 0xa7, 0xfa, 0xfa, 0xb7, 0x41, 0x5a, 0x1c, 0xcf, 0xc9, 0xdf, - 0x4c, 0x74, 0xf2, 0x4e, 0x76, 0xba, 0x4e, 0xed, 0xdd, 0x67, 0x61, 0x39, 0x56, 0x2a, 0xe0, 0x7a, - 0x00, 0xf7, 0x3e, 0xc2, 0x96, 0xc7, 0x81, 0xf9, 0xd9, 0xd2, 0x8f, 0x7e, 0x56, 0x5f, 0xb8, 0xfd, - 0xd6, 0xfa, 0x82, 0xfa, 0x71, 0x38, 0x19, 0xbf, 0x39, 0xc7, 0x21, 0xfe, 0x7d, 0x0e, 0x8a, 0x8f, - 0x58, 0xbb, 0xcf, 0xe2, 0xed, 0xfe, 0xd5, 0xec, 0x3a, 0xc5, 0xff, 0xd2, 0xe7, 0xbf, 0x96, 0x87, - 0xe5, 0xc7, 0x0d, 0xfe, 0xc3, 0x34, 0xf8, 0xdf, 0x4d, 0x6e, 0xf0, 0xaf, 0x67, 0x1c, 0xb6, 0x63, - 0x74, 0xf6, 0xbc, 0xbd, 0x9d, 0x77, 0x4b, 0x3f, 0x93, 0xf6, 0x76, 0x9a, 0x5e, 0xfe, 0x2d, 0x04, - 0x30, 0xb7, 0x26, 0xbe, 0x17, 0xb7, 0xf2, 0xf9, 0x2c, 0xad, 0x4c, 0x36, 0xef, 0x5b, 0xf9, 0xc0, - 0x3c, 0xde, 0xec, 0x72, 0x64, 0xec, 0x53, 0xa7, 0x13, 0x43, 0xc6, 0x1b, 0x7c, 0x81, 0xf8, 0xeb, - 0xbc, 0x17, 0x7c, 0x42, 0x73, 0x5d, 0xc7, 0xe8, 0x78, 0x2e, 0x8d, 0xd4, 0xbc, 0x41, 0x67, 0x7a, - 0xcc, 0xb1, 0xee, 0x79, 0xa9, 0xd4, 0x13, 0x5b, 0x49, 0x3c, 0x49, 0xb2, 0x28, 0xfc, 0x41, 0x28, - 0x6b, 0x3d, 0xe3, 0x72, 0xb4, 0x14, 0x13, 0xdd, 0x6b, 0x30, 0x16, 0x67, 0x24, 0xdc, 0xe7, 0x87, - 0x83, 0x49, 0xb4, 0x7f, 0x77, 0xe4, 0xe1, 0xa0, 0xec, 0x65, 0x24, 0xdc, 0xc7, 0x1f, 0x85, 0xe5, - 0xe8, 0xd8, 0x9a, 0x29, 0x8b, 0x82, 0xe0, 0xd4, 0x70, 0x50, 0x5f, 0x8e, 0x4e, 0xb7, 0x19, 0x89, - 0x9f, 0xc3, 0x2d, 0xa8, 0x5a, 0xb1, 0x79, 0x31, 0x53, 0x8a, 0x82, 0x54, 0x19, 0x0e, 0xea, 0xab, - 0xf1, 0x51, 0xb2, 0x2c, 0x16, 0xc7, 0x09, 0xd4, 0x3b, 0x08, 0x56, 0xff, 0xdf, 0xc5, 0xf8, 0x1f, - 0x11, 0xbc, 0x3b, 0x49, 0x07, 0x42, 0x59, 0xcf, 0xb6, 0x18, 0x3d, 0xfe, 0xf7, 0x8f, 0xf7, 0xc0, - 0x22, 0x2f, 0x9e, 0xfd, 0x9c, 0x2e, 0xfb, 0x3d, 0x3e, 0xaf, 0xa9, 0xa5, 0x17, 0xfc, 0xcd, 0xe9, - 0x4b, 0xeb, 0xe7, 0xe0, 0x24, 0xed, 0x6b, 0xa6, 0xc7, 0xb5, 0xbd, 0xe4, 0x38, 0xb6, 0x23, 0xbf, - 0x76, 0x9c, 0x95, 0x4a, 0x54, 0x2f, 0xf1, 0x5d, 0x6d, 0xb4, 0x4d, 0xc6, 0x8e, 0xab, 0x03, 0x04, - 0x85, 0x47, 0x7a, 0x50, 0xf5, 0xcb, 0x02, 0x54, 0x1e, 0x4f, 0xa8, 0x1e, 0x4f, 0xa8, 0xa6, 0x9c, - 0x50, 0xbd, 0x8d, 0xa0, 0x3a, 0xdf, 0xd1, 0xd4, 0x4c, 0x46, 0x35, 0x0f, 0x9e, 0x49, 0xfd, 0x1b, - 0xc1, 0x99, 0x68, 0x83, 0x11, 0x19, 0xd8, 0xcc, 0xfe, 0x8a, 0xdc, 0x41, 0x50, 0x60, 0x3d, 0xaa, - 0xcb, 0xeb, 0xf1, 0xb9, 0xac, 0x6d, 0x8e, 0x58, 0xd3, 0xee, 0x51, 0x3d, 0x6c, 0xe7, 0xf8, 0x13, - 0x11, 0xa2, 0xd5, 0x7f, 0x21, 0x58, 0x4b, 0x26, 0x99, 0x43, 0xd0, 0x6f, 0xa3, 0x78, 0xd4, 0x6f, - 0xce, 0xd0, 0x03, 0x29, 0x09, 0xf0, 0xed, 0x42, 0x9a, 0xfd, 0xdc, 0x49, 0xf8, 0xfb, 0x08, 0xaa, - 0x1c, 0x52, 0x9c, 0x70, 0x5d, 0xfa, 0xe1, 0xc5, 0x4c, 0x74, 0x15, 0x83, 0xa4, 0x88, 0x92, 0xa7, - 0xf9, 0xdb, 0x6a, 0x6c, 0x91, 0x8c, 0x6b, 0x80, 0x7f, 0x88, 0x60, 0x45, 0x80, 0x4c, 0x54, 0x2d, - 0x3f, 0x89, 0xb2, 0x69, 0x01, 0xc6, 0xa7, 0x97, 0xad, 0xd5, 0xe1, 0xa0, 0x3e, 0x31, 0xd3, 0x24, - 0x13, 0x4a, 0xe0, 0xdf, 0x20, 0x38, 0xc7, 0xa8, 0xd3, 0x37, 0x74, 0xaa, 0xe9, 0xba, 0xed, 0x59, - 0x6e, 0x54, 0x45, 0x1f, 0x83, 0x6f, 0x65, 0xa2, 0x62, 0xdb, 0x97, 0xb2, 0xe5, 0x4b, 0x89, 0xea, - 0x7a, 0x7e, 0x38, 0xa8, 0x9f, 0x4b, 0xdd, 0x26, 0xe9, 0xfa, 0xa9, 0xf7, 0x10, 0x94, 0xe6, 0x34, - 0x9a, 0xb6, 0xe2, 0x99, 0x9f, 0xe1, 0xac, 0x27, 0x39, 0xcf, 0x7f, 0x9e, 0x83, 0x33, 0x6d, 0x6a, - 0xee, 0xc9, 0xd7, 0x88, 0x5f, 0x1c, 0xf8, 0x95, 0xe4, 0x08, 0x86, 0x50, 0x86, 0x30, 0x94, 0x2c, - 0x2b, 0x0d, 0x86, 0xf0, 0xd7, 0x11, 0x14, 0x99, 0xab, 0xb9, 0x5e, 0x50, 0x2b, 0x7c, 0x36, 0x1b, - 0x2d, 0x26, 0x35, 0x10, 0x42, 0x5a, 0x27, 0xa5, 0x0e, 0x45, 0xff, 0x99, 0x48, 0xe1, 0xea, 0x0f, - 0x10, 0xac, 0xa5, 0xab, 0x1e, 0x99, 0xe1, 0xa2, 0xf9, 0xce, 0x70, 0x4d, 0x38, 0x3b, 0x9e, 0xd1, - 0xf2, 0x2d, 0x3e, 0xc5, 0xc8, 0x2e, 0x56, 0x9e, 0xe7, 0x1e, 0x5c, 0x9e, 0xab, 0x7f, 0x47, 0x90, - 0x7e, 0x81, 0xf0, 0x4f, 0x11, 0x54, 0xe3, 0x77, 0xc8, 0x6f, 0x0d, 0xb3, 0xfa, 0x07, 0x83, 0x14, - 0x43, 0xc3, 0x6a, 0x3e, 0x7e, 0x80, 0x91, 0x71, 0x6d, 0x70, 0x03, 0x60, 0x64, 0x4c, 0xac, 0xc7, - 0x18, 0x59, 0xcb, 0x48, 0xe4, 0x84, 0xfa, 0xbb, 0x1c, 0x9c, 0x7e, 0xfc, 0xa1, 0xe1, 0x7f, 0x4e, - 0xd2, 0xbf, 0x20, 0x78, 0x57, 0x82, 0x1b, 0x1f, 0xbe, 0x4d, 0x7c, 0x3f, 0x9c, 0xd0, 0x4c, 0xd3, - 0x3e, 0x92, 0x73, 0xba, 0x52, 0x58, 0xb1, 0x6e, 0xf9, 0xcb, 0x24, 0xd8, 0xc7, 0xef, 0x85, 0xa2, - 0x43, 0x35, 0x26, 0x5f, 0x32, 0xe5, 0xf0, 0x82, 0x13, 0xb1, 0x4a, 0xe4, 0x2e, 0xde, 0x82, 0x2a, - 0x8d, 0x37, 0x83, 0x0f, 0xea, 0x15, 0xc7, 0xcf, 0xab, 0x3f, 0xc9, 0x01, 0x4e, 0x80, 0xd1, 0x2f, - 0xc7, 0x50, 0xf4, 0xe6, 0xac, 0xf0, 0xeb, 0x9d, 0x8e, 0xa0, 0x6f, 0x22, 0x38, 0x93, 0x82, 0x9e, - 0x41, 0x8e, 0xa3, 0xd4, 0x1c, 0x0f, 0x3f, 0x92, 0xe6, 0x52, 0x3f, 0x92, 0x86, 0xe9, 0x9d, 0x9f, - 0x6f, 0x7a, 0xbf, 0x81, 0x40, 0x49, 0x73, 0x47, 0xd8, 0xd6, 0xa3, 0x39, 0xb6, 0xf5, 0x49, 0xd9, - 0x9c, 0x3b, 0x66, 0x36, 0xff, 0x1a, 0xc1, 0x78, 0xc1, 0x89, 0xeb, 0xc1, 0x78, 0x26, 0x32, 0xf1, - 0x13, 0xe3, 0x99, 0x60, 0x32, 0x33, 0x4d, 0x9c, 0xc2, 0x8f, 0xd9, 0xf9, 0x59, 0x7c, 0xcc, 0x6e, - 0x6d, 0xdc, 0xbd, 0x5f, 0x5b, 0x78, 0xfd, 0x7e, 0x6d, 0xe1, 0xde, 0xfd, 0xda, 0xc2, 0xed, 0x61, - 0x0d, 0xdd, 0x1d, 0xd6, 0xd0, 0xeb, 0xc3, 0x1a, 0xba, 0x37, 0xac, 0xa1, 0x3f, 0x0d, 0x6b, 0xe8, - 0x7b, 0x7f, 0xae, 0x2d, 0x7c, 0x26, 0xd7, 0xbf, 0xf0, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe8, - 0xd9, 0xb1, 0xa0, 0x75, 0x2d, 0x00, 0x00, -} diff --git a/pkg/authorization/apis/authorization/v1/generated.proto b/pkg/authorization/apis/authorization/v1/generated.proto index 47536f2bb315..8a860b331fac 100644 --- a/pkg/authorization/apis/authorization/v1/generated.proto +++ b/pkg/authorization/apis/authorization/v1/generated.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.authorization.apis.authorization.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,94 +13,103 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // Action describes a request to the API server message Action { // Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces - optional string namespace = 1; + optional string namespace = 1 [(gogoproto.customname) = "Namespace", (gogoproto.nullable) = false]; // Verb is one of: get, list, watch, create, update, delete - optional string verb = 2; + optional string verb = 2 [(gogoproto.customname) = "Verb", (gogoproto.nullable) = false]; // Group is the API group of the resource // Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined - optional string resourceAPIGroup = 3; + optional string resourceAPIGroup = 3 [(gogoproto.customname) = "Group", (gogoproto.nullable) = false]; // Version is the API version of the resource // Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined - optional string resourceAPIVersion = 4; + optional string resourceAPIVersion = 4 [(gogoproto.customname) = "Version", (gogoproto.nullable) = false]; // Resource is one of the existing resource types - optional string resource = 5; + optional string resource = 5 [(gogoproto.customname) = "Resource", (gogoproto.nullable) = false]; // ResourceName is the name of the resource being requested for a "get" or deleted for a "delete" - optional string resourceName = 6; + optional string resourceName = 6 [(gogoproto.customname) = "ResourceName", (gogoproto.nullable) = false]; // Path is the path of a non resource URL - optional string path = 8; + optional string path = 8 [(gogoproto.customname) = "Path", (gogoproto.nullable) = false]; // IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy) - optional bool isNonResourceURL = 9; + optional bool isNonResourceURL = 9 [(gogoproto.customname) = "IsNonResourceURL", (gogoproto.nullable) = false]; // Content is the actual content of the request for create and update - optional k8s.io.apimachinery.pkg.runtime.RawExtension content = 7; + optional k8s.io.apimachinery.pkg.runtime.RawExtension content = 7 [(gogoproto.customname) = "Content", (gogoproto.nullable) = false]; } // ClusterPolicy is a object that holds all the ClusterRoles for a particular namespace. There is at most // one ClusterPolicy document per namespace. message ClusterPolicy { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // LastModified is the last time that any part of the ClusterPolicy was created, updated, or deleted - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2 [(gogoproto.customname) = "LastModified", (gogoproto.nullable) = false]; // Roles holds all the ClusterRoles held by this ClusterPolicy, mapped by ClusterRole.Name - repeated NamedClusterRole roles = 3; + repeated NamedClusterRole roles = 3 [(gogoproto.customname) = "Roles", (gogoproto.nullable) = false]; } // ClusterPolicyBinding is a object that holds all the ClusterRoleBindings for a particular namespace. There is // one ClusterPolicyBinding document per referenced ClusterPolicy namespace message ClusterPolicyBinding { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // LastModified is the last time that any part of the ClusterPolicyBinding was created, updated, or deleted - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2 [(gogoproto.customname) = "LastModified", (gogoproto.nullable) = false]; // PolicyRef is a reference to the ClusterPolicy that contains all the ClusterRoles that this ClusterPolicyBinding's RoleBindings may reference - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference policyRef = 3; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference policyRef = 3 [(gogoproto.customname) = "PolicyRef", (gogoproto.nullable) = false]; // RoleBindings holds all the ClusterRoleBindings held by this ClusterPolicyBinding, mapped by ClusterRoleBinding.Name - repeated NamedClusterRoleBinding roleBindings = 4; + repeated NamedClusterRoleBinding roleBindings = 4 [(gogoproto.customname) = "RoleBindings", (gogoproto.nullable) = false]; } // ClusterPolicyBindingList is a collection of ClusterPolicyBindings message ClusterPolicyBindingList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of ClusterPolicyBindings - repeated ClusterPolicyBinding items = 2; + repeated ClusterPolicyBinding items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ClusterPolicyList is a collection of ClusterPolicies message ClusterPolicyList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of ClusterPolicies - repeated ClusterPolicy items = 2; + repeated ClusterPolicy items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ClusterRole is a logical grouping of PolicyRules that can be referenced as a unit by ClusterRoleBindings. message ClusterRole { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Rules holds all the PolicyRules for this ClusterRole - repeated PolicyRule rules = 2; + repeated PolicyRule rules = 2 [(gogoproto.customname) = "Rules", (gogoproto.nullable) = false]; } // ClusterRoleBinding references a ClusterRole, but not contain it. It can reference any ClusterRole in the same namespace or in the global namespace. @@ -107,49 +117,49 @@ message ClusterRole { // ClusterRoleBindings in a given namespace only have effect in that namespace (excepting the master namespace which has power in all namespaces). message ClusterRoleBinding { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // UserNames holds all the usernames directly bound to the role. // This field should only be specified when supporting legacy clients and servers. // See Subjects for further details. // +k8s:conversion-gen=false - optional OptionalNames userNames = 2; + optional OptionalNames userNames = 2 [(gogoproto.customname) = "UserNames"]; // GroupNames holds all the groups directly bound to the role. // This field should only be specified when supporting legacy clients and servers. // See Subjects for further details. // +k8s:conversion-gen=false - optional OptionalNames groupNames = 3; + optional OptionalNames groupNames = 3 [(gogoproto.customname) = "GroupNames"]; // Subjects hold object references to authorize with this rule. // This field is ignored if UserNames or GroupNames are specified to support legacy clients and servers. // Thus newer clients that do not need to support backwards compatibility should send // only fully qualified Subjects and should omit the UserNames and GroupNames fields. // Clients that need to support backwards compatibility can use this field to build the UserNames and GroupNames. - repeated k8s.io.kubernetes.pkg.api.v1.ObjectReference subjects = 4; + repeated k8s.io.kubernetes.pkg.api.v1.ObjectReference subjects = 4 [(gogoproto.customname) = "Subjects", (gogoproto.nullable) = false]; // RoleRef can only reference the current namespace and the global namespace. // If the ClusterRoleRef cannot be resolved, the Authorizer must return an error. // Since Policy is a singleton, this is sufficient knowledge to locate a role. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference roleRef = 5; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference roleRef = 5 [(gogoproto.customname) = "RoleRef", (gogoproto.nullable) = false]; } // ClusterRoleBindingList is a collection of ClusterRoleBindings message ClusterRoleBindingList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of ClusterRoleBindings - repeated ClusterRoleBinding items = 2; + repeated ClusterRoleBinding items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ClusterRoleList is a collection of ClusterRoles message ClusterRoleList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of ClusterRoles - repeated ClusterRole items = 2; + repeated ClusterRole items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // GroupRestriction matches a group either by a string match on the group name @@ -158,10 +168,10 @@ message GroupRestriction { // Groups is a list of groups used to match against an individual user's // groups. If the user is a member of one of the whitelisted groups, the user // is allowed to be bound to a role. - repeated string groups = 1; + repeated string groups = 1 [(gogoproto.customname) = "Groups"]; // Selectors specifies a list of label selectors over group labels. - repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labels = 2; + repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labels = 2 [(gogoproto.customname) = "Selectors", (gogoproto.nullable) = false]; } // IsPersonalSubjectAccessReview is a marker for PolicyRule.AttributeRestrictions that denotes that subjectaccessreviews on self should be allowed @@ -171,188 +181,194 @@ message IsPersonalSubjectAccessReview { // LocalResourceAccessReview is a means to request a list of which users and groups are authorized to perform the action specified by spec in a particular namespace message LocalResourceAccessReview { // Action describes the action being tested. The Namespace element is FORCED to the current namespace. - optional Action Action = 1; + optional Action Action = 1 [(gogoproto.nullable) = false]; } // LocalSubjectAccessReview is an object for requesting information about whether a user or group can perform an action in a particular namespace message LocalSubjectAccessReview { // Action describes the action being tested. The Namespace element is FORCED to the current namespace. - optional Action Action = 1; + optional Action Action = 1 [(gogoproto.nullable) = false]; // User is optional. If both User and Groups are empty, the current authenticated user is used. - optional string user = 2; + optional string user = 2 [(gogoproto.customname) = "User", (gogoproto.nullable) = false]; // Groups is optional. Groups is the list of groups to which the User belongs. // +k8s:conversion-gen=false - repeated string groups = 3; + repeated string groups = 3 [(gogoproto.customname) = "GroupsSlice"]; // Scopes to use for the evaluation. Empty means "use the unscoped (full) permissions of the user/groups". // Nil for a self-SAR, means "use the scopes on this request". // Nil for a regular SAR, means the same as empty. // +k8s:conversion-gen=false - optional OptionalScopes scopes = 4; + optional OptionalScopes scopes = 4 [(gogoproto.customname) = "Scopes"]; } // NamedClusterRole relates a name with a cluster role message NamedClusterRole { // Name is the name of the cluster role - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // Role is the cluster role being named - optional ClusterRole role = 2; + optional ClusterRole role = 2 [(gogoproto.customname) = "Role", (gogoproto.nullable) = false]; } // NamedClusterRoleBinding relates a name with a cluster role binding message NamedClusterRoleBinding { // Name is the name of the cluster role binding - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // RoleBinding is the cluster role binding being named - optional ClusterRoleBinding roleBinding = 2; + optional ClusterRoleBinding roleBinding = 2 [(gogoproto.customname) = "RoleBinding", (gogoproto.nullable) = false]; } // NamedRole relates a Role with a name message NamedRole { // Name is the name of the role - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // Role is the role being named - optional Role role = 2; + optional Role role = 2 [(gogoproto.customname) = "Role", (gogoproto.nullable) = false]; } // NamedRoleBinding relates a role binding with a name message NamedRoleBinding { // Name is the name of the role binding - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // RoleBinding is the role binding being named - optional RoleBinding roleBinding = 2; + optional RoleBinding roleBinding = 2 [(gogoproto.customname) = "RoleBinding", (gogoproto.nullable) = false]; } // OptionalNames is an array that may also be left nil to distinguish between set and unset. // +protobuf.nullable=true // +protobuf.options.(gogoproto.goproto_stringer)=false message OptionalNames { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + // items, if empty, will result in an empty slice - repeated string items = 1; + repeated string items = 1 [(gogoproto.customname) = "Items"]; } // OptionalScopes is an array that may also be left nil to distinguish between set and unset. // +protobuf.nullable=true // +protobuf.options.(gogoproto.goproto_stringer)=false message OptionalScopes { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + // items, if empty, will result in an empty slice - repeated string items = 1; + repeated string items = 1 [(gogoproto.customname) = "Items"]; } // Policy is a object that holds all the Roles for a particular namespace. There is at most // one Policy document per namespace. message Policy { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // LastModified is the last time that any part of the Policy was created, updated, or deleted - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2 [(gogoproto.customname) = "LastModified", (gogoproto.nullable) = false]; // Roles holds all the Roles held by this Policy, mapped by Role.Name - repeated NamedRole roles = 3; + repeated NamedRole roles = 3 [(gogoproto.customname) = "Roles", (gogoproto.nullable) = false]; } // PolicyBinding is a object that holds all the RoleBindings for a particular namespace. There is // one PolicyBinding document per referenced Policy namespace message PolicyBinding { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // LastModified is the last time that any part of the PolicyBinding was created, updated, or deleted - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastModified = 2 [(gogoproto.customname) = "LastModified", (gogoproto.nullable) = false]; // PolicyRef is a reference to the Policy that contains all the Roles that this PolicyBinding's RoleBindings may reference - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference policyRef = 3; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference policyRef = 3 [(gogoproto.customname) = "PolicyRef", (gogoproto.nullable) = false]; // RoleBindings holds all the RoleBindings held by this PolicyBinding, mapped by RoleBinding.Name - repeated NamedRoleBinding roleBindings = 4; + repeated NamedRoleBinding roleBindings = 4 [(gogoproto.customname) = "RoleBindings", (gogoproto.nullable) = false]; } // PolicyBindingList is a collection of PolicyBindings message PolicyBindingList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of PolicyBindings - repeated PolicyBinding items = 2; + repeated PolicyBinding items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // PolicyList is a collection of Policies message PolicyList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of Policies - repeated Policy items = 2; + repeated Policy items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // PolicyRule holds information that describes a policy rule, but does not contain information // about who the rule applies to or which namespace the rule applies to. message PolicyRule { // Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - repeated string verbs = 1; + repeated string verbs = 1 [(gogoproto.customname) = "Verbs"]; // AttributeRestrictions will vary depending on what the Authorizer/AuthorizationAttributeBuilder pair supports. // If the Authorizer does not recognize how to handle the AttributeRestrictions, the Authorizer should report an error. - optional k8s.io.apimachinery.pkg.runtime.RawExtension attributeRestrictions = 2; + optional k8s.io.apimachinery.pkg.runtime.RawExtension attributeRestrictions = 2 [(gogoproto.customname) = "AttributeRestrictions", (gogoproto.nullable) = false]; // APIGroups is the name of the APIGroup that contains the resources. If this field is empty, then both kubernetes and origin API groups are assumed. // That means that if an action is requested against one of the enumerated resources in either the kubernetes or the origin API group, the request // will be allowed - repeated string apiGroups = 3; + repeated string apiGroups = 3 [(gogoproto.customname) = "APIGroups"]; // Resources is a list of resources this rule applies to. ResourceAll represents all resources. - repeated string resources = 4; + repeated string resources = 4 [(gogoproto.customname) = "Resources"]; // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - repeated string resourceNames = 5; + repeated string resourceNames = 5 [(gogoproto.customname) = "ResourceNames"]; // NonResourceURLsSlice is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path // This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. - repeated string nonResourceURLs = 6; + repeated string nonResourceURLs = 6 [(gogoproto.customname) = "NonResourceURLsSlice"]; } // ResourceAccessReview is a means to request a list of which users and groups are authorized to perform the // action specified by spec message ResourceAccessReview { // Action describes the action being tested. - optional Action Action = 1; + optional Action Action = 1 [(gogoproto.nullable) = false]; } // ResourceAccessReviewResponse describes who can perform the action message ResourceAccessReviewResponse { // Namespace is the namespace used for the access review - optional string namespace = 1; + optional string namespace = 1 [(gogoproto.customname) = "Namespace", (gogoproto.nullable) = false]; // UsersSlice is the list of users who can perform the action // +k8s:conversion-gen=false - repeated string users = 2; + repeated string users = 2 [(gogoproto.customname) = "UsersSlice"]; // GroupsSlice is the list of groups who can perform the action // +k8s:conversion-gen=false - repeated string groups = 3; + repeated string groups = 3 [(gogoproto.customname) = "GroupsSlice"]; // EvaluationError is an indication that some error occurred during resolution, but partial results can still be returned. // It is entirely possible to get an error and be able to continue determine authorization status in spite of it. This is // most common when a bound role is missing, but enough roles are still present and bound to reason about the request. - optional string evalutionError = 4; + optional string evalutionError = 4 [(gogoproto.customname) = "EvaluationError", (gogoproto.nullable) = false]; } // Role is a logical grouping of PolicyRules that can be referenced as a unit by RoleBindings. message Role { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Rules holds all the PolicyRules for this Role - repeated PolicyRule rules = 2; + repeated PolicyRule rules = 2 [(gogoproto.customname) = "Rules", (gogoproto.nullable) = false]; } // RoleBinding references a Role, but not contain it. It can reference any Role in the same namespace or in the global namespace. @@ -360,40 +376,40 @@ message Role { // RoleBindings in a given namespace only have effect in that namespace (excepting the master namespace which has power in all namespaces). message RoleBinding { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // UserNames holds all the usernames directly bound to the role. // This field should only be specified when supporting legacy clients and servers. // See Subjects for further details. // +k8s:conversion-gen=false - optional OptionalNames userNames = 2; + optional OptionalNames userNames = 2 [(gogoproto.customname) = "UserNames"]; // GroupNames holds all the groups directly bound to the role. // This field should only be specified when supporting legacy clients and servers. // See Subjects for further details. // +k8s:conversion-gen=false - optional OptionalNames groupNames = 3; + optional OptionalNames groupNames = 3 [(gogoproto.customname) = "GroupNames"]; // Subjects hold object references to authorize with this rule. // This field is ignored if UserNames or GroupNames are specified to support legacy clients and servers. // Thus newer clients that do not need to support backwards compatibility should send // only fully qualified Subjects and should omit the UserNames and GroupNames fields. // Clients that need to support backwards compatibility can use this field to build the UserNames and GroupNames. - repeated k8s.io.kubernetes.pkg.api.v1.ObjectReference subjects = 4; + repeated k8s.io.kubernetes.pkg.api.v1.ObjectReference subjects = 4 [(gogoproto.customname) = "Subjects", (gogoproto.nullable) = false]; // RoleRef can only reference the current namespace and the global namespace. // If the RoleRef cannot be resolved, the Authorizer must return an error. // Since Policy is a singleton, this is sufficient knowledge to locate a role. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference roleRef = 5; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference roleRef = 5 [(gogoproto.customname) = "RoleRef", (gogoproto.nullable) = false]; } // RoleBindingList is a collection of RoleBindings message RoleBindingList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of RoleBindings - repeated RoleBinding items = 2; + repeated RoleBinding items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // RoleBindingRestriction is an object that can be matched against a subject @@ -403,50 +419,50 @@ message RoleBindingList { // a subject, rolebindings on that subject in the namespace are allowed. message RoleBindingRestriction { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Spec defines the matcher. - optional RoleBindingRestrictionSpec spec = 2; + optional RoleBindingRestrictionSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; } // RoleBindingRestrictionList is a collection of RoleBindingRestriction objects. message RoleBindingRestrictionList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of RoleBindingRestriction objects. - repeated RoleBindingRestriction items = 2; + repeated RoleBindingRestriction items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // RoleBindingRestrictionSpec defines a rolebinding restriction. Exactly one // field must be non-nil. message RoleBindingRestrictionSpec { // UserRestriction matches against user subjects. - optional UserRestriction userrestriction = 1; + optional UserRestriction userrestriction = 1 [(gogoproto.customname) = "UserRestriction"]; // GroupRestriction matches against group subjects. - optional GroupRestriction grouprestriction = 2; + optional GroupRestriction grouprestriction = 2 [(gogoproto.customname) = "GroupRestriction"]; // ServiceAccountRestriction matches against service-account subjects. - optional ServiceAccountRestriction serviceaccountrestriction = 3; + optional ServiceAccountRestriction serviceaccountrestriction = 3 [(gogoproto.customname) = "ServiceAccountRestriction"]; } // RoleList is a collection of Roles message RoleList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of Roles - repeated Role items = 2; + repeated Role items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // SelfSubjectRulesReview is a resource you can create to determine which actions you can perform in a namespace message SelfSubjectRulesReview { // Spec adds information about how to conduct the check - optional SelfSubjectRulesReviewSpec spec = 1; + optional SelfSubjectRulesReviewSpec spec = 1 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status is completed by the server to tell which permissions you have - optional SubjectRulesReviewStatus status = 2; + optional SubjectRulesReviewStatus status = 2 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // SelfSubjectRulesReviewSpec adds information about how to conduct the check @@ -454,20 +470,20 @@ message SelfSubjectRulesReviewSpec { // Scopes to use for the evaluation. Empty means "use the unscoped (full) permissions of the user/groups". // Nil means "use the scopes on this request". // +k8s:conversion-gen=false - optional OptionalScopes scopes = 1; + optional OptionalScopes scopes = 1 [(gogoproto.customname) = "Scopes"]; } // ServiceAccountReference specifies a service account and namespace by their // names. message ServiceAccountReference { // Name is the name of the service account. - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // Namespace is the namespace of the service account. Service accounts from // inside the whitelisted namespaces are allowed to be bound to roles. If // Namespace is empty, then the namespace of the RoleBindingRestriction in // which the ServiceAccountReference is embedded is used. - optional string namespace = 2; + optional string namespace = 2 [(gogoproto.customname) = "Namespace", (gogoproto.nullable) = false]; } // ServiceAccountRestriction matches a service account by a string match on @@ -475,77 +491,77 @@ message ServiceAccountReference { // namespace. message ServiceAccountRestriction { // ServiceAccounts specifies a list of literal service-account names. - repeated ServiceAccountReference serviceaccounts = 1; + repeated ServiceAccountReference serviceaccounts = 1 [(gogoproto.customname) = "ServiceAccounts", (gogoproto.nullable) = false]; // Namespaces specifies a list of literal namespace names. - repeated string namespaces = 2; + repeated string namespaces = 2 [(gogoproto.customname) = "Namespaces"]; } // SubjectAccessReview is an object for requesting information about whether a user or group can perform an action message SubjectAccessReview { // Action describes the action being tested. - optional Action Action = 1; + optional Action Action = 1 [(gogoproto.nullable) = false]; // User is optional. If both User and Groups are empty, the current authenticated user is used. - optional string user = 2; + optional string user = 2 [(gogoproto.customname) = "User", (gogoproto.nullable) = false]; // GroupsSlice is optional. Groups is the list of groups to which the User belongs. // +k8s:conversion-gen=false - repeated string groups = 3; + repeated string groups = 3 [(gogoproto.customname) = "GroupsSlice"]; // Scopes to use for the evaluation. Empty means "use the unscoped (full) permissions of the user/groups". // Nil for a self-SAR, means "use the scopes on this request". // Nil for a regular SAR, means the same as empty. // +k8s:conversion-gen=false - optional OptionalScopes scopes = 4; + optional OptionalScopes scopes = 4 [(gogoproto.customname) = "Scopes"]; } // SubjectAccessReviewResponse describes whether or not a user or group can perform an action message SubjectAccessReviewResponse { // Namespace is the namespace used for the access review - optional string namespace = 1; + optional string namespace = 1 [(gogoproto.customname) = "Namespace", (gogoproto.nullable) = false]; // Allowed is required. True if the action would be allowed, false otherwise. - optional bool allowed = 2; + optional bool allowed = 2 [(gogoproto.customname) = "Allowed", (gogoproto.nullable) = false]; // Reason is optional. It indicates why a request was allowed or denied. - optional string reason = 3; + optional string reason = 3 [(gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // EvaluationError is an indication that some error occurred during the authorization check. // It is entirely possible to get an error and be able to continue determine authorization status in spite of it. This is // most common when a bound role is missing, but enough roles are still present and bound to reason about the request. - optional string evaluationError = 4; + optional string evaluationError = 4 [(gogoproto.customname) = "EvaluationError", (gogoproto.nullable) = false]; } // SubjectRulesReview is a resource you can create to determine which actions another user can perform in a namespace message SubjectRulesReview { // Spec adds information about how to conduct the check - optional SubjectRulesReviewSpec spec = 1; + optional SubjectRulesReviewSpec spec = 1 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status is completed by the server to tell which permissions you have - optional SubjectRulesReviewStatus status = 2; + optional SubjectRulesReviewStatus status = 2 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // SubjectRulesReviewSpec adds information about how to conduct the check message SubjectRulesReviewSpec { // User is optional. At least one of User and Groups must be specified. - optional string user = 1; + optional string user = 1 [(gogoproto.customname) = "User", (gogoproto.nullable) = false]; // Groups is optional. Groups is the list of groups to which the User belongs. At least one of User and Groups must be specified. - repeated string groups = 2; + repeated string groups = 2 [(gogoproto.customname) = "Groups"]; // Scopes to use for the evaluation. Empty means "use the unscoped (full) permissions of the user/groups". - optional OptionalScopes scopes = 3; + optional OptionalScopes scopes = 3 [(gogoproto.customname) = "Scopes"]; } // SubjectRulesReviewStatus is contains the result of a rules check message SubjectRulesReviewStatus { // Rules is the list of rules (no particular sort) that are allowed for the subject - repeated PolicyRule rules = 1; + repeated PolicyRule rules = 1 [(gogoproto.customname) = "Rules", (gogoproto.nullable) = false]; // EvaluationError can appear in combination with Rules. It means some error happened during evaluation // that may have prevented additional rules from being populated. - optional string evaluationError = 2; + optional string evaluationError = 2 [(gogoproto.customname) = "EvaluationError", (gogoproto.nullable) = false]; } // UserRestriction matches a user either by a string match on the user name, @@ -553,12 +569,12 @@ message SubjectRulesReviewStatus { // selector applied to the user labels. message UserRestriction { // Users specifies a list of literal user names. - repeated string users = 1; + repeated string users = 1 [(gogoproto.customname) = "Users"]; // Groups specifies a list of literal group names. - repeated string groups = 2; + repeated string groups = 2 [(gogoproto.customname) = "Groups"]; // Selectors specifies a list of label selectors over user labels. - repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labels = 3; + repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labels = 3 [(gogoproto.customname) = "Selectors", (gogoproto.nullable) = false]; } diff --git a/pkg/build/apis/build/v1/generated.pb.go b/pkg/build/apis/build/v1/generated.pb.go deleted file mode 100644 index 0c5992eaee8e..000000000000 --- a/pkg/build/apis/build/v1/generated.pb.go +++ /dev/null @@ -1,12567 +0,0 @@ -// Code generated by protoc-gen-gogo. -// source: github.com/openshift/origin/pkg/build/apis/build/v1/generated.proto -// DO NOT EDIT! - -/* - Package v1 is a generated protocol buffer package. - - It is generated from these files: - github.com/openshift/origin/pkg/build/apis/build/v1/generated.proto - - It has these top-level messages: - BinaryBuildRequestOptions - BinaryBuildSource - BitbucketWebHookCause - Build - BuildConfig - BuildConfigList - BuildConfigSpec - BuildConfigStatus - BuildList - BuildLog - BuildLogOptions - BuildOutput - BuildPostCommitSpec - BuildRequest - BuildSource - BuildSpec - BuildStatus - BuildStatusOutput - BuildStatusOutputTo - BuildStrategy - BuildTriggerCause - BuildTriggerPolicy - CommonSpec - CommonWebHookCause - CustomBuildStrategy - DockerBuildStrategy - DockerStrategyOptions - GenericWebHookCause - GenericWebHookEvent - GitBuildSource - GitHubWebHookCause - GitInfo - GitLabWebHookCause - GitSourceRevision - ImageChangeCause - ImageChangeTrigger - ImageLabel - ImageSource - ImageSourcePath - JenkinsPipelineBuildStrategy - OptionalNodeSelector - ProxyConfig - SecretBuildSource - SecretSpec - SourceBuildStrategy - SourceControlUser - SourceRevision - SourceStrategyOptions - StageInfo - StepInfo - WebHookTrigger -*/ -package v1 - -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" - -import time "time" - -import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - -import strings "strings" -import reflect "reflect" - -import io "io" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *BinaryBuildRequestOptions) Reset() { *m = BinaryBuildRequestOptions{} } -func (*BinaryBuildRequestOptions) ProtoMessage() {} -func (*BinaryBuildRequestOptions) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{0} -} - -func (m *BinaryBuildSource) Reset() { *m = BinaryBuildSource{} } -func (*BinaryBuildSource) ProtoMessage() {} -func (*BinaryBuildSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } - -func (m *BitbucketWebHookCause) Reset() { *m = BitbucketWebHookCause{} } -func (*BitbucketWebHookCause) ProtoMessage() {} -func (*BitbucketWebHookCause) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } - -func (m *Build) Reset() { *m = Build{} } -func (*Build) ProtoMessage() {} -func (*Build) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } - -func (m *BuildConfig) Reset() { *m = BuildConfig{} } -func (*BuildConfig) ProtoMessage() {} -func (*BuildConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } - -func (m *BuildConfigList) Reset() { *m = BuildConfigList{} } -func (*BuildConfigList) ProtoMessage() {} -func (*BuildConfigList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } - -func (m *BuildConfigSpec) Reset() { *m = BuildConfigSpec{} } -func (*BuildConfigSpec) ProtoMessage() {} -func (*BuildConfigSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } - -func (m *BuildConfigStatus) Reset() { *m = BuildConfigStatus{} } -func (*BuildConfigStatus) ProtoMessage() {} -func (*BuildConfigStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } - -func (m *BuildList) Reset() { *m = BuildList{} } -func (*BuildList) ProtoMessage() {} -func (*BuildList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } - -func (m *BuildLog) Reset() { *m = BuildLog{} } -func (*BuildLog) ProtoMessage() {} -func (*BuildLog) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } - -func (m *BuildLogOptions) Reset() { *m = BuildLogOptions{} } -func (*BuildLogOptions) ProtoMessage() {} -func (*BuildLogOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } - -func (m *BuildOutput) Reset() { *m = BuildOutput{} } -func (*BuildOutput) ProtoMessage() {} -func (*BuildOutput) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } - -func (m *BuildPostCommitSpec) Reset() { *m = BuildPostCommitSpec{} } -func (*BuildPostCommitSpec) ProtoMessage() {} -func (*BuildPostCommitSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } - -func (m *BuildRequest) Reset() { *m = BuildRequest{} } -func (*BuildRequest) ProtoMessage() {} -func (*BuildRequest) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } - -func (m *BuildSource) Reset() { *m = BuildSource{} } -func (*BuildSource) ProtoMessage() {} -func (*BuildSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} } - -func (m *BuildSpec) Reset() { *m = BuildSpec{} } -func (*BuildSpec) ProtoMessage() {} -func (*BuildSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} } - -func (m *BuildStatus) Reset() { *m = BuildStatus{} } -func (*BuildStatus) ProtoMessage() {} -func (*BuildStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} } - -func (m *BuildStatusOutput) Reset() { *m = BuildStatusOutput{} } -func (*BuildStatusOutput) ProtoMessage() {} -func (*BuildStatusOutput) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} } - -func (m *BuildStatusOutputTo) Reset() { *m = BuildStatusOutputTo{} } -func (*BuildStatusOutputTo) ProtoMessage() {} -func (*BuildStatusOutputTo) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } - -func (m *BuildStrategy) Reset() { *m = BuildStrategy{} } -func (*BuildStrategy) ProtoMessage() {} -func (*BuildStrategy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } - -func (m *BuildTriggerCause) Reset() { *m = BuildTriggerCause{} } -func (*BuildTriggerCause) ProtoMessage() {} -func (*BuildTriggerCause) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} } - -func (m *BuildTriggerPolicy) Reset() { *m = BuildTriggerPolicy{} } -func (*BuildTriggerPolicy) ProtoMessage() {} -func (*BuildTriggerPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{21} } - -func (m *CommonSpec) Reset() { *m = CommonSpec{} } -func (*CommonSpec) ProtoMessage() {} -func (*CommonSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{22} } - -func (m *CommonWebHookCause) Reset() { *m = CommonWebHookCause{} } -func (*CommonWebHookCause) ProtoMessage() {} -func (*CommonWebHookCause) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{23} } - -func (m *CustomBuildStrategy) Reset() { *m = CustomBuildStrategy{} } -func (*CustomBuildStrategy) ProtoMessage() {} -func (*CustomBuildStrategy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{24} } - -func (m *DockerBuildStrategy) Reset() { *m = DockerBuildStrategy{} } -func (*DockerBuildStrategy) ProtoMessage() {} -func (*DockerBuildStrategy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{25} } - -func (m *DockerStrategyOptions) Reset() { *m = DockerStrategyOptions{} } -func (*DockerStrategyOptions) ProtoMessage() {} -func (*DockerStrategyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{26} } - -func (m *GenericWebHookCause) Reset() { *m = GenericWebHookCause{} } -func (*GenericWebHookCause) ProtoMessage() {} -func (*GenericWebHookCause) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{27} } - -func (m *GenericWebHookEvent) Reset() { *m = GenericWebHookEvent{} } -func (*GenericWebHookEvent) ProtoMessage() {} -func (*GenericWebHookEvent) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{28} } - -func (m *GitBuildSource) Reset() { *m = GitBuildSource{} } -func (*GitBuildSource) ProtoMessage() {} -func (*GitBuildSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{29} } - -func (m *GitHubWebHookCause) Reset() { *m = GitHubWebHookCause{} } -func (*GitHubWebHookCause) ProtoMessage() {} -func (*GitHubWebHookCause) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{30} } - -func (m *GitInfo) Reset() { *m = GitInfo{} } -func (*GitInfo) ProtoMessage() {} -func (*GitInfo) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{31} } - -func (m *GitLabWebHookCause) Reset() { *m = GitLabWebHookCause{} } -func (*GitLabWebHookCause) ProtoMessage() {} -func (*GitLabWebHookCause) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{32} } - -func (m *GitSourceRevision) Reset() { *m = GitSourceRevision{} } -func (*GitSourceRevision) ProtoMessage() {} -func (*GitSourceRevision) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{33} } - -func (m *ImageChangeCause) Reset() { *m = ImageChangeCause{} } -func (*ImageChangeCause) ProtoMessage() {} -func (*ImageChangeCause) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{34} } - -func (m *ImageChangeTrigger) Reset() { *m = ImageChangeTrigger{} } -func (*ImageChangeTrigger) ProtoMessage() {} -func (*ImageChangeTrigger) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{35} } - -func (m *ImageLabel) Reset() { *m = ImageLabel{} } -func (*ImageLabel) ProtoMessage() {} -func (*ImageLabel) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{36} } - -func (m *ImageSource) Reset() { *m = ImageSource{} } -func (*ImageSource) ProtoMessage() {} -func (*ImageSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{37} } - -func (m *ImageSourcePath) Reset() { *m = ImageSourcePath{} } -func (*ImageSourcePath) ProtoMessage() {} -func (*ImageSourcePath) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{38} } - -func (m *JenkinsPipelineBuildStrategy) Reset() { *m = JenkinsPipelineBuildStrategy{} } -func (*JenkinsPipelineBuildStrategy) ProtoMessage() {} -func (*JenkinsPipelineBuildStrategy) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{39} -} - -func (m *OptionalNodeSelector) Reset() { *m = OptionalNodeSelector{} } -func (*OptionalNodeSelector) ProtoMessage() {} -func (*OptionalNodeSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{40} } - -func (m *ProxyConfig) Reset() { *m = ProxyConfig{} } -func (*ProxyConfig) ProtoMessage() {} -func (*ProxyConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{41} } - -func (m *SecretBuildSource) Reset() { *m = SecretBuildSource{} } -func (*SecretBuildSource) ProtoMessage() {} -func (*SecretBuildSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{42} } - -func (m *SecretSpec) Reset() { *m = SecretSpec{} } -func (*SecretSpec) ProtoMessage() {} -func (*SecretSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{43} } - -func (m *SourceBuildStrategy) Reset() { *m = SourceBuildStrategy{} } -func (*SourceBuildStrategy) ProtoMessage() {} -func (*SourceBuildStrategy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{44} } - -func (m *SourceControlUser) Reset() { *m = SourceControlUser{} } -func (*SourceControlUser) ProtoMessage() {} -func (*SourceControlUser) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{45} } - -func (m *SourceRevision) Reset() { *m = SourceRevision{} } -func (*SourceRevision) ProtoMessage() {} -func (*SourceRevision) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{46} } - -func (m *SourceStrategyOptions) Reset() { *m = SourceStrategyOptions{} } -func (*SourceStrategyOptions) ProtoMessage() {} -func (*SourceStrategyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{47} } - -func (m *StageInfo) Reset() { *m = StageInfo{} } -func (*StageInfo) ProtoMessage() {} -func (*StageInfo) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{48} } - -func (m *StepInfo) Reset() { *m = StepInfo{} } -func (*StepInfo) ProtoMessage() {} -func (*StepInfo) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{49} } - -func (m *WebHookTrigger) Reset() { *m = WebHookTrigger{} } -func (*WebHookTrigger) ProtoMessage() {} -func (*WebHookTrigger) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{50} } - -func init() { - proto.RegisterType((*BinaryBuildRequestOptions)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BinaryBuildRequestOptions") - proto.RegisterType((*BinaryBuildSource)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BinaryBuildSource") - proto.RegisterType((*BitbucketWebHookCause)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BitbucketWebHookCause") - proto.RegisterType((*Build)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.Build") - proto.RegisterType((*BuildConfig)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildConfig") - proto.RegisterType((*BuildConfigList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildConfigList") - proto.RegisterType((*BuildConfigSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildConfigSpec") - proto.RegisterType((*BuildConfigStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildConfigStatus") - proto.RegisterType((*BuildList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildList") - proto.RegisterType((*BuildLog)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildLog") - proto.RegisterType((*BuildLogOptions)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildLogOptions") - proto.RegisterType((*BuildOutput)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildOutput") - proto.RegisterType((*BuildPostCommitSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildPostCommitSpec") - proto.RegisterType((*BuildRequest)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildRequest") - proto.RegisterType((*BuildSource)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildSource") - proto.RegisterType((*BuildSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildSpec") - proto.RegisterType((*BuildStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildStatus") - proto.RegisterType((*BuildStatusOutput)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildStatusOutput") - proto.RegisterType((*BuildStatusOutputTo)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildStatusOutputTo") - proto.RegisterType((*BuildStrategy)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildStrategy") - proto.RegisterType((*BuildTriggerCause)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildTriggerCause") - proto.RegisterType((*BuildTriggerPolicy)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.BuildTriggerPolicy") - proto.RegisterType((*CommonSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.CommonSpec") - proto.RegisterType((*CommonWebHookCause)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.CommonWebHookCause") - proto.RegisterType((*CustomBuildStrategy)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.CustomBuildStrategy") - proto.RegisterType((*DockerBuildStrategy)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.DockerBuildStrategy") - proto.RegisterType((*DockerStrategyOptions)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.DockerStrategyOptions") - proto.RegisterType((*GenericWebHookCause)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.GenericWebHookCause") - proto.RegisterType((*GenericWebHookEvent)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.GenericWebHookEvent") - proto.RegisterType((*GitBuildSource)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.GitBuildSource") - proto.RegisterType((*GitHubWebHookCause)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.GitHubWebHookCause") - proto.RegisterType((*GitInfo)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.GitInfo") - proto.RegisterType((*GitLabWebHookCause)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.GitLabWebHookCause") - proto.RegisterType((*GitSourceRevision)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.GitSourceRevision") - proto.RegisterType((*ImageChangeCause)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.ImageChangeCause") - proto.RegisterType((*ImageChangeTrigger)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.ImageChangeTrigger") - proto.RegisterType((*ImageLabel)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.ImageLabel") - proto.RegisterType((*ImageSource)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.ImageSource") - proto.RegisterType((*ImageSourcePath)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.ImageSourcePath") - proto.RegisterType((*JenkinsPipelineBuildStrategy)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.JenkinsPipelineBuildStrategy") - proto.RegisterType((*OptionalNodeSelector)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.OptionalNodeSelector") - proto.RegisterType((*ProxyConfig)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.ProxyConfig") - proto.RegisterType((*SecretBuildSource)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.SecretBuildSource") - proto.RegisterType((*SecretSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.SecretSpec") - proto.RegisterType((*SourceBuildStrategy)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.SourceBuildStrategy") - proto.RegisterType((*SourceControlUser)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.SourceControlUser") - proto.RegisterType((*SourceRevision)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.SourceRevision") - proto.RegisterType((*SourceStrategyOptions)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.SourceStrategyOptions") - proto.RegisterType((*StageInfo)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.StageInfo") - proto.RegisterType((*StepInfo)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.StepInfo") - proto.RegisterType((*WebHookTrigger)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1.WebHookTrigger") -} -func (m *BinaryBuildRequestOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BinaryBuildRequestOptions) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AsFile))) - i += copy(dAtA[i:], m.AsFile) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Commit))) - i += copy(dAtA[i:], m.Commit) - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AuthorName))) - i += copy(dAtA[i:], m.AuthorName) - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AuthorEmail))) - i += copy(dAtA[i:], m.AuthorEmail) - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CommitterName))) - i += copy(dAtA[i:], m.CommitterName) - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CommitterEmail))) - i += copy(dAtA[i:], m.CommitterEmail) - return i, nil -} - -func (m *BinaryBuildSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BinaryBuildSource) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AsFile))) - i += copy(dAtA[i:], m.AsFile) - return i, nil -} - -func (m *BitbucketWebHookCause) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BitbucketWebHookCause) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.CommonWebHookCause.Size())) - n2, err := m.CommonWebHookCause.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - return i, nil -} - -func (m *Build) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Build) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n3, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n4, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n5, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - return i, nil -} - -func (m *BuildConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildConfig) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n6, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n7, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n8, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 - return i, nil -} - -func (m *BuildConfigList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildConfigList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n9, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *BuildConfigSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildConfigSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Triggers) > 0 { - for _, msg := range m.Triggers { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RunPolicy))) - i += copy(dAtA[i:], m.RunPolicy) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.CommonSpec.Size())) - n10, err := m.CommonSpec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 - if m.SuccessfulBuildsHistoryLimit != nil { - dAtA[i] = 0x20 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.SuccessfulBuildsHistoryLimit)) - } - if m.FailedBuildsHistoryLimit != nil { - dAtA[i] = 0x28 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.FailedBuildsHistoryLimit)) - } - return i, nil -} - -func (m *BuildConfigStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildConfigStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LastVersion)) - return i, nil -} - -func (m *BuildList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n11, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *BuildLog) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildLog) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - return i, nil -} - -func (m *BuildLogOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildLogOptions) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Container))) - i += copy(dAtA[i:], m.Container) - dAtA[i] = 0x10 - i++ - if m.Follow { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x18 - i++ - if m.Previous { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if m.SinceSeconds != nil { - dAtA[i] = 0x20 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.SinceSeconds)) - } - if m.SinceTime != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.SinceTime.Size())) - n12, err := m.SinceTime.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n12 - } - dAtA[i] = 0x30 - i++ - if m.Timestamps { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if m.TailLines != nil { - dAtA[i] = 0x38 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.TailLines)) - } - if m.LimitBytes != nil { - dAtA[i] = 0x40 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.LimitBytes)) - } - dAtA[i] = 0x48 - i++ - if m.NoWait { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if m.Version != nil { - dAtA[i] = 0x50 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.Version)) - } - return i, nil -} - -func (m *BuildOutput) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildOutput) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.To != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.To.Size())) - n13, err := m.To.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 - } - if m.PushSecret != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.PushSecret.Size())) - n14, err := m.PushSecret.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n14 - } - if len(m.ImageLabels) > 0 { - for _, msg := range m.ImageLabels { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *BuildPostCommitSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildPostCommitSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Command) > 0 { - for _, s := range m.Command { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.Args) > 0 { - for _, s := range m.Args { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Script))) - i += copy(dAtA[i:], m.Script) - return i, nil -} - -func (m *BuildRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n15, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n15 - if m.Revision != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Revision.Size())) - n16, err := m.Revision.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n16 - } - if m.TriggeredByImage != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.TriggeredByImage.Size())) - n17, err := m.TriggeredByImage.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n17 - } - if m.From != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.From.Size())) - n18, err := m.From.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n18 - } - if m.Binary != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Binary.Size())) - n19, err := m.Binary.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n19 - } - if m.LastVersion != nil { - dAtA[i] = 0x30 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.LastVersion)) - } - if len(m.Env) > 0 { - for _, msg := range m.Env { - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.TriggeredBy) > 0 { - for _, msg := range m.TriggeredBy { - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.DockerStrategyOptions != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.DockerStrategyOptions.Size())) - n20, err := m.DockerStrategyOptions.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n20 - } - if m.SourceStrategyOptions != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.SourceStrategyOptions.Size())) - n21, err := m.SourceStrategyOptions.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n21 - } - return i, nil -} - -func (m *BuildSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildSource) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - if m.Binary != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Binary.Size())) - n22, err := m.Binary.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n22 - } - if m.Dockerfile != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Dockerfile))) - i += copy(dAtA[i:], *m.Dockerfile) - } - if m.Git != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Git.Size())) - n23, err := m.Git.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n23 - } - if len(m.Images) > 0 { - for _, msg := range m.Images { - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContextDir))) - i += copy(dAtA[i:], m.ContextDir) - if m.SourceSecret != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.SourceSecret.Size())) - n24, err := m.SourceSecret.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n24 - } - if len(m.Secrets) > 0 { - for _, msg := range m.Secrets { - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *BuildSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.CommonSpec.Size())) - n25, err := m.CommonSpec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n25 - if len(m.TriggeredBy) > 0 { - for _, msg := range m.TriggeredBy { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *BuildStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) - i += copy(dAtA[i:], m.Phase) - dAtA[i] = 0x10 - i++ - if m.Cancelled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i += copy(dAtA[i:], m.Reason) - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) - if m.StartTimestamp != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.StartTimestamp.Size())) - n26, err := m.StartTimestamp.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n26 - } - if m.CompletionTimestamp != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.CompletionTimestamp.Size())) - n27, err := m.CompletionTimestamp.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n27 - } - dAtA[i] = 0x38 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Duration)) - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.OutputDockerImageReference))) - i += copy(dAtA[i:], m.OutputDockerImageReference) - if m.Config != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Config.Size())) - n28, err := m.Config.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n28 - } - dAtA[i] = 0x52 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Output.Size())) - n29, err := m.Output.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n29 - if len(m.Stages) > 0 { - for _, msg := range m.Stages { - dAtA[i] = 0x5a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x62 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.LogSnippet))) - i += copy(dAtA[i:], m.LogSnippet) - return i, nil -} - -func (m *BuildStatusOutput) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildStatusOutput) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.To != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.To.Size())) - n30, err := m.To.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n30 - } - return i, nil -} - -func (m *BuildStatusOutputTo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildStatusOutputTo) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ImageDigest))) - i += copy(dAtA[i:], m.ImageDigest) - return i, nil -} - -func (m *BuildStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildStrategy) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - if m.DockerStrategy != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.DockerStrategy.Size())) - n31, err := m.DockerStrategy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n31 - } - if m.SourceStrategy != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.SourceStrategy.Size())) - n32, err := m.SourceStrategy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n32 - } - if m.CustomStrategy != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.CustomStrategy.Size())) - n33, err := m.CustomStrategy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n33 - } - if m.JenkinsPipelineStrategy != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.JenkinsPipelineStrategy.Size())) - n34, err := m.JenkinsPipelineStrategy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n34 - } - return i, nil -} - -func (m *BuildTriggerCause) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildTriggerCause) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) - if m.GenericWebHook != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.GenericWebHook.Size())) - n35, err := m.GenericWebHook.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n35 - } - if m.GitHubWebHook != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.GitHubWebHook.Size())) - n36, err := m.GitHubWebHook.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n36 - } - if m.ImageChangeBuild != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ImageChangeBuild.Size())) - n37, err := m.ImageChangeBuild.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n37 - } - if m.GitLabWebHook != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.GitLabWebHook.Size())) - n38, err := m.GitLabWebHook.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n38 - } - if m.BitbucketWebHook != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.BitbucketWebHook.Size())) - n39, err := m.BitbucketWebHook.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n39 - } - return i, nil -} - -func (m *BuildTriggerPolicy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BuildTriggerPolicy) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - if m.GitHubWebHook != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.GitHubWebHook.Size())) - n40, err := m.GitHubWebHook.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n40 - } - if m.GenericWebHook != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.GenericWebHook.Size())) - n41, err := m.GenericWebHook.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n41 - } - if m.ImageChange != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ImageChange.Size())) - n42, err := m.ImageChange.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n42 - } - if m.GitLabWebHook != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.GitLabWebHook.Size())) - n43, err := m.GitLabWebHook.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n43 - } - if m.BitbucketWebHook != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.BitbucketWebHook.Size())) - n44, err := m.BitbucketWebHook.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n44 - } - return i, nil -} - -func (m *CommonSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CommonSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceAccount))) - i += copy(dAtA[i:], m.ServiceAccount) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Source.Size())) - n45, err := m.Source.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n45 - if m.Revision != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Revision.Size())) - n46, err := m.Revision.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n46 - } - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Strategy.Size())) - n47, err := m.Strategy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n47 - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Output.Size())) - n48, err := m.Output.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n48 - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Resources.Size())) - n49, err := m.Resources.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n49 - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.PostCommit.Size())) - n50, err := m.PostCommit.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n50 - if m.CompletionDeadlineSeconds != nil { - dAtA[i] = 0x40 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.CompletionDeadlineSeconds)) - } - if m.NodeSelector != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.NodeSelector.Size())) - n51, err := m.NodeSelector.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n51 - } - return i, nil -} - -func (m *CommonWebHookCause) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CommonWebHookCause) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Revision != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Revision.Size())) - n52, err := m.Revision.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n52 - } - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Secret))) - i += copy(dAtA[i:], m.Secret) - return i, nil -} - -func (m *CustomBuildStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CustomBuildStrategy) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.From.Size())) - n53, err := m.From.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n53 - if m.PullSecret != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.PullSecret.Size())) - n54, err := m.PullSecret.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n54 - } - if len(m.Env) > 0 { - for _, msg := range m.Env { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x20 - i++ - if m.ExposeDockerSocket { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x28 - i++ - if m.ForcePull { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if len(m.Secrets) > 0 { - for _, msg := range m.Secrets { - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.BuildAPIVersion))) - i += copy(dAtA[i:], m.BuildAPIVersion) - return i, nil -} - -func (m *DockerBuildStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DockerBuildStrategy) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.From != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.From.Size())) - n55, err := m.From.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n55 - } - if m.PullSecret != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.PullSecret.Size())) - n56, err := m.PullSecret.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n56 - } - dAtA[i] = 0x18 - i++ - if m.NoCache { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if len(m.Env) > 0 { - for _, msg := range m.Env { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x28 - i++ - if m.ForcePull { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DockerfilePath))) - i += copy(dAtA[i:], m.DockerfilePath) - if len(m.BuildArgs) > 0 { - for _, msg := range m.BuildArgs { - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.ImageOptimizationPolicy != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ImageOptimizationPolicy))) - i += copy(dAtA[i:], *m.ImageOptimizationPolicy) - } - return i, nil -} - -func (m *DockerStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DockerStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.BuildArgs) > 0 { - for _, msg := range m.BuildArgs { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.NoCache != nil { - dAtA[i] = 0x10 - i++ - if *m.NoCache { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *GenericWebHookCause) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GenericWebHookCause) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Revision != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Revision.Size())) - n57, err := m.Revision.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n57 - } - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Secret))) - i += copy(dAtA[i:], m.Secret) - return i, nil -} - -func (m *GenericWebHookEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GenericWebHookEvent) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - if m.Git != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Git.Size())) - n58, err := m.Git.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n58 - } - if len(m.Env) > 0 { - for _, msg := range m.Env { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.DockerStrategyOptions != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.DockerStrategyOptions.Size())) - n59, err := m.DockerStrategyOptions.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n59 - } - return i, nil -} - -func (m *GitBuildSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GitBuildSource) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.URI))) - i += copy(dAtA[i:], m.URI) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Ref))) - i += copy(dAtA[i:], m.Ref) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ProxyConfig.Size())) - n60, err := m.ProxyConfig.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n60 - return i, nil -} - -func (m *GitHubWebHookCause) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GitHubWebHookCause) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Revision != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Revision.Size())) - n61, err := m.Revision.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n61 - } - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Secret))) - i += copy(dAtA[i:], m.Secret) - return i, nil -} - -func (m *GitInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GitInfo) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.GitBuildSource.Size())) - n62, err := m.GitBuildSource.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n62 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.GitSourceRevision.Size())) - n63, err := m.GitSourceRevision.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n63 - return i, nil -} - -func (m *GitLabWebHookCause) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GitLabWebHookCause) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.CommonWebHookCause.Size())) - n64, err := m.CommonWebHookCause.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n64 - return i, nil -} - -func (m *GitSourceRevision) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GitSourceRevision) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Commit))) - i += copy(dAtA[i:], m.Commit) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Author.Size())) - n65, err := m.Author.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n65 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Committer.Size())) - n66, err := m.Committer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n66 - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) - return i, nil -} - -func (m *ImageChangeCause) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageChangeCause) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ImageID))) - i += copy(dAtA[i:], m.ImageID) - if m.FromRef != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.FromRef.Size())) - n67, err := m.FromRef.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n67 - } - return i, nil -} - -func (m *ImageChangeTrigger) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageChangeTrigger) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.LastTriggeredImageID))) - i += copy(dAtA[i:], m.LastTriggeredImageID) - if m.From != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.From.Size())) - n68, err := m.From.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n68 - } - return i, nil -} - -func (m *ImageLabel) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageLabel) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) - return i, nil -} - -func (m *ImageSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageSource) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.From.Size())) - n69, err := m.From.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n69 - if len(m.Paths) > 0 { - for _, msg := range m.Paths { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.PullSecret != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.PullSecret.Size())) - n70, err := m.PullSecret.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n70 - } - return i, nil -} - -func (m *ImageSourcePath) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageSourcePath) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SourcePath))) - i += copy(dAtA[i:], m.SourcePath) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DestinationDir))) - i += copy(dAtA[i:], m.DestinationDir) - return i, nil -} - -func (m *JenkinsPipelineBuildStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JenkinsPipelineBuildStrategy) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.JenkinsfilePath))) - i += copy(dAtA[i:], m.JenkinsfilePath) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Jenkinsfile))) - i += copy(dAtA[i:], m.Jenkinsfile) - if len(m.Env) > 0 { - for _, msg := range m.Env { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m OptionalNodeSelector) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m OptionalNodeSelector) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m) > 0 { - keysForItems := make([]string, 0, len(m)) - for k := range m { - keysForItems = append(keysForItems, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForItems) - for _, k := range keysForItems { - dAtA[i] = 0xa - i++ - v := m[string(k)] - mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) - } - } - return i, nil -} - -func (m *ProxyConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ProxyConfig) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.HTTPProxy != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.HTTPProxy))) - i += copy(dAtA[i:], *m.HTTPProxy) - } - if m.HTTPSProxy != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.HTTPSProxy))) - i += copy(dAtA[i:], *m.HTTPSProxy) - } - if m.NoProxy != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.NoProxy))) - i += copy(dAtA[i:], *m.NoProxy) - } - return i, nil -} - -func (m *SecretBuildSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SecretBuildSource) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Secret.Size())) - n71, err := m.Secret.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n71 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DestinationDir))) - i += copy(dAtA[i:], m.DestinationDir) - return i, nil -} - -func (m *SecretSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SecretSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.SecretSource.Size())) - n72, err := m.SecretSource.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n72 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MountPath))) - i += copy(dAtA[i:], m.MountPath) - return i, nil -} - -func (m *SourceBuildStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SourceBuildStrategy) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.From.Size())) - n73, err := m.From.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n73 - if m.PullSecret != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.PullSecret.Size())) - n74, err := m.PullSecret.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n74 - } - if len(m.Env) > 0 { - for _, msg := range m.Env { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Scripts))) - i += copy(dAtA[i:], m.Scripts) - if m.Incremental != nil { - dAtA[i] = 0x28 - i++ - if *m.Incremental { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - dAtA[i] = 0x30 - i++ - if m.ForcePull { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if m.RuntimeImage != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.RuntimeImage.Size())) - n75, err := m.RuntimeImage.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n75 - } - if len(m.RuntimeArtifacts) > 0 { - for _, msg := range m.RuntimeArtifacts { - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *SourceControlUser) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SourceControlUser) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Email))) - i += copy(dAtA[i:], m.Email) - return i, nil -} - -func (m *SourceRevision) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SourceRevision) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - if m.Git != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Git.Size())) - n76, err := m.Git.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n76 - } - return i, nil -} - -func (m *SourceStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SourceStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Incremental != nil { - dAtA[i] = 0x8 - i++ - if *m.Incremental { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *StageInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StageInfo) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.StartTime.Size())) - n77, err := m.StartTime.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n77 - dAtA[i] = 0x18 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.DurationMilliseconds)) - if len(m.Steps) > 0 { - for _, msg := range m.Steps { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *StepInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StepInfo) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.StartTime.Size())) - n78, err := m.StartTime.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n78 - dAtA[i] = 0x18 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.DurationMilliseconds)) - return i, nil -} - -func (m *WebHookTrigger) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WebHookTrigger) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Secret))) - i += copy(dAtA[i:], m.Secret) - dAtA[i] = 0x10 - i++ - if m.AllowEnv { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - return i, nil -} - -func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - dAtA[offset+4] = uint8(v >> 32) - dAtA[offset+5] = uint8(v >> 40) - dAtA[offset+6] = uint8(v >> 48) - dAtA[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *BinaryBuildRequestOptions) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.AsFile) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Commit) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.AuthorName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.AuthorEmail) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.CommitterName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.CommitterEmail) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *BinaryBuildSource) Size() (n int) { - var l int - _ = l - l = len(m.AsFile) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *BitbucketWebHookCause) Size() (n int) { - var l int - _ = l - l = m.CommonWebHookCause.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Build) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *BuildConfig) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *BuildConfigList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *BuildConfigSpec) Size() (n int) { - var l int - _ = l - if len(m.Triggers) > 0 { - for _, e := range m.Triggers { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.RunPolicy) - n += 1 + l + sovGenerated(uint64(l)) - l = m.CommonSpec.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.SuccessfulBuildsHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.SuccessfulBuildsHistoryLimit)) - } - if m.FailedBuildsHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.FailedBuildsHistoryLimit)) - } - return n -} - -func (m *BuildConfigStatus) Size() (n int) { - var l int - _ = l - n += 1 + sovGenerated(uint64(m.LastVersion)) - return n -} - -func (m *BuildList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *BuildLog) Size() (n int) { - var l int - _ = l - return n -} - -func (m *BuildLogOptions) Size() (n int) { - var l int - _ = l - l = len(m.Container) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - n += 2 - if m.SinceSeconds != nil { - n += 1 + sovGenerated(uint64(*m.SinceSeconds)) - } - if m.SinceTime != nil { - l = m.SinceTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - if m.TailLines != nil { - n += 1 + sovGenerated(uint64(*m.TailLines)) - } - if m.LimitBytes != nil { - n += 1 + sovGenerated(uint64(*m.LimitBytes)) - } - n += 2 - if m.Version != nil { - n += 1 + sovGenerated(uint64(*m.Version)) - } - return n -} - -func (m *BuildOutput) Size() (n int) { - var l int - _ = l - if m.To != nil { - l = m.To.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.PushSecret != nil { - l = m.PushSecret.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.ImageLabels) > 0 { - for _, e := range m.ImageLabels { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *BuildPostCommitSpec) Size() (n int) { - var l int - _ = l - if len(m.Command) > 0 { - for _, s := range m.Command { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Args) > 0 { - for _, s := range m.Args { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.Script) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *BuildRequest) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Revision != nil { - l = m.Revision.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.TriggeredByImage != nil { - l = m.TriggeredByImage.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.From != nil { - l = m.From.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Binary != nil { - l = m.Binary.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.LastVersion != nil { - n += 1 + sovGenerated(uint64(*m.LastVersion)) - } - if len(m.Env) > 0 { - for _, e := range m.Env { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.TriggeredBy) > 0 { - for _, e := range m.TriggeredBy { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.DockerStrategyOptions != nil { - l = m.DockerStrategyOptions.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.SourceStrategyOptions != nil { - l = m.SourceStrategyOptions.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *BuildSource) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.Binary != nil { - l = m.Binary.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Dockerfile != nil { - l = len(*m.Dockerfile) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Git != nil { - l = m.Git.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Images) > 0 { - for _, e := range m.Images { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.ContextDir) - n += 1 + l + sovGenerated(uint64(l)) - if m.SourceSecret != nil { - l = m.SourceSecret.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Secrets) > 0 { - for _, e := range m.Secrets { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *BuildSpec) Size() (n int) { - var l int - _ = l - l = m.CommonSpec.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.TriggeredBy) > 0 { - for _, e := range m.TriggeredBy { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *BuildStatus) Size() (n int) { - var l int - _ = l - l = len(m.Phase) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - if m.StartTimestamp != nil { - l = m.StartTimestamp.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.CompletionTimestamp != nil { - l = m.CompletionTimestamp.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 1 + sovGenerated(uint64(m.Duration)) - l = len(m.OutputDockerImageReference) - n += 1 + l + sovGenerated(uint64(l)) - if m.Config != nil { - l = m.Config.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Output.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Stages) > 0 { - for _, e := range m.Stages { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.LogSnippet) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *BuildStatusOutput) Size() (n int) { - var l int - _ = l - if m.To != nil { - l = m.To.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *BuildStatusOutputTo) Size() (n int) { - var l int - _ = l - l = len(m.ImageDigest) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *BuildStrategy) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.DockerStrategy != nil { - l = m.DockerStrategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.SourceStrategy != nil { - l = m.SourceStrategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.CustomStrategy != nil { - l = m.CustomStrategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.JenkinsPipelineStrategy != nil { - l = m.JenkinsPipelineStrategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *BuildTriggerCause) Size() (n int) { - var l int - _ = l - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - if m.GenericWebHook != nil { - l = m.GenericWebHook.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.GitHubWebHook != nil { - l = m.GitHubWebHook.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ImageChangeBuild != nil { - l = m.ImageChangeBuild.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.GitLabWebHook != nil { - l = m.GitLabWebHook.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.BitbucketWebHook != nil { - l = m.BitbucketWebHook.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *BuildTriggerPolicy) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.GitHubWebHook != nil { - l = m.GitHubWebHook.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.GenericWebHook != nil { - l = m.GenericWebHook.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ImageChange != nil { - l = m.ImageChange.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.GitLabWebHook != nil { - l = m.GitLabWebHook.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.BitbucketWebHook != nil { - l = m.BitbucketWebHook.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *CommonSpec) Size() (n int) { - var l int - _ = l - l = len(m.ServiceAccount) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Source.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Revision != nil { - l = m.Revision.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Strategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Output.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Resources.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.PostCommit.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.CompletionDeadlineSeconds != nil { - n += 1 + sovGenerated(uint64(*m.CompletionDeadlineSeconds)) - } - if m.NodeSelector != nil { - l = m.NodeSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *CommonWebHookCause) Size() (n int) { - var l int - _ = l - if m.Revision != nil { - l = m.Revision.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.Secret) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *CustomBuildStrategy) Size() (n int) { - var l int - _ = l - l = m.From.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.PullSecret != nil { - l = m.PullSecret.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Env) > 0 { - for _, e := range m.Env { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 2 - n += 2 - if len(m.Secrets) > 0 { - for _, e := range m.Secrets { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.BuildAPIVersion) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DockerBuildStrategy) Size() (n int) { - var l int - _ = l - if m.From != nil { - l = m.From.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.PullSecret != nil { - l = m.PullSecret.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - if len(m.Env) > 0 { - for _, e := range m.Env { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 2 - l = len(m.DockerfilePath) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.BuildArgs) > 0 { - for _, e := range m.BuildArgs { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.ImageOptimizationPolicy != nil { - l = len(*m.ImageOptimizationPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *DockerStrategyOptions) Size() (n int) { - var l int - _ = l - if len(m.BuildArgs) > 0 { - for _, e := range m.BuildArgs { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.NoCache != nil { - n += 2 - } - return n -} - -func (m *GenericWebHookCause) Size() (n int) { - var l int - _ = l - if m.Revision != nil { - l = m.Revision.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.Secret) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *GenericWebHookEvent) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.Git != nil { - l = m.Git.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Env) > 0 { - for _, e := range m.Env { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.DockerStrategyOptions != nil { - l = m.DockerStrategyOptions.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *GitBuildSource) Size() (n int) { - var l int - _ = l - l = len(m.URI) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Ref) - n += 1 + l + sovGenerated(uint64(l)) - l = m.ProxyConfig.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *GitHubWebHookCause) Size() (n int) { - var l int - _ = l - if m.Revision != nil { - l = m.Revision.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.Secret) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *GitInfo) Size() (n int) { - var l int - _ = l - l = m.GitBuildSource.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.GitSourceRevision.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *GitLabWebHookCause) Size() (n int) { - var l int - _ = l - l = m.CommonWebHookCause.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *GitSourceRevision) Size() (n int) { - var l int - _ = l - l = len(m.Commit) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Author.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Committer.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageChangeCause) Size() (n int) { - var l int - _ = l - l = len(m.ImageID) - n += 1 + l + sovGenerated(uint64(l)) - if m.FromRef != nil { - l = m.FromRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ImageChangeTrigger) Size() (n int) { - var l int - _ = l - l = len(m.LastTriggeredImageID) - n += 1 + l + sovGenerated(uint64(l)) - if m.From != nil { - l = m.From.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ImageLabel) Size() (n int) { - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Value) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageSource) Size() (n int) { - var l int - _ = l - l = m.From.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Paths) > 0 { - for _, e := range m.Paths { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.PullSecret != nil { - l = m.PullSecret.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ImageSourcePath) Size() (n int) { - var l int - _ = l - l = len(m.SourcePath) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DestinationDir) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *JenkinsPipelineBuildStrategy) Size() (n int) { - var l int - _ = l - l = len(m.JenkinsfilePath) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Jenkinsfile) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Env) > 0 { - for _, e := range m.Env { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m OptionalNodeSelector) Size() (n int) { - var l int - _ = l - if len(m) > 0 { - for k, v := range m { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *ProxyConfig) Size() (n int) { - var l int - _ = l - if m.HTTPProxy != nil { - l = len(*m.HTTPProxy) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.HTTPSProxy != nil { - l = len(*m.HTTPSProxy) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NoProxy != nil { - l = len(*m.NoProxy) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *SecretBuildSource) Size() (n int) { - var l int - _ = l - l = m.Secret.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DestinationDir) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SecretSpec) Size() (n int) { - var l int - _ = l - l = m.SecretSource.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.MountPath) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SourceBuildStrategy) Size() (n int) { - var l int - _ = l - l = m.From.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.PullSecret != nil { - l = m.PullSecret.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Env) > 0 { - for _, e := range m.Env { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.Scripts) - n += 1 + l + sovGenerated(uint64(l)) - if m.Incremental != nil { - n += 2 - } - n += 2 - if m.RuntimeImage != nil { - l = m.RuntimeImage.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.RuntimeArtifacts) > 0 { - for _, e := range m.RuntimeArtifacts { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *SourceControlUser) Size() (n int) { - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Email) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SourceRevision) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.Git != nil { - l = m.Git.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *SourceStrategyOptions) Size() (n int) { - var l int - _ = l - if m.Incremental != nil { - n += 2 - } - return n -} - -func (m *StageInfo) Size() (n int) { - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.StartTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.DurationMilliseconds)) - if len(m.Steps) > 0 { - for _, e := range m.Steps { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *StepInfo) Size() (n int) { - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.StartTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.DurationMilliseconds)) - return n -} - -func (m *WebHookTrigger) Size() (n int) { - var l int - _ = l - l = len(m.Secret) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func sovGenerated(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *BinaryBuildRequestOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BinaryBuildRequestOptions{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `AsFile:` + fmt.Sprintf("%v", this.AsFile) + `,`, - `Commit:` + fmt.Sprintf("%v", this.Commit) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `AuthorName:` + fmt.Sprintf("%v", this.AuthorName) + `,`, - `AuthorEmail:` + fmt.Sprintf("%v", this.AuthorEmail) + `,`, - `CommitterName:` + fmt.Sprintf("%v", this.CommitterName) + `,`, - `CommitterEmail:` + fmt.Sprintf("%v", this.CommitterEmail) + `,`, - `}`, - }, "") - return s -} -func (this *BinaryBuildSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BinaryBuildSource{`, - `AsFile:` + fmt.Sprintf("%v", this.AsFile) + `,`, - `}`, - }, "") - return s -} -func (this *BitbucketWebHookCause) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BitbucketWebHookCause{`, - `CommonWebHookCause:` + strings.Replace(strings.Replace(this.CommonWebHookCause.String(), "CommonWebHookCause", "CommonWebHookCause", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *Build) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Build{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "BuildSpec", "BuildSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "BuildStatus", "BuildStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *BuildConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildConfig{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "BuildConfigSpec", "BuildConfigSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "BuildConfigStatus", "BuildConfigStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *BuildConfigList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildConfigList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "BuildConfig", "BuildConfig", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *BuildConfigSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildConfigSpec{`, - `Triggers:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Triggers), "BuildTriggerPolicy", "BuildTriggerPolicy", 1), `&`, ``, 1) + `,`, - `RunPolicy:` + fmt.Sprintf("%v", this.RunPolicy) + `,`, - `CommonSpec:` + strings.Replace(strings.Replace(this.CommonSpec.String(), "CommonSpec", "CommonSpec", 1), `&`, ``, 1) + `,`, - `SuccessfulBuildsHistoryLimit:` + valueToStringGenerated(this.SuccessfulBuildsHistoryLimit) + `,`, - `FailedBuildsHistoryLimit:` + valueToStringGenerated(this.FailedBuildsHistoryLimit) + `,`, - `}`, - }, "") - return s -} -func (this *BuildConfigStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildConfigStatus{`, - `LastVersion:` + fmt.Sprintf("%v", this.LastVersion) + `,`, - `}`, - }, "") - return s -} -func (this *BuildList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Build", "Build", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *BuildLog) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildLog{`, - `}`, - }, "") - return s -} -func (this *BuildLogOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildLogOptions{`, - `Container:` + fmt.Sprintf("%v", this.Container) + `,`, - `Follow:` + fmt.Sprintf("%v", this.Follow) + `,`, - `Previous:` + fmt.Sprintf("%v", this.Previous) + `,`, - `SinceSeconds:` + valueToStringGenerated(this.SinceSeconds) + `,`, - `SinceTime:` + strings.Replace(fmt.Sprintf("%v", this.SinceTime), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1) + `,`, - `Timestamps:` + fmt.Sprintf("%v", this.Timestamps) + `,`, - `TailLines:` + valueToStringGenerated(this.TailLines) + `,`, - `LimitBytes:` + valueToStringGenerated(this.LimitBytes) + `,`, - `NoWait:` + fmt.Sprintf("%v", this.NoWait) + `,`, - `Version:` + valueToStringGenerated(this.Version) + `,`, - `}`, - }, "") - return s -} -func (this *BuildOutput) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildOutput{`, - `To:` + strings.Replace(fmt.Sprintf("%v", this.To), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1) + `,`, - `PushSecret:` + strings.Replace(fmt.Sprintf("%v", this.PushSecret), "LocalObjectReference", "k8s_io_kubernetes_pkg_api_v1.LocalObjectReference", 1) + `,`, - `ImageLabels:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ImageLabels), "ImageLabel", "ImageLabel", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *BuildPostCommitSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildPostCommitSpec{`, - `Command:` + fmt.Sprintf("%v", this.Command) + `,`, - `Args:` + fmt.Sprintf("%v", this.Args) + `,`, - `Script:` + fmt.Sprintf("%v", this.Script) + `,`, - `}`, - }, "") - return s -} -func (this *BuildRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildRequest{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Revision:` + strings.Replace(fmt.Sprintf("%v", this.Revision), "SourceRevision", "SourceRevision", 1) + `,`, - `TriggeredByImage:` + strings.Replace(fmt.Sprintf("%v", this.TriggeredByImage), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1) + `,`, - `From:` + strings.Replace(fmt.Sprintf("%v", this.From), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1) + `,`, - `Binary:` + strings.Replace(fmt.Sprintf("%v", this.Binary), "BinaryBuildSource", "BinaryBuildSource", 1) + `,`, - `LastVersion:` + valueToStringGenerated(this.LastVersion) + `,`, - `Env:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Env), "EnvVar", "k8s_io_kubernetes_pkg_api_v1.EnvVar", 1), `&`, ``, 1) + `,`, - `TriggeredBy:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TriggeredBy), "BuildTriggerCause", "BuildTriggerCause", 1), `&`, ``, 1) + `,`, - `DockerStrategyOptions:` + strings.Replace(fmt.Sprintf("%v", this.DockerStrategyOptions), "DockerStrategyOptions", "DockerStrategyOptions", 1) + `,`, - `SourceStrategyOptions:` + strings.Replace(fmt.Sprintf("%v", this.SourceStrategyOptions), "SourceStrategyOptions", "SourceStrategyOptions", 1) + `,`, - `}`, - }, "") - return s -} -func (this *BuildSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildSource{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Binary:` + strings.Replace(fmt.Sprintf("%v", this.Binary), "BinaryBuildSource", "BinaryBuildSource", 1) + `,`, - `Dockerfile:` + valueToStringGenerated(this.Dockerfile) + `,`, - `Git:` + strings.Replace(fmt.Sprintf("%v", this.Git), "GitBuildSource", "GitBuildSource", 1) + `,`, - `Images:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Images), "ImageSource", "ImageSource", 1), `&`, ``, 1) + `,`, - `ContextDir:` + fmt.Sprintf("%v", this.ContextDir) + `,`, - `SourceSecret:` + strings.Replace(fmt.Sprintf("%v", this.SourceSecret), "LocalObjectReference", "k8s_io_kubernetes_pkg_api_v1.LocalObjectReference", 1) + `,`, - `Secrets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Secrets), "SecretBuildSource", "SecretBuildSource", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *BuildSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildSpec{`, - `CommonSpec:` + strings.Replace(strings.Replace(this.CommonSpec.String(), "CommonSpec", "CommonSpec", 1), `&`, ``, 1) + `,`, - `TriggeredBy:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TriggeredBy), "BuildTriggerCause", "BuildTriggerCause", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *BuildStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildStatus{`, - `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, - `Cancelled:` + fmt.Sprintf("%v", this.Cancelled) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `StartTimestamp:` + strings.Replace(fmt.Sprintf("%v", this.StartTimestamp), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1) + `,`, - `CompletionTimestamp:` + strings.Replace(fmt.Sprintf("%v", this.CompletionTimestamp), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1) + `,`, - `Duration:` + fmt.Sprintf("%v", this.Duration) + `,`, - `OutputDockerImageReference:` + fmt.Sprintf("%v", this.OutputDockerImageReference) + `,`, - `Config:` + strings.Replace(fmt.Sprintf("%v", this.Config), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1) + `,`, - `Output:` + strings.Replace(strings.Replace(this.Output.String(), "BuildStatusOutput", "BuildStatusOutput", 1), `&`, ``, 1) + `,`, - `Stages:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Stages), "StageInfo", "StageInfo", 1), `&`, ``, 1) + `,`, - `LogSnippet:` + fmt.Sprintf("%v", this.LogSnippet) + `,`, - `}`, - }, "") - return s -} -func (this *BuildStatusOutput) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildStatusOutput{`, - `To:` + strings.Replace(fmt.Sprintf("%v", this.To), "BuildStatusOutputTo", "BuildStatusOutputTo", 1) + `,`, - `}`, - }, "") - return s -} -func (this *BuildStatusOutputTo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildStatusOutputTo{`, - `ImageDigest:` + fmt.Sprintf("%v", this.ImageDigest) + `,`, - `}`, - }, "") - return s -} -func (this *BuildStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildStrategy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `DockerStrategy:` + strings.Replace(fmt.Sprintf("%v", this.DockerStrategy), "DockerBuildStrategy", "DockerBuildStrategy", 1) + `,`, - `SourceStrategy:` + strings.Replace(fmt.Sprintf("%v", this.SourceStrategy), "SourceBuildStrategy", "SourceBuildStrategy", 1) + `,`, - `CustomStrategy:` + strings.Replace(fmt.Sprintf("%v", this.CustomStrategy), "CustomBuildStrategy", "CustomBuildStrategy", 1) + `,`, - `JenkinsPipelineStrategy:` + strings.Replace(fmt.Sprintf("%v", this.JenkinsPipelineStrategy), "JenkinsPipelineBuildStrategy", "JenkinsPipelineBuildStrategy", 1) + `,`, - `}`, - }, "") - return s -} -func (this *BuildTriggerCause) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildTriggerCause{`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `GenericWebHook:` + strings.Replace(fmt.Sprintf("%v", this.GenericWebHook), "GenericWebHookCause", "GenericWebHookCause", 1) + `,`, - `GitHubWebHook:` + strings.Replace(fmt.Sprintf("%v", this.GitHubWebHook), "GitHubWebHookCause", "GitHubWebHookCause", 1) + `,`, - `ImageChangeBuild:` + strings.Replace(fmt.Sprintf("%v", this.ImageChangeBuild), "ImageChangeCause", "ImageChangeCause", 1) + `,`, - `GitLabWebHook:` + strings.Replace(fmt.Sprintf("%v", this.GitLabWebHook), "GitLabWebHookCause", "GitLabWebHookCause", 1) + `,`, - `BitbucketWebHook:` + strings.Replace(fmt.Sprintf("%v", this.BitbucketWebHook), "BitbucketWebHookCause", "BitbucketWebHookCause", 1) + `,`, - `}`, - }, "") - return s -} -func (this *BuildTriggerPolicy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BuildTriggerPolicy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `GitHubWebHook:` + strings.Replace(fmt.Sprintf("%v", this.GitHubWebHook), "WebHookTrigger", "WebHookTrigger", 1) + `,`, - `GenericWebHook:` + strings.Replace(fmt.Sprintf("%v", this.GenericWebHook), "WebHookTrigger", "WebHookTrigger", 1) + `,`, - `ImageChange:` + strings.Replace(fmt.Sprintf("%v", this.ImageChange), "ImageChangeTrigger", "ImageChangeTrigger", 1) + `,`, - `GitLabWebHook:` + strings.Replace(fmt.Sprintf("%v", this.GitLabWebHook), "WebHookTrigger", "WebHookTrigger", 1) + `,`, - `BitbucketWebHook:` + strings.Replace(fmt.Sprintf("%v", this.BitbucketWebHook), "WebHookTrigger", "WebHookTrigger", 1) + `,`, - `}`, - }, "") - return s -} -func (this *CommonSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CommonSpec{`, - `ServiceAccount:` + fmt.Sprintf("%v", this.ServiceAccount) + `,`, - `Source:` + strings.Replace(strings.Replace(this.Source.String(), "BuildSource", "BuildSource", 1), `&`, ``, 1) + `,`, - `Revision:` + strings.Replace(fmt.Sprintf("%v", this.Revision), "SourceRevision", "SourceRevision", 1) + `,`, - `Strategy:` + strings.Replace(strings.Replace(this.Strategy.String(), "BuildStrategy", "BuildStrategy", 1), `&`, ``, 1) + `,`, - `Output:` + strings.Replace(strings.Replace(this.Output.String(), "BuildOutput", "BuildOutput", 1), `&`, ``, 1) + `,`, - `Resources:` + strings.Replace(strings.Replace(this.Resources.String(), "ResourceRequirements", "k8s_io_kubernetes_pkg_api_v1.ResourceRequirements", 1), `&`, ``, 1) + `,`, - `PostCommit:` + strings.Replace(strings.Replace(this.PostCommit.String(), "BuildPostCommitSpec", "BuildPostCommitSpec", 1), `&`, ``, 1) + `,`, - `CompletionDeadlineSeconds:` + valueToStringGenerated(this.CompletionDeadlineSeconds) + `,`, - `NodeSelector:` + strings.Replace(fmt.Sprintf("%v", this.NodeSelector), "OptionalNodeSelector", "OptionalNodeSelector", 1) + `,`, - `}`, - }, "") - return s -} -func (this *CommonWebHookCause) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CommonWebHookCause{`, - `Revision:` + strings.Replace(fmt.Sprintf("%v", this.Revision), "SourceRevision", "SourceRevision", 1) + `,`, - `Secret:` + fmt.Sprintf("%v", this.Secret) + `,`, - `}`, - }, "") - return s -} -func (this *CustomBuildStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CustomBuildStrategy{`, - `From:` + strings.Replace(strings.Replace(this.From.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `PullSecret:` + strings.Replace(fmt.Sprintf("%v", this.PullSecret), "LocalObjectReference", "k8s_io_kubernetes_pkg_api_v1.LocalObjectReference", 1) + `,`, - `Env:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Env), "EnvVar", "k8s_io_kubernetes_pkg_api_v1.EnvVar", 1), `&`, ``, 1) + `,`, - `ExposeDockerSocket:` + fmt.Sprintf("%v", this.ExposeDockerSocket) + `,`, - `ForcePull:` + fmt.Sprintf("%v", this.ForcePull) + `,`, - `Secrets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Secrets), "SecretSpec", "SecretSpec", 1), `&`, ``, 1) + `,`, - `BuildAPIVersion:` + fmt.Sprintf("%v", this.BuildAPIVersion) + `,`, - `}`, - }, "") - return s -} -func (this *DockerBuildStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DockerBuildStrategy{`, - `From:` + strings.Replace(fmt.Sprintf("%v", this.From), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1) + `,`, - `PullSecret:` + strings.Replace(fmt.Sprintf("%v", this.PullSecret), "LocalObjectReference", "k8s_io_kubernetes_pkg_api_v1.LocalObjectReference", 1) + `,`, - `NoCache:` + fmt.Sprintf("%v", this.NoCache) + `,`, - `Env:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Env), "EnvVar", "k8s_io_kubernetes_pkg_api_v1.EnvVar", 1), `&`, ``, 1) + `,`, - `ForcePull:` + fmt.Sprintf("%v", this.ForcePull) + `,`, - `DockerfilePath:` + fmt.Sprintf("%v", this.DockerfilePath) + `,`, - `BuildArgs:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.BuildArgs), "EnvVar", "k8s_io_kubernetes_pkg_api_v1.EnvVar", 1), `&`, ``, 1) + `,`, - `ImageOptimizationPolicy:` + valueToStringGenerated(this.ImageOptimizationPolicy) + `,`, - `}`, - }, "") - return s -} -func (this *DockerStrategyOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DockerStrategyOptions{`, - `BuildArgs:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.BuildArgs), "EnvVar", "k8s_io_kubernetes_pkg_api_v1.EnvVar", 1), `&`, ``, 1) + `,`, - `NoCache:` + valueToStringGenerated(this.NoCache) + `,`, - `}`, - }, "") - return s -} -func (this *GenericWebHookCause) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GenericWebHookCause{`, - `Revision:` + strings.Replace(fmt.Sprintf("%v", this.Revision), "SourceRevision", "SourceRevision", 1) + `,`, - `Secret:` + fmt.Sprintf("%v", this.Secret) + `,`, - `}`, - }, "") - return s -} -func (this *GenericWebHookEvent) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GenericWebHookEvent{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Git:` + strings.Replace(fmt.Sprintf("%v", this.Git), "GitInfo", "GitInfo", 1) + `,`, - `Env:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Env), "EnvVar", "k8s_io_kubernetes_pkg_api_v1.EnvVar", 1), `&`, ``, 1) + `,`, - `DockerStrategyOptions:` + strings.Replace(fmt.Sprintf("%v", this.DockerStrategyOptions), "DockerStrategyOptions", "DockerStrategyOptions", 1) + `,`, - `}`, - }, "") - return s -} -func (this *GitBuildSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GitBuildSource{`, - `URI:` + fmt.Sprintf("%v", this.URI) + `,`, - `Ref:` + fmt.Sprintf("%v", this.Ref) + `,`, - `ProxyConfig:` + strings.Replace(strings.Replace(this.ProxyConfig.String(), "ProxyConfig", "ProxyConfig", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *GitHubWebHookCause) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GitHubWebHookCause{`, - `Revision:` + strings.Replace(fmt.Sprintf("%v", this.Revision), "SourceRevision", "SourceRevision", 1) + `,`, - `Secret:` + fmt.Sprintf("%v", this.Secret) + `,`, - `}`, - }, "") - return s -} -func (this *GitInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GitInfo{`, - `GitBuildSource:` + strings.Replace(strings.Replace(this.GitBuildSource.String(), "GitBuildSource", "GitBuildSource", 1), `&`, ``, 1) + `,`, - `GitSourceRevision:` + strings.Replace(strings.Replace(this.GitSourceRevision.String(), "GitSourceRevision", "GitSourceRevision", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *GitLabWebHookCause) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GitLabWebHookCause{`, - `CommonWebHookCause:` + strings.Replace(strings.Replace(this.CommonWebHookCause.String(), "CommonWebHookCause", "CommonWebHookCause", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *GitSourceRevision) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GitSourceRevision{`, - `Commit:` + fmt.Sprintf("%v", this.Commit) + `,`, - `Author:` + strings.Replace(strings.Replace(this.Author.String(), "SourceControlUser", "SourceControlUser", 1), `&`, ``, 1) + `,`, - `Committer:` + strings.Replace(strings.Replace(this.Committer.String(), "SourceControlUser", "SourceControlUser", 1), `&`, ``, 1) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *ImageChangeCause) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageChangeCause{`, - `ImageID:` + fmt.Sprintf("%v", this.ImageID) + `,`, - `FromRef:` + strings.Replace(fmt.Sprintf("%v", this.FromRef), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageChangeTrigger) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageChangeTrigger{`, - `LastTriggeredImageID:` + fmt.Sprintf("%v", this.LastTriggeredImageID) + `,`, - `From:` + strings.Replace(fmt.Sprintf("%v", this.From), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageLabel) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageLabel{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Value:` + fmt.Sprintf("%v", this.Value) + `,`, - `}`, - }, "") - return s -} -func (this *ImageSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageSource{`, - `From:` + strings.Replace(strings.Replace(this.From.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `Paths:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Paths), "ImageSourcePath", "ImageSourcePath", 1), `&`, ``, 1) + `,`, - `PullSecret:` + strings.Replace(fmt.Sprintf("%v", this.PullSecret), "LocalObjectReference", "k8s_io_kubernetes_pkg_api_v1.LocalObjectReference", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageSourcePath) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageSourcePath{`, - `SourcePath:` + fmt.Sprintf("%v", this.SourcePath) + `,`, - `DestinationDir:` + fmt.Sprintf("%v", this.DestinationDir) + `,`, - `}`, - }, "") - return s -} -func (this *JenkinsPipelineBuildStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&JenkinsPipelineBuildStrategy{`, - `JenkinsfilePath:` + fmt.Sprintf("%v", this.JenkinsfilePath) + `,`, - `Jenkinsfile:` + fmt.Sprintf("%v", this.Jenkinsfile) + `,`, - `Env:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Env), "EnvVar", "k8s_io_kubernetes_pkg_api_v1.EnvVar", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ProxyConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ProxyConfig{`, - `HTTPProxy:` + valueToStringGenerated(this.HTTPProxy) + `,`, - `HTTPSProxy:` + valueToStringGenerated(this.HTTPSProxy) + `,`, - `NoProxy:` + valueToStringGenerated(this.NoProxy) + `,`, - `}`, - }, "") - return s -} -func (this *SecretBuildSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SecretBuildSource{`, - `Secret:` + strings.Replace(strings.Replace(this.Secret.String(), "LocalObjectReference", "k8s_io_kubernetes_pkg_api_v1.LocalObjectReference", 1), `&`, ``, 1) + `,`, - `DestinationDir:` + fmt.Sprintf("%v", this.DestinationDir) + `,`, - `}`, - }, "") - return s -} -func (this *SecretSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SecretSpec{`, - `SecretSource:` + strings.Replace(strings.Replace(this.SecretSource.String(), "LocalObjectReference", "k8s_io_kubernetes_pkg_api_v1.LocalObjectReference", 1), `&`, ``, 1) + `,`, - `MountPath:` + fmt.Sprintf("%v", this.MountPath) + `,`, - `}`, - }, "") - return s -} -func (this *SourceBuildStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SourceBuildStrategy{`, - `From:` + strings.Replace(strings.Replace(this.From.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `PullSecret:` + strings.Replace(fmt.Sprintf("%v", this.PullSecret), "LocalObjectReference", "k8s_io_kubernetes_pkg_api_v1.LocalObjectReference", 1) + `,`, - `Env:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Env), "EnvVar", "k8s_io_kubernetes_pkg_api_v1.EnvVar", 1), `&`, ``, 1) + `,`, - `Scripts:` + fmt.Sprintf("%v", this.Scripts) + `,`, - `Incremental:` + valueToStringGenerated(this.Incremental) + `,`, - `ForcePull:` + fmt.Sprintf("%v", this.ForcePull) + `,`, - `RuntimeImage:` + strings.Replace(fmt.Sprintf("%v", this.RuntimeImage), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1) + `,`, - `RuntimeArtifacts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RuntimeArtifacts), "ImageSourcePath", "ImageSourcePath", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *SourceControlUser) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SourceControlUser{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Email:` + fmt.Sprintf("%v", this.Email) + `,`, - `}`, - }, "") - return s -} -func (this *SourceRevision) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SourceRevision{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Git:` + strings.Replace(fmt.Sprintf("%v", this.Git), "GitSourceRevision", "GitSourceRevision", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SourceStrategyOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SourceStrategyOptions{`, - `Incremental:` + valueToStringGenerated(this.Incremental) + `,`, - `}`, - }, "") - return s -} -func (this *StageInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StageInfo{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `StartTime:` + strings.Replace(strings.Replace(this.StartTime.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `DurationMilliseconds:` + fmt.Sprintf("%v", this.DurationMilliseconds) + `,`, - `Steps:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Steps), "StepInfo", "StepInfo", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *StepInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StepInfo{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `StartTime:` + strings.Replace(strings.Replace(this.StartTime.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `DurationMilliseconds:` + fmt.Sprintf("%v", this.DurationMilliseconds) + `,`, - `}`, - }, "") - return s -} -func (this *WebHookTrigger) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WebHookTrigger{`, - `Secret:` + fmt.Sprintf("%v", this.Secret) + `,`, - `AllowEnv:` + fmt.Sprintf("%v", this.AllowEnv) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *BinaryBuildRequestOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BinaryBuildRequestOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BinaryBuildRequestOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsFile", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AsFile = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Commit = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthorName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AuthorName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthorEmail", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AuthorEmail = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommitterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CommitterName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommitterEmail", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CommitterEmail = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BinaryBuildSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BinaryBuildSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BinaryBuildSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsFile", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AsFile = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BitbucketWebHookCause) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BitbucketWebHookCause: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BitbucketWebHookCause: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommonWebHookCause", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CommonWebHookCause.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Build) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Build: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Build: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildConfigList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildConfigList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildConfigList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, BuildConfig{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildConfigSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildConfigSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildConfigSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Triggers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Triggers = append(m.Triggers, BuildTriggerPolicy{}) - if err := m.Triggers[len(m.Triggers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunPolicy = BuildRunPolicy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommonSpec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CommonSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SuccessfulBuildsHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.SuccessfulBuildsHistoryLimit = &v - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FailedBuildsHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.FailedBuildsHistoryLimit = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildConfigStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildConfigStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildConfigStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastVersion", wireType) - } - m.LastVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastVersion |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Build{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildLog) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildLog: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildLog: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildLogOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildLogOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildLogOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Container = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Follow", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Follow = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Previous", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Previous = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SinceSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.SinceSeconds = &v - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SinceTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SinceTime == nil { - m.SinceTime = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{} - } - if err := m.SinceTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamps", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Timestamps = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TailLines", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.TailLines = &v - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LimitBytes", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.LimitBytes = &v - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NoWait", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.NoWait = bool(v != 0) - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Version = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildOutput) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildOutput: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildOutput: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.To == nil { - m.To = &k8s_io_kubernetes_pkg_api_v1.ObjectReference{} - } - if err := m.To.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PushSecret", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PushSecret == nil { - m.PushSecret = &k8s_io_kubernetes_pkg_api_v1.LocalObjectReference{} - } - if err := m.PushSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImageLabels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ImageLabels = append(m.ImageLabels, ImageLabel{}) - if err := m.ImageLabels[len(m.ImageLabels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildPostCommitSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildPostCommitSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildPostCommitSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Command = append(m.Command, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Script", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Script = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Revision == nil { - m.Revision = &SourceRevision{} - } - if err := m.Revision.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TriggeredByImage", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TriggeredByImage == nil { - m.TriggeredByImage = &k8s_io_kubernetes_pkg_api_v1.ObjectReference{} - } - if err := m.TriggeredByImage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.From == nil { - m.From = &k8s_io_kubernetes_pkg_api_v1.ObjectReference{} - } - if err := m.From.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Binary", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Binary == nil { - m.Binary = &BinaryBuildSource{} - } - if err := m.Binary.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastVersion", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.LastVersion = &v - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Env = append(m.Env, k8s_io_kubernetes_pkg_api_v1.EnvVar{}) - if err := m.Env[len(m.Env)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TriggeredBy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TriggeredBy = append(m.TriggeredBy, BuildTriggerCause{}) - if err := m.TriggeredBy[len(m.TriggeredBy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerStrategyOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DockerStrategyOptions == nil { - m.DockerStrategyOptions = &DockerStrategyOptions{} - } - if err := m.DockerStrategyOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceStrategyOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SourceStrategyOptions == nil { - m.SourceStrategyOptions = &SourceStrategyOptions{} - } - if err := m.SourceStrategyOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = BuildSourceType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Binary", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Binary == nil { - m.Binary = &BinaryBuildSource{} - } - if err := m.Binary.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dockerfile", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Dockerfile = &s - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Git", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Git == nil { - m.Git = &GitBuildSource{} - } - if err := m.Git.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Images", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Images = append(m.Images, ImageSource{}) - if err := m.Images[len(m.Images)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContextDir", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContextDir = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceSecret", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SourceSecret == nil { - m.SourceSecret = &k8s_io_kubernetes_pkg_api_v1.LocalObjectReference{} - } - if err := m.SourceSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secrets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Secrets = append(m.Secrets, SecretBuildSource{}) - if err := m.Secrets[len(m.Secrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommonSpec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CommonSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TriggeredBy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TriggeredBy = append(m.TriggeredBy, BuildTriggerCause{}) - if err := m.TriggeredBy[len(m.TriggeredBy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Phase = BuildPhase(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cancelled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Cancelled = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = StatusReason(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTimestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartTimestamp == nil { - m.StartTimestamp = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{} - } - if err := m.StartTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompletionTimestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CompletionTimestamp == nil { - m.CompletionTimestamp = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{} - } - if err := m.CompletionTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) - } - m.Duration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Duration |= (time.Duration(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OutputDockerImageReference", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OutputDockerImageReference = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Config == nil { - m.Config = &k8s_io_kubernetes_pkg_api_v1.ObjectReference{} - } - if err := m.Config.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stages", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Stages = append(m.Stages, StageInfo{}) - if err := m.Stages[len(m.Stages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LogSnippet", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LogSnippet = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildStatusOutput) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildStatusOutput: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildStatusOutput: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.To == nil { - m.To = &BuildStatusOutputTo{} - } - if err := m.To.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildStatusOutputTo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildStatusOutputTo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildStatusOutputTo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImageDigest", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ImageDigest = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = BuildStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerStrategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DockerStrategy == nil { - m.DockerStrategy = &DockerBuildStrategy{} - } - if err := m.DockerStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceStrategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SourceStrategy == nil { - m.SourceStrategy = &SourceBuildStrategy{} - } - if err := m.SourceStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CustomStrategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CustomStrategy == nil { - m.CustomStrategy = &CustomBuildStrategy{} - } - if err := m.CustomStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JenkinsPipelineStrategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.JenkinsPipelineStrategy == nil { - m.JenkinsPipelineStrategy = &JenkinsPipelineBuildStrategy{} - } - if err := m.JenkinsPipelineStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildTriggerCause) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildTriggerCause: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildTriggerCause: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GenericWebHook", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GenericWebHook == nil { - m.GenericWebHook = &GenericWebHookCause{} - } - if err := m.GenericWebHook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GitHubWebHook", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GitHubWebHook == nil { - m.GitHubWebHook = &GitHubWebHookCause{} - } - if err := m.GitHubWebHook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImageChangeBuild", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ImageChangeBuild == nil { - m.ImageChangeBuild = &ImageChangeCause{} - } - if err := m.ImageChangeBuild.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GitLabWebHook", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GitLabWebHook == nil { - m.GitLabWebHook = &GitLabWebHookCause{} - } - if err := m.GitLabWebHook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BitbucketWebHook", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.BitbucketWebHook == nil { - m.BitbucketWebHook = &BitbucketWebHookCause{} - } - if err := m.BitbucketWebHook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BuildTriggerPolicy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BuildTriggerPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BuildTriggerPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = BuildTriggerType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GitHubWebHook", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GitHubWebHook == nil { - m.GitHubWebHook = &WebHookTrigger{} - } - if err := m.GitHubWebHook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GenericWebHook", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GenericWebHook == nil { - m.GenericWebHook = &WebHookTrigger{} - } - if err := m.GenericWebHook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImageChange", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ImageChange == nil { - m.ImageChange = &ImageChangeTrigger{} - } - if err := m.ImageChange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GitLabWebHook", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GitLabWebHook == nil { - m.GitLabWebHook = &WebHookTrigger{} - } - if err := m.GitLabWebHook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BitbucketWebHook", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.BitbucketWebHook == nil { - m.BitbucketWebHook = &WebHookTrigger{} - } - if err := m.BitbucketWebHook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CommonSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CommonSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CommonSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceAccount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Revision == nil { - m.Revision = &SourceRevision{} - } - if err := m.Revision.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Strategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PostCommit", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.PostCommit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CompletionDeadlineSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.CompletionDeadlineSeconds = &v - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NodeSelector == nil { - m.NodeSelector = OptionalNodeSelector{} - } - if err := m.NodeSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CommonWebHookCause) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CommonWebHookCause: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CommonWebHookCause: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Revision == nil { - m.Revision = &SourceRevision{} - } - if err := m.Revision.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secret", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Secret = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CustomBuildStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CustomBuildStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CustomBuildStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.From.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PullSecret", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PullSecret == nil { - m.PullSecret = &k8s_io_kubernetes_pkg_api_v1.LocalObjectReference{} - } - if err := m.PullSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Env = append(m.Env, k8s_io_kubernetes_pkg_api_v1.EnvVar{}) - if err := m.Env[len(m.Env)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExposeDockerSocket", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ExposeDockerSocket = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ForcePull", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ForcePull = bool(v != 0) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secrets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Secrets = append(m.Secrets, SecretSpec{}) - if err := m.Secrets[len(m.Secrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BuildAPIVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BuildAPIVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DockerBuildStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DockerBuildStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DockerBuildStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.From == nil { - m.From = &k8s_io_kubernetes_pkg_api_v1.ObjectReference{} - } - if err := m.From.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PullSecret", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PullSecret == nil { - m.PullSecret = &k8s_io_kubernetes_pkg_api_v1.LocalObjectReference{} - } - if err := m.PullSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NoCache", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.NoCache = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Env = append(m.Env, k8s_io_kubernetes_pkg_api_v1.EnvVar{}) - if err := m.Env[len(m.Env)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ForcePull", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ForcePull = bool(v != 0) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerfilePath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DockerfilePath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BuildArgs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BuildArgs = append(m.BuildArgs, k8s_io_kubernetes_pkg_api_v1.EnvVar{}) - if err := m.BuildArgs[len(m.BuildArgs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImageOptimizationPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := ImageOptimizationPolicy(dAtA[iNdEx:postIndex]) - m.ImageOptimizationPolicy = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DockerStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DockerStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DockerStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BuildArgs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BuildArgs = append(m.BuildArgs, k8s_io_kubernetes_pkg_api_v1.EnvVar{}) - if err := m.BuildArgs[len(m.BuildArgs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NoCache", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.NoCache = &b - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GenericWebHookCause) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GenericWebHookCause: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenericWebHookCause: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Revision == nil { - m.Revision = &SourceRevision{} - } - if err := m.Revision.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secret", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Secret = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GenericWebHookEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GenericWebHookEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenericWebHookEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = BuildSourceType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Git", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Git == nil { - m.Git = &GitInfo{} - } - if err := m.Git.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Env = append(m.Env, k8s_io_kubernetes_pkg_api_v1.EnvVar{}) - if err := m.Env[len(m.Env)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerStrategyOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DockerStrategyOptions == nil { - m.DockerStrategyOptions = &DockerStrategyOptions{} - } - if err := m.DockerStrategyOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GitBuildSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GitBuildSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GitBuildSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field URI", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.URI = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ref = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProxyConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ProxyConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GitHubWebHookCause) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GitHubWebHookCause: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GitHubWebHookCause: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Revision == nil { - m.Revision = &SourceRevision{} - } - if err := m.Revision.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secret", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Secret = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GitInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GitInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GitInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GitBuildSource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.GitBuildSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GitSourceRevision", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.GitSourceRevision.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GitLabWebHookCause) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GitLabWebHookCause: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GitLabWebHookCause: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommonWebHookCause", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CommonWebHookCause.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GitSourceRevision) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GitSourceRevision: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GitSourceRevision: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Commit = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Author", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Author.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Committer", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Committer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageChangeCause) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageChangeCause: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageChangeCause: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImageID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ImageID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FromRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FromRef == nil { - m.FromRef = &k8s_io_kubernetes_pkg_api_v1.ObjectReference{} - } - if err := m.FromRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageChangeTrigger) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageChangeTrigger: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageChangeTrigger: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTriggeredImageID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LastTriggeredImageID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.From == nil { - m.From = &k8s_io_kubernetes_pkg_api_v1.ObjectReference{} - } - if err := m.From.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageLabel) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageLabel: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageLabel: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.From.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Paths", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Paths = append(m.Paths, ImageSourcePath{}) - if err := m.Paths[len(m.Paths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PullSecret", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PullSecret == nil { - m.PullSecret = &k8s_io_kubernetes_pkg_api_v1.LocalObjectReference{} - } - if err := m.PullSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageSourcePath) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageSourcePath: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageSourcePath: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourcePath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SourcePath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DestinationDir", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DestinationDir = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JenkinsPipelineBuildStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JenkinsPipelineBuildStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JenkinsPipelineBuildStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JenkinsfilePath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JenkinsfilePath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Jenkinsfile", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Jenkinsfile = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Env = append(m.Env, k8s_io_kubernetes_pkg_api_v1.EnvVar{}) - if err := m.Env[len(m.Env)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OptionalNodeSelector) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OptionalNodeSelector: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OptionalNodeSelector: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if *m == nil { - *m = make(map[string]string) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue := string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - (*m)[mapkey] = mapvalue - } else { - var mapvalue string - (*m)[mapkey] = mapvalue - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProxyConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProxyConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProxyConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HTTPProxy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.HTTPProxy = &s - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HTTPSProxy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.HTTPSProxy = &s - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoProxy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.NoProxy = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SecretBuildSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SecretBuildSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SecretBuildSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secret", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Secret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DestinationDir", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DestinationDir = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SecretSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SecretSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SecretSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretSource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.SecretSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MountPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MountPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SourceBuildStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SourceBuildStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SourceBuildStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.From.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PullSecret", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PullSecret == nil { - m.PullSecret = &k8s_io_kubernetes_pkg_api_v1.LocalObjectReference{} - } - if err := m.PullSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Env = append(m.Env, k8s_io_kubernetes_pkg_api_v1.EnvVar{}) - if err := m.Env[len(m.Env)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scripts", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Scripts = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Incremental", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Incremental = &b - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ForcePull", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ForcePull = bool(v != 0) - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuntimeImage", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RuntimeImage == nil { - m.RuntimeImage = &k8s_io_kubernetes_pkg_api_v1.ObjectReference{} - } - if err := m.RuntimeImage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuntimeArtifacts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RuntimeArtifacts = append(m.RuntimeArtifacts, ImageSourcePath{}) - if err := m.RuntimeArtifacts[len(m.RuntimeArtifacts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SourceControlUser) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SourceControlUser: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SourceControlUser: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Email", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Email = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SourceRevision) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SourceRevision: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SourceRevision: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = BuildSourceType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Git", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Git == nil { - m.Git = &GitSourceRevision{} - } - if err := m.Git.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SourceStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SourceStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SourceStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Incremental", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Incremental = &b - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StageInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StageInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StageInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = StageName(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.StartTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DurationMilliseconds", wireType) - } - m.DurationMilliseconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DurationMilliseconds |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Steps", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Steps = append(m.Steps, StepInfo{}) - if err := m.Steps[len(m.Steps)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StepInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StepInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StepInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = StepName(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.StartTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DurationMilliseconds", wireType) - } - m.DurationMilliseconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DurationMilliseconds |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WebHookTrigger) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WebHookTrigger: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WebHookTrigger: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secret", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Secret = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowEnv", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowEnv = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/openshift/origin/pkg/build/apis/build/v1/generated.proto", fileDescriptorGenerated) -} - -var fileDescriptorGenerated = []byte{ - // 3872 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x3b, 0x5b, 0x6c, 0x24, 0x57, - 0x56, 0x53, 0xfd, 0xee, 0xd3, 0x1e, 0x8f, 0x7d, 0x3d, 0xb3, 0xd3, 0x33, 0x3b, 0xeb, 0x9e, 0xad, - 0x25, 0xab, 0x84, 0x4d, 0xda, 0xcc, 0xe4, 0xa1, 0x10, 0xd8, 0x80, 0xbb, 0xfd, 0x18, 0x7b, 0x9d, - 0x19, 0xef, 0x6d, 0x27, 0x41, 0x59, 0x04, 0x29, 0x97, 0x6f, 0xb7, 0x2b, 0xae, 0xae, 0xea, 0xd4, - 0xbd, 0xed, 0x89, 0x57, 0x20, 0x22, 0x16, 0x76, 0x25, 0x84, 0xc4, 0x02, 0x42, 0x42, 0x20, 0x24, - 0xf8, 0x5b, 0x69, 0x41, 0x20, 0xa1, 0xfd, 0x40, 0xf0, 0x81, 0xf8, 0xd9, 0x08, 0x09, 0xb1, 0x3f, - 0xa0, 0x7c, 0x40, 0x8b, 0x34, 0x48, 0xfc, 0xf2, 0x3d, 0x3f, 0xa0, 0xfb, 0xa8, 0xaa, 0x5b, 0xd5, - 0x65, 0x4f, 0xdc, 0xed, 0x19, 0x82, 0xf8, 0xeb, 0x3a, 0xe7, 0xdc, 0x73, 0xce, 0x3d, 0xf7, 0xdc, - 0x7b, 0xcf, 0xe3, 0x36, 0xb4, 0x7b, 0x0e, 0x3b, 0x1c, 0xee, 0x37, 0x6d, 0xbf, 0xbf, 0xe2, 0x0f, - 0x88, 0x47, 0x0f, 0x9d, 0x2e, 0x5b, 0xf1, 0x03, 0xa7, 0xe7, 0x78, 0x2b, 0x83, 0xa3, 0xde, 0xca, - 0xfe, 0xd0, 0x71, 0x0f, 0x56, 0xac, 0x81, 0x43, 0xd5, 0xcf, 0xe3, 0x3b, 0x2b, 0x3d, 0xe2, 0x91, - 0xc0, 0x62, 0xe4, 0xa0, 0x39, 0x08, 0x7c, 0xe6, 0xa3, 0x17, 0x63, 0x26, 0xcd, 0x88, 0x49, 0x53, - 0x32, 0x69, 0x0e, 0x8e, 0x7a, 0x4d, 0x31, 0xb2, 0xc9, 0x99, 0xa8, 0x9f, 0xc7, 0x77, 0x6e, 0xbe, - 0xa0, 0x49, 0xee, 0xf9, 0x3d, 0x7f, 0x45, 0xf0, 0xda, 0x1f, 0x76, 0xc5, 0x97, 0xf8, 0x10, 0xbf, - 0xa4, 0x8c, 0x9b, 0x2f, 0x1d, 0xbd, 0x4a, 0x9b, 0x8e, 0xcf, 0x35, 0xe9, 0x5b, 0xf6, 0xa1, 0xe3, - 0x91, 0xe0, 0x44, 0x28, 0x28, 0x54, 0xeb, 0x13, 0x66, 0x65, 0x68, 0x76, 0x73, 0xe5, 0xb4, 0x51, - 0xc1, 0xd0, 0x63, 0x4e, 0x9f, 0x4c, 0x0c, 0x78, 0xe5, 0x71, 0x03, 0xa8, 0x7d, 0x48, 0xfa, 0xd6, - 0xc4, 0xb8, 0x17, 0x4f, 0x1b, 0x37, 0x64, 0x8e, 0xbb, 0xe2, 0x78, 0x8c, 0xb2, 0x60, 0x62, 0xd0, - 0xf3, 0x6a, 0xd0, 0xd1, 0x70, 0x9f, 0x04, 0x1e, 0x61, 0x84, 0x86, 0x33, 0xca, 0x98, 0x8b, 0xf9, - 0xb7, 0x05, 0xb8, 0xd1, 0x72, 0x3c, 0x2b, 0x38, 0x69, 0x71, 0x1b, 0x62, 0xf2, 0xfe, 0x90, 0x50, - 0xf6, 0x60, 0xc0, 0x1c, 0xdf, 0xa3, 0xe8, 0x5d, 0xa8, 0x70, 0x23, 0x1c, 0x58, 0xcc, 0xaa, 0x1b, - 0xb7, 0x8d, 0x67, 0x6b, 0x77, 0x7f, 0xa2, 0x29, 0xd9, 0x37, 0x75, 0x9d, 0xc4, 0x72, 0x88, 0x85, - 0xe0, 0xd4, 0xcd, 0xe3, 0x3b, 0xcd, 0x07, 0xfb, 0xef, 0x11, 0x9b, 0xbd, 0x41, 0x98, 0xd5, 0x42, - 0x1f, 0x8d, 0x1a, 0x97, 0xc6, 0xa3, 0x06, 0xc4, 0x30, 0x1c, 0x71, 0x45, 0x5f, 0x86, 0x92, 0x45, - 0x37, 0x1c, 0x97, 0xd4, 0x73, 0xb7, 0x8d, 0x67, 0xab, 0xad, 0x79, 0x45, 0x5d, 0x5a, 0x15, 0x50, - 0xac, 0xb0, 0xe8, 0x15, 0x98, 0x0f, 0xc8, 0xb1, 0x43, 0x1d, 0xdf, 0x6b, 0xfb, 0xfd, 0xbe, 0xc3, - 0xea, 0xf9, 0x24, 0xbd, 0x84, 0xe2, 0x14, 0x15, 0xfa, 0x49, 0xb8, 0x12, 0x42, 0xde, 0x20, 0x94, - 0x5a, 0x3d, 0x52, 0x2f, 0x88, 0x81, 0x57, 0xd4, 0xc0, 0xb2, 0x02, 0xe3, 0x34, 0x1d, 0x6a, 0x01, - 0x0a, 0x41, 0xab, 0x43, 0x76, 0xe8, 0x07, 0xf7, 0xad, 0x3e, 0xa9, 0x17, 0xc5, 0xe8, 0x68, 0x52, - 0x31, 0x06, 0x67, 0x50, 0xa3, 0x75, 0x58, 0x4a, 0x42, 0xd7, 0xfb, 0x96, 0xe3, 0xd6, 0x4b, 0x82, - 0xc9, 0x92, 0x62, 0x52, 0xd3, 0x50, 0x38, 0x8b, 0x1e, 0x7d, 0x0d, 0xae, 0x25, 0xe7, 0xc5, 0x88, - 0xd4, 0xa6, 0x2c, 0x18, 0x5d, 0x53, 0x8c, 0x2e, 0x27, 0x90, 0x38, 0x7b, 0x0c, 0xba, 0x0f, 0x9f, - 0x9b, 0x40, 0x48, 0xb5, 0x2a, 0x82, 0xdb, 0xe7, 0x14, 0xb7, 0xf9, 0x24, 0x16, 0x9f, 0x32, 0xca, - 0xfc, 0x29, 0x58, 0xd4, 0x3c, 0xa8, 0xe3, 0x0f, 0x03, 0x9b, 0x68, 0xeb, 0x6a, 0x9c, 0xb5, 0xae, - 0xe6, 0x1f, 0x19, 0x70, 0xad, 0xe5, 0xb0, 0xfd, 0xa1, 0x7d, 0x44, 0xd8, 0xdb, 0x64, 0xff, 0x9e, - 0xef, 0x1f, 0xb5, 0xad, 0x21, 0x25, 0xe8, 0x5b, 0x06, 0x80, 0xed, 0xf7, 0xfb, 0xbe, 0xd7, 0x19, - 0x10, 0x5b, 0xb9, 0xdf, 0x66, 0x73, 0x8a, 0x53, 0xa1, 0xd9, 0x16, 0x6c, 0x74, 0xee, 0xad, 0x9b, - 0x4a, 0x1f, 0x34, 0x89, 0xc3, 0x9a, 0x58, 0xf3, 0x07, 0x39, 0x28, 0x8a, 0x79, 0x3d, 0x85, 0xbd, - 0xf0, 0x2e, 0x14, 0x28, 0x9f, 0x6a, 0x4e, 0x70, 0x7f, 0x7d, 0xaa, 0xa9, 0xca, 0x35, 0x18, 0x10, - 0xbb, 0x35, 0xa7, 0x64, 0x15, 0xf8, 0x17, 0x16, 0x9c, 0xd1, 0x21, 0x94, 0x28, 0xb3, 0xd8, 0x90, - 0x8a, 0xdd, 0x53, 0xbb, 0xfb, 0xb3, 0x33, 0xc8, 0x10, 0x7c, 0xe2, 0x75, 0x95, 0xdf, 0x58, 0xf1, - 0x37, 0x7f, 0x98, 0x83, 0x9a, 0xa0, 0x6b, 0xfb, 0x5e, 0xd7, 0xe9, 0x3d, 0x05, 0xeb, 0x75, 0x13, - 0xd6, 0x5b, 0x9b, 0x7e, 0x66, 0x52, 0xe3, 0x53, 0x6d, 0xe8, 0xa5, 0x6c, 0xb8, 0x31, 0xb3, 0xa4, - 0xb3, 0x2d, 0xf9, 0xcf, 0x06, 0x5c, 0xd1, 0xa8, 0x77, 0x1c, 0xca, 0xd0, 0xcf, 0x4f, 0x58, 0xb3, - 0xf9, 0xe9, 0xac, 0xc9, 0x47, 0x0b, 0x5b, 0x2e, 0x28, 0x69, 0x95, 0x10, 0xa2, 0x59, 0x92, 0x40, - 0xd1, 0x61, 0xa4, 0x4f, 0xeb, 0xb9, 0xdb, 0xf9, 0xd9, 0x9c, 0x44, 0xaa, 0xdc, 0xba, 0xac, 0x84, - 0x15, 0xb7, 0x38, 0x5b, 0x2c, 0xb9, 0x9b, 0x1f, 0x16, 0x12, 0x13, 0xe3, 0x26, 0x46, 0x43, 0xa8, - 0xb0, 0xc0, 0xe9, 0xf5, 0x48, 0x40, 0xeb, 0x86, 0x90, 0xbe, 0x39, 0xbd, 0xf4, 0x3d, 0xc9, 0x69, - 0xd7, 0x77, 0x1d, 0xfb, 0x24, 0x9e, 0xb1, 0x02, 0x53, 0x1c, 0x89, 0x42, 0xab, 0x50, 0x0d, 0x86, - 0x9e, 0x24, 0x54, 0x17, 0xd1, 0x97, 0x14, 0x79, 0x15, 0x87, 0x88, 0x47, 0xa3, 0xc6, 0xbc, 0xbc, - 0x24, 0x43, 0x08, 0x8e, 0x47, 0x21, 0x9a, 0x38, 0xad, 0xa4, 0x6b, 0xfc, 0xcc, 0x0c, 0xa7, 0x95, - 0xf0, 0xbf, 0xc8, 0xe3, 0x63, 0x98, 0x7e, 0x3a, 0xa1, 0x03, 0xb8, 0x45, 0x87, 0xb6, 0x4d, 0x28, - 0xed, 0x0e, 0x5d, 0xa1, 0x1b, 0xbd, 0xe7, 0x50, 0xe6, 0x07, 0x27, 0x3b, 0x0e, 0xbf, 0x23, 0xf9, - 0x55, 0x57, 0x6c, 0xdd, 0x1e, 0x8f, 0x1a, 0xb7, 0x3a, 0x67, 0xd0, 0xe1, 0x33, 0xb9, 0xa0, 0x9f, - 0x83, 0x7a, 0xd7, 0x72, 0x5c, 0x72, 0x90, 0x21, 0xa1, 0x28, 0x24, 0xdc, 0x1a, 0x8f, 0x1a, 0xf5, - 0x8d, 0x53, 0x68, 0xf0, 0xa9, 0xa3, 0xcd, 0x6d, 0x58, 0x9c, 0xd8, 0x08, 0xe8, 0x65, 0xa8, 0xb9, - 0x16, 0x65, 0x6f, 0x91, 0x80, 0x5f, 0x36, 0xc2, 0xbf, 0xf3, 0xf1, 0x5d, 0xb9, 0x13, 0xa3, 0xb0, - 0x4e, 0x67, 0xfe, 0xbd, 0x01, 0x55, 0xc1, 0xec, 0x29, 0xec, 0x90, 0x5f, 0x4c, 0xee, 0x90, 0xd7, - 0xa6, 0xf7, 0xd1, 0x53, 0xf6, 0x06, 0x40, 0x45, 0xce, 0xc5, 0xef, 0x99, 0xdf, 0x09, 0xf7, 0xc9, - 0x8e, 0xdf, 0x0b, 0x03, 0xb3, 0x15, 0xa8, 0xda, 0xbe, 0xc7, 0x2c, 0x3e, 0x09, 0x75, 0xc3, 0x2e, - 0x86, 0x0e, 0xdb, 0x0e, 0x11, 0x38, 0xa6, 0xe1, 0xf7, 0x71, 0xd7, 0x77, 0x5d, 0xff, 0xa1, 0x70, - 0xef, 0x4a, 0x7c, 0xda, 0x6c, 0x08, 0x28, 0x56, 0x58, 0xf4, 0x3c, 0x54, 0x06, 0xfc, 0x9e, 0xf7, - 0xd5, 0xf9, 0x56, 0x89, 0xed, 0xb0, 0xab, 0xe0, 0x38, 0xa2, 0x40, 0x2f, 0xc1, 0x1c, 0x75, 0x3c, - 0x9b, 0x74, 0x88, 0xed, 0x7b, 0x07, 0x54, 0xf8, 0x5b, 0xbe, 0xb5, 0x30, 0x1e, 0x35, 0xe6, 0x3a, - 0x1a, 0x1c, 0x27, 0xa8, 0xd0, 0xdb, 0x50, 0x15, 0xdf, 0x7b, 0x8e, 0x8a, 0xa7, 0x6a, 0x77, 0x7f, - 0xfc, 0xd3, 0x2d, 0x0e, 0x1f, 0xd1, 0xba, 0xcc, 0x27, 0xd9, 0x09, 0x19, 0xe0, 0x98, 0x17, 0xba, - 0x0b, 0xc0, 0xc3, 0x69, 0xca, 0xac, 0xfe, 0x80, 0x8a, 0x20, 0xab, 0x12, 0x6f, 0xa1, 0xbd, 0x08, - 0x83, 0x35, 0x2a, 0xf4, 0x15, 0xa8, 0x32, 0xcb, 0x71, 0x77, 0x1c, 0x8f, 0x50, 0x11, 0x4e, 0xe5, - 0xa5, 0x80, 0xbd, 0x10, 0x88, 0x63, 0x3c, 0x6a, 0x02, 0xb8, 0xdc, 0x71, 0x5b, 0x27, 0x8c, 0x50, - 0x11, 0x2e, 0xe5, 0x5b, 0xf3, 0x9c, 0xf9, 0x4e, 0x04, 0xc5, 0x1a, 0x05, 0xb7, 0xba, 0xe7, 0x3f, - 0xb4, 0x1c, 0x56, 0xaf, 0x26, 0xad, 0x7e, 0xdf, 0x7f, 0xdb, 0x72, 0x18, 0x56, 0x58, 0xf4, 0x0c, - 0x94, 0x8f, 0x95, 0xbb, 0x83, 0x60, 0x5a, 0xe3, 0x91, 0x69, 0xe8, 0xe6, 0x21, 0xce, 0xfc, 0x8b, - 0xf0, 0x52, 0x7d, 0x30, 0x64, 0x83, 0x21, 0x43, 0xeb, 0x90, 0x63, 0xbe, 0x72, 0xef, 0x17, 0x42, - 0x0b, 0xc6, 0x71, 0x7f, 0x68, 0xbf, 0xf8, 0x1a, 0xc5, 0xa4, 0x4b, 0x02, 0xe2, 0xd9, 0xa4, 0x55, - 0x1a, 0x8f, 0x1a, 0xb9, 0x3d, 0x1f, 0xe7, 0x98, 0x8f, 0xf6, 0x01, 0x06, 0x43, 0x7a, 0xd8, 0x21, - 0x76, 0x40, 0x98, 0xba, 0x3f, 0xef, 0x9e, 0xcd, 0x6e, 0xc7, 0xb7, 0x2d, 0x37, 0xcd, 0x53, 0x58, - 0x62, 0x37, 0xe2, 0x84, 0x35, 0xae, 0xe8, 0x18, 0x6a, 0x4e, 0xdf, 0xea, 0x91, 0x1d, 0x6b, 0x9f, - 0xb8, 0xdc, 0xb5, 0xf2, 0x53, 0x9f, 0x8f, 0x5b, 0x11, 0x9f, 0xf8, 0x54, 0x88, 0x61, 0x14, 0xeb, - 0x82, 0xcc, 0x5f, 0x35, 0x60, 0x49, 0x98, 0x6c, 0xd7, 0xa7, 0x4c, 0x06, 0xae, 0xe2, 0xe4, 0x7c, - 0x06, 0xca, 0xfc, 0x1c, 0xb5, 0xbc, 0x03, 0x71, 0xcf, 0x54, 0xa5, 0xc5, 0xdb, 0x12, 0x84, 0x43, - 0x1c, 0xba, 0x05, 0x05, 0x2b, 0xe8, 0xc9, 0x7d, 0x5e, 0x6d, 0x55, 0x78, 0x28, 0xb0, 0x1a, 0xf4, - 0x28, 0x16, 0x50, 0xbe, 0xbc, 0xd4, 0x0e, 0x9c, 0xc1, 0x44, 0x32, 0xd2, 0x11, 0x50, 0xac, 0xb0, - 0xe6, 0xdf, 0x54, 0x60, 0x4e, 0x4f, 0xaf, 0x9e, 0x42, 0x34, 0xd4, 0x87, 0x4a, 0x18, 0xae, 0xab, - 0x15, 0x6d, 0x4f, 0x65, 0x6c, 0x19, 0xce, 0x63, 0xc5, 0xaa, 0x35, 0xc7, 0x0f, 0x82, 0xf0, 0x0b, - 0x47, 0x22, 0x90, 0x0f, 0x0b, 0xea, 0x32, 0x25, 0x07, 0xad, 0x13, 0xb1, 0x1a, 0xea, 0x0e, 0x3c, - 0xa7, 0x5f, 0x5e, 0x1d, 0x8f, 0x1a, 0x0b, 0x7b, 0x29, 0x56, 0x78, 0x82, 0x39, 0xfa, 0x1a, 0x14, - 0xba, 0x81, 0xdf, 0x17, 0x27, 0xce, 0xb9, 0x85, 0x88, 0x75, 0xdc, 0x08, 0xfc, 0x3e, 0x16, 0x4c, - 0xd0, 0x7b, 0x50, 0xda, 0x17, 0x19, 0x8c, 0x3a, 0x8d, 0xa6, 0x0c, 0xe9, 0xd2, 0x49, 0x50, 0x0b, - 0xb8, 0x2f, 0x48, 0x30, 0x56, 0x12, 0xd0, 0x9d, 0xe4, 0xed, 0x56, 0x12, 0xdb, 0xfd, 0xca, 0x59, - 0x37, 0x1b, 0x6a, 0x43, 0x9e, 0x78, 0xc7, 0xf5, 0xb2, 0xd8, 0x33, 0x3f, 0x76, 0xf6, 0x54, 0xd7, - 0xbd, 0xe3, 0xb7, 0xac, 0xa0, 0x55, 0x53, 0xce, 0x91, 0x5f, 0xf7, 0x8e, 0x31, 0x1f, 0x8d, 0x7e, - 0x19, 0x6a, 0x9a, 0x11, 0xeb, 0x15, 0xc1, 0x6c, 0x63, 0xe6, 0xe0, 0x4a, 0x66, 0x53, 0xd1, 0x3e, - 0xd4, 0x56, 0x0e, 0xeb, 0xf2, 0xd0, 0x1f, 0x1a, 0x70, 0xed, 0xc0, 0xb7, 0x8f, 0x48, 0xd0, 0x61, - 0x81, 0xc5, 0x48, 0xef, 0x44, 0x5d, 0x65, 0xe2, 0x64, 0xac, 0xdd, 0xdd, 0x9e, 0x4a, 0x93, 0xb5, - 0x2c, 0x8e, 0xad, 0x1b, 0xe3, 0x51, 0xe3, 0x5a, 0x26, 0x0a, 0x67, 0xeb, 0x20, 0xb4, 0xa3, 0x62, - 0xcd, 0xd2, 0xda, 0xc1, 0x0c, 0xda, 0x75, 0xb2, 0x38, 0x4a, 0xed, 0x32, 0x51, 0x38, 0x5b, 0x07, - 0xf3, 0xaf, 0x8a, 0xea, 0xd8, 0x57, 0xb9, 0xf5, 0x8b, 0x50, 0x60, 0x27, 0x83, 0x30, 0xb3, 0x6e, - 0x84, 0x39, 0xca, 0xde, 0xc9, 0x80, 0x3c, 0x1a, 0x35, 0xae, 0x68, 0xa4, 0x1c, 0x84, 0x05, 0xb1, - 0xe6, 0xe3, 0xb9, 0x27, 0xee, 0xe3, 0x4d, 0x00, 0x69, 0xe7, 0xae, 0xe3, 0x92, 0xf0, 0x6c, 0xe4, - 0x47, 0xd5, 0x5a, 0x04, 0xc5, 0x1a, 0x05, 0xfa, 0x05, 0xc8, 0xf7, 0x54, 0xb4, 0x3a, 0xed, 0x39, - 0xb5, 0xe9, 0x30, 0x5d, 0xab, 0x32, 0xf7, 0xfd, 0x4d, 0x87, 0x61, 0xce, 0x98, 0xa7, 0xbd, 0xe2, - 0x4e, 0xa0, 0xf5, 0xe2, 0x0c, 0x19, 0x8d, 0x38, 0x78, 0x14, 0xff, 0xe8, 0xa4, 0x17, 0x40, 0x8a, - 0x15, 0x7f, 0x1e, 0x81, 0xf0, 0x98, 0x8b, 0x7c, 0xc0, 0xd6, 0x9c, 0x40, 0x95, 0x79, 0xb4, 0x20, - 0x3e, 0xc4, 0x60, 0x8d, 0x0a, 0x1d, 0xc2, 0x9c, 0x5a, 0x77, 0x79, 0x01, 0x97, 0xa7, 0xbe, 0x80, - 0x65, 0xe0, 0xa5, 0xf1, 0xc2, 0x09, 0xce, 0xe8, 0x7d, 0x28, 0x53, 0xf1, 0x8b, 0xce, 0xb4, 0xff, - 0x25, 0x37, 0xdd, 0xdc, 0x51, 0x31, 0x4d, 0xa2, 0x28, 0x0e, 0xe5, 0x98, 0xff, 0x1d, 0x46, 0xe5, - 0xe2, 0xd6, 0xa5, 0x19, 0x25, 0x9d, 0x27, 0x9e, 0x24, 0xa5, 0x4e, 0xbe, 0xdc, 0xd3, 0x3d, 0xf9, - 0xcc, 0x1f, 0x94, 0xc3, 0xdd, 0x2b, 0xd3, 0x9b, 0x3b, 0x50, 0x1c, 0x1c, 0x5a, 0x34, 0xdc, 0xbe, - 0x9f, 0x0f, 0xe3, 0xff, 0x5d, 0x0e, 0x7c, 0x34, 0x6a, 0x80, 0x0c, 0x57, 0xf8, 0x17, 0x96, 0x94, - 0x22, 0xda, 0xb7, 0x3c, 0x9b, 0xb8, 0x2e, 0x39, 0x50, 0xf1, 0x7b, 0x1c, 0xed, 0x87, 0x08, 0x1c, - 0xd3, 0xa0, 0x57, 0xa0, 0x14, 0x10, 0x8b, 0xfa, 0x9e, 0xda, 0x7c, 0xcb, 0xa1, 0xbb, 0x62, 0x01, - 0x7d, 0xc4, 0xdd, 0x44, 0x56, 0x19, 0xc4, 0x37, 0x56, 0xd4, 0xe8, 0x39, 0x28, 0xf7, 0xcf, 0xae, - 0x92, 0x86, 0x78, 0xd4, 0x85, 0x79, 0xca, 0xac, 0x80, 0x45, 0x61, 0xf5, 0x14, 0x91, 0x3c, 0x1a, - 0x8f, 0x1a, 0xf3, 0x9d, 0x04, 0x17, 0x9c, 0xe2, 0x8a, 0x86, 0xb0, 0x64, 0xfb, 0xfd, 0x81, 0x4b, - 0xf8, 0x59, 0x18, 0x0b, 0x2b, 0x9d, 0x5b, 0xd8, 0xf5, 0xf1, 0xa8, 0xb1, 0xd4, 0x9e, 0x64, 0x85, - 0xb3, 0xf8, 0xa3, 0xaf, 0x42, 0xe5, 0x60, 0x18, 0x58, 0x1c, 0xa8, 0xb2, 0x82, 0x2f, 0x86, 0x79, - 0xd0, 0x9a, 0x82, 0x3f, 0x1a, 0x35, 0x2e, 0xf3, 0x44, 0xa2, 0x19, 0x02, 0x70, 0x34, 0x04, 0xed, - 0xc3, 0x4d, 0x5f, 0xc4, 0xe8, 0xf2, 0xc4, 0x93, 0x51, 0x4c, 0xb8, 0x4f, 0x55, 0x9d, 0xd5, 0x54, - 0x0c, 0x6f, 0x3e, 0x38, 0x95, 0x12, 0x9f, 0xc1, 0x05, 0x7d, 0x1d, 0x4a, 0xb6, 0xc8, 0x9b, 0xd5, - 0x15, 0x7a, 0xce, 0x20, 0x08, 0x64, 0xd5, 0x9c, 0x33, 0xc0, 0x8a, 0x11, 0xf2, 0xa0, 0x24, 0x05, - 0xaa, 0x7b, 0x6f, 0x63, 0xd6, 0xfa, 0xa0, 0x9c, 0x5a, 0x7c, 0x5c, 0xca, 0x6f, 0xac, 0xa4, 0xa0, - 0xae, 0xa8, 0xa5, 0xf1, 0x83, 0xb9, 0x26, 0x76, 0xe5, 0x74, 0x35, 0xcf, 0x0e, 0x67, 0xb1, 0xe5, - 0x75, 0xfd, 0x44, 0x0d, 0x4d, 0x1c, 0xcb, 0x92, 0x3b, 0x3f, 0x96, 0x5d, 0xbf, 0xd7, 0xf1, 0x9c, - 0xc1, 0x80, 0xb0, 0xfa, 0x5c, 0xf2, 0x58, 0xde, 0x89, 0x30, 0x58, 0xa3, 0x32, 0x87, 0xaa, 0x36, - 0xa1, 0x4f, 0x04, 0xbd, 0xab, 0x65, 0x5c, 0xf7, 0x2e, 0xc6, 0x38, 0x7b, 0xbe, 0x9e, 0x8c, 0x99, - 0x3b, 0x2a, 0x5f, 0x49, 0x92, 0xa0, 0x97, 0x55, 0xfe, 0xb4, 0xe6, 0xf4, 0x08, 0x65, 0xea, 0xec, - 0x48, 0xa6, 0x3f, 0x12, 0x85, 0x75, 0x3a, 0xf3, 0xdb, 0x45, 0xb8, 0xac, 0xd8, 0xc9, 0x98, 0x02, - 0xbd, 0x9c, 0x08, 0x1e, 0xbe, 0x98, 0x0a, 0x1e, 0x16, 0x13, 0xc4, 0x5a, 0xf8, 0xf0, 0x6b, 0x06, - 0xcc, 0x27, 0x63, 0x27, 0x15, 0x47, 0xdc, 0x9b, 0x21, 0x70, 0x4b, 0x08, 0x93, 0xa7, 0x41, 0x32, - 0x6c, 0xc3, 0x29, 0x99, 0x42, 0x8d, 0x64, 0x90, 0xa4, 0xd2, 0x8c, 0x7b, 0x33, 0x44, 0x68, 0x19, - 0x6a, 0x24, 0xe3, 0x33, 0x9c, 0x92, 0x29, 0xd4, 0xb0, 0x87, 0x94, 0xf9, 0xfd, 0x48, 0x8d, 0xc2, - 0x0c, 0x6a, 0xb4, 0x05, 0xab, 0x0c, 0x35, 0xda, 0x09, 0x19, 0x38, 0x25, 0x13, 0x7d, 0xcf, 0x80, - 0xeb, 0xef, 0x11, 0xef, 0xc8, 0xf1, 0xe8, 0xae, 0x33, 0x20, 0xae, 0xe3, 0xc5, 0x66, 0x91, 0xa7, - 0xf1, 0xd7, 0xa7, 0xd2, 0x67, 0x3b, 0xc9, 0x33, 0xa9, 0xd8, 0xe7, 0xc7, 0xa3, 0xc6, 0xf5, 0xed, - 0x6c, 0xa9, 0xf8, 0x34, 0x75, 0xcc, 0xff, 0x28, 0xaa, 0xed, 0xa4, 0xdf, 0x9e, 0xfa, 0x7d, 0x63, - 0x3c, 0xe6, 0xbe, 0xe1, 0x26, 0x17, 0xcd, 0x4b, 0xc7, 0x56, 0xcd, 0x9a, 0x99, 0x1c, 0x70, 0x33, - 0xc1, 0x4a, 0xde, 0xe5, 0xc2, 0xe4, 0x49, 0x04, 0x4e, 0xc9, 0x44, 0x1f, 0x1a, 0x70, 0x59, 0xca, - 0x0b, 0xb5, 0xc8, 0xcf, 0xd0, 0x98, 0xda, 0x74, 0xd8, 0xbd, 0x88, 0x93, 0x54, 0x62, 0x71, 0x3c, - 0x6a, 0x5c, 0x4e, 0xc0, 0x71, 0x52, 0x20, 0xfa, 0x8e, 0x01, 0x0b, 0x62, 0x8f, 0xb7, 0x0f, 0x2d, - 0xaf, 0x27, 0x57, 0x47, 0xb9, 0xdf, 0xfa, 0xf4, 0x81, 0xad, 0x64, 0x26, 0x75, 0x10, 0x49, 0xf8, - 0x56, 0x4a, 0x04, 0x9e, 0x10, 0x1a, 0x1a, 0xc3, 0xb5, 0x22, 0x63, 0x14, 0x67, 0x33, 0xc6, 0x8e, - 0x95, 0x6d, 0x8c, 0x18, 0x8e, 0x93, 0x02, 0xd1, 0x6f, 0x1a, 0xb0, 0xb0, 0x9f, 0xea, 0x1f, 0xaa, - 0xe0, 0x60, 0x7b, 0xca, 0x0c, 0x27, 0xa3, 0x19, 0x29, 0x2d, 0x92, 0x46, 0xe1, 0x09, 0xc9, 0xe6, - 0xef, 0x14, 0x01, 0x4d, 0xf6, 0x1e, 0xd0, 0x4b, 0x89, 0x43, 0xf7, 0x76, 0xea, 0xd0, 0x5d, 0xd0, - 0x47, 0x68, 0x67, 0xae, 0x07, 0x25, 0x39, 0x83, 0x99, 0x2a, 0x38, 0x4a, 0x35, 0xc5, 0x3e, 0xcb, - 0xbf, 0x94, 0x14, 0x9e, 0x1e, 0x28, 0x6f, 0x57, 0x4e, 0x7d, 0x21, 0x02, 0xb3, 0x76, 0x55, 0x28, - 0x07, 0x7d, 0x53, 0x5d, 0x6b, 0xd2, 0xab, 0x94, 0x17, 0x6f, 0xce, 0xea, 0xc5, 0xa1, 0xe8, 0x2b, - 0xd1, 0xdd, 0x28, 0xe1, 0x58, 0x17, 0xa6, 0xcc, 0xeb, 0x5a, 0xfb, 0xca, 0x6b, 0x2f, 0xd4, 0xbc, - 0x9a, 0xc7, 0x2a, 0x29, 0xe8, 0x21, 0x54, 0x23, 0x7f, 0x51, 0x2e, 0x7a, 0x21, 0x22, 0xb3, 0x7d, - 0x33, 0x96, 0x65, 0xfe, 0x5d, 0x19, 0xb4, 0xdc, 0x08, 0xbd, 0x0e, 0xf3, 0x94, 0x04, 0xc7, 0x8e, - 0x4d, 0x56, 0x6d, 0xdb, 0x1f, 0x7a, 0x61, 0x34, 0x11, 0xf5, 0xfd, 0x3b, 0x09, 0x2c, 0x4e, 0x51, - 0x8b, 0x26, 0xb2, 0xb8, 0x0e, 0x95, 0x5b, 0xce, 0xd2, 0x44, 0x4e, 0x65, 0xd3, 0xaa, 0xda, 0xa8, - 0xf8, 0x27, 0x8a, 0x98, 0xf9, 0x27, 0x5f, 0xc4, 0x1c, 0x40, 0x85, 0x26, 0xaf, 0xf3, 0xd6, 0x2c, - 0x21, 0x9e, 0xba, 0x2f, 0xa3, 0xfe, 0x49, 0x74, 0x49, 0x46, 0x52, 0xb8, 0x29, 0x55, 0xbc, 0x5d, - 0x9c, 0xd5, 0x94, 0x8f, 0x89, 0xb4, 0x6d, 0xa8, 0x06, 0x44, 0x9a, 0x95, 0x2a, 0xe7, 0x7b, 0x4c, - 0x85, 0x01, 0x2b, 0x72, 0x4c, 0xde, 0x1f, 0x3a, 0x01, 0xe9, 0x13, 0x8f, 0xd1, 0x38, 0xed, 0x0c, - 0xb1, 0x14, 0xc7, 0x7c, 0xd1, 0x2f, 0x01, 0x0c, 0xa2, 0x32, 0xbb, 0xaa, 0x63, 0xcc, 0x10, 0x25, - 0x27, 0x4b, 0xf6, 0x71, 0xc0, 0x1e, 0xc3, 0xb1, 0x26, 0x0f, 0x7d, 0x03, 0x6e, 0xc4, 0x99, 0xdc, - 0x1a, 0xb1, 0x0e, 0x44, 0x00, 0xa2, 0x3a, 0x53, 0xb2, 0x57, 0xf3, 0x85, 0xf1, 0xa8, 0x71, 0xa3, - 0x7d, 0x1a, 0x11, 0x3e, 0x7d, 0x3c, 0xfa, 0x15, 0x98, 0xf3, 0xfc, 0x03, 0xd2, 0x21, 0x2e, 0xb1, - 0x99, 0x1f, 0xa8, 0x94, 0x6b, 0x6b, 0xaa, 0xc9, 0xc9, 0xba, 0x9e, 0xe5, 0xde, 0xd7, 0x18, 0xca, - 0xda, 0x8d, 0x0e, 0xc1, 0x09, 0x81, 0xe6, 0xf7, 0x0d, 0xc8, 0x78, 0xab, 0x92, 0xd8, 0x22, 0xc6, - 0x93, 0xdf, 0x22, 0x5f, 0x86, 0x12, 0x8d, 0xdb, 0x44, 0x7a, 0xc7, 0x43, 0xd6, 0x9b, 0x14, 0xd6, - 0xfc, 0xeb, 0x02, 0x2c, 0x65, 0x44, 0xb5, 0xe8, 0x81, 0x2a, 0xdb, 0x4f, 0xd5, 0xb3, 0x8a, 0x5e, - 0x63, 0x68, 0xa5, 0x7b, 0xd1, 0xbb, 0x72, 0xdd, 0x8b, 0xea, 0x5d, 0x85, 0x9c, 0xb0, 0xc6, 0x35, - 0xac, 0xbf, 0xe7, 0x67, 0xaa, 0xbf, 0x6f, 0x03, 0x22, 0x1f, 0x0c, 0x7c, 0x4a, 0x54, 0x86, 0xe3, - 0x8b, 0x6b, 0xa0, 0x20, 0x8a, 0x39, 0xd1, 0x63, 0xa4, 0xf5, 0x09, 0x0a, 0x9c, 0x31, 0x0a, 0xad, - 0x40, 0xb5, 0xeb, 0x07, 0x36, 0xe1, 0xfa, 0x8a, 0x93, 0x43, 0xab, 0x07, 0x6d, 0x84, 0x08, 0x1c, - 0xd3, 0xa0, 0xf7, 0xe2, 0xc2, 0x5f, 0x69, 0x86, 0xce, 0x9b, 0xb4, 0x87, 0xd8, 0x8c, 0xa7, 0x56, - 0xfc, 0xd0, 0x2a, 0x5c, 0x11, 0x03, 0x56, 0x77, 0xb7, 0xc2, 0x26, 0x87, 0x7c, 0xa5, 0x76, 0x5d, - 0x0d, 0x91, 0x05, 0xea, 0x18, 0x8d, 0xd3, 0xf4, 0xe6, 0x7f, 0x15, 0x60, 0x29, 0x23, 0x43, 0x8c, - 0x9a, 0x3e, 0xc6, 0x45, 0x34, 0x7d, 0x9e, 0x86, 0xe7, 0x3c, 0x07, 0x65, 0xcf, 0x6f, 0x5b, 0xf6, - 0x21, 0x51, 0xcd, 0xf4, 0xc8, 0x6c, 0xf7, 0x25, 0x18, 0x87, 0xf8, 0xd0, 0xc9, 0x0a, 0x33, 0x39, - 0xd9, 0xb9, 0x1d, 0xe3, 0xf5, 0x30, 0xab, 0xef, 0x3a, 0x2e, 0xd9, 0xb5, 0xd8, 0xa1, 0xaa, 0x59, - 0x47, 0xb1, 0xc0, 0x5a, 0x02, 0x8b, 0x53, 0xd4, 0xe8, 0x4d, 0xa8, 0xca, 0xc5, 0x0b, 0x7a, 0xf4, - 0x5c, 0x0d, 0xaa, 0x48, 0xad, 0x56, 0x38, 0x1c, 0xc7, 0x9c, 0xd0, 0x00, 0xae, 0x8b, 0x48, 0x8d, - 0x9f, 0x94, 0x7d, 0xe7, 0x9b, 0xa2, 0xa6, 0xa6, 0x5e, 0xe7, 0xc8, 0xda, 0xd9, 0x2b, 0x3c, 0x09, - 0xdd, 0xca, 0x26, 0x79, 0x74, 0x3a, 0x0a, 0x9f, 0xc6, 0xd6, 0xfc, 0x3d, 0x03, 0xb2, 0x5b, 0x46, - 0xc9, 0x29, 0x1a, 0x17, 0x36, 0xc5, 0x67, 0x62, 0xd7, 0x90, 0x15, 0xdd, 0x5a, 0x96, 0x5b, 0x98, - 0x7f, 0x6a, 0xc0, 0x52, 0x46, 0xae, 0xfa, 0x59, 0x3d, 0xf7, 0xbf, 0x9d, 0x4f, 0xab, 0xbb, 0x7e, - 0x4c, 0x3c, 0x36, 0x5d, 0xcb, 0xea, 0x6d, 0xd9, 0x16, 0x92, 0x5b, 0xf3, 0xa7, 0xa7, 0xcd, 0x29, - 0x45, 0x61, 0x30, 0xd9, 0x0f, 0xba, 0x90, 0x03, 0xfd, 0xf4, 0x8e, 0x66, 0xe1, 0x7f, 0xbf, 0xa3, - 0x69, 0xfe, 0xd0, 0x80, 0xf9, 0x64, 0x4f, 0x0c, 0x7d, 0x01, 0xf2, 0xc3, 0xc0, 0x51, 0x4b, 0x10, - 0xcd, 0xe7, 0x4d, 0xbc, 0x85, 0x39, 0x9c, 0xa3, 0x03, 0xd2, 0x55, 0xeb, 0x1b, 0xa1, 0x31, 0xe9, - 0x62, 0x0e, 0x47, 0x0f, 0xa1, 0x36, 0x08, 0xfc, 0x0f, 0x4e, 0x64, 0xc5, 0x78, 0xa6, 0xf7, 0xa3, - 0xbb, 0x31, 0x9f, 0xb8, 0x84, 0xa9, 0x01, 0xb1, 0x2e, 0x49, 0x04, 0x3e, 0x93, 0x75, 0x92, 0xcf, - 0xea, 0x06, 0xf8, 0x93, 0x1c, 0x94, 0x95, 0xd3, 0xa1, 0x6f, 0x19, 0x30, 0xdf, 0x4b, 0xac, 0xc1, - 0x4c, 0x9a, 0xa6, 0x5a, 0x9c, 0xd1, 0x11, 0x9d, 0x84, 0xe3, 0x94, 0x48, 0xf4, 0x5b, 0x06, 0x2c, - 0xf6, 0x1c, 0x96, 0x9c, 0xe7, 0x4c, 0x4d, 0xe0, 0xcd, 0x34, 0xb7, 0xd6, 0x0d, 0xa5, 0xcb, 0xe2, - 0x04, 0x0a, 0x4f, 0xca, 0x36, 0xff, 0x40, 0xae, 0x68, 0xaa, 0xd8, 0xf3, 0x19, 0x79, 0xf0, 0xfd, - 0x8f, 0x39, 0x98, 0x9c, 0x05, 0x5f, 0x7e, 0x5b, 0x66, 0x35, 0x46, 0xe6, 0xdf, 0x0e, 0x14, 0x16, - 0x79, 0x50, 0xb2, 0xc4, 0xbb, 0xfd, 0x99, 0x0c, 0x2c, 0x85, 0xb7, 0x7d, 0x8f, 0x05, 0xbe, 0xfb, - 0x26, 0x25, 0x81, 0xf6, 0x7c, 0x5e, 0x70, 0xc7, 0x4a, 0x0a, 0x7a, 0x08, 0x55, 0x3b, 0x7c, 0x8d, - 0x3f, 0xd3, 0x7b, 0xe4, 0x49, 0x91, 0xda, 0x7b, 0x42, 0x25, 0x00, 0xc7, 0xb2, 0xce, 0xd1, 0x29, - 0x34, 0x7f, 0xd7, 0x80, 0x85, 0x74, 0x89, 0x91, 0x8f, 0x17, 0x57, 0xf1, 0xd6, 0x5a, 0xba, 0xf2, - 0xbb, 0x25, 0xc1, 0x38, 0xc4, 0xa3, 0x3d, 0x28, 0xf3, 0x80, 0x0d, 0xab, 0xc3, 0xe9, 0xdc, 0x81, - 0x9f, 0xb8, 0x58, 0x37, 0x24, 0x07, 0x1c, 0xb2, 0x32, 0xff, 0xd2, 0x00, 0x34, 0x59, 0x32, 0x42, - 0xbb, 0x70, 0xd5, 0xb5, 0x28, 0x8b, 0xba, 0xb9, 0x5b, 0x09, 0x25, 0x6f, 0x29, 0x25, 0xaf, 0xee, - 0x64, 0xd0, 0xe0, 0xcc, 0x91, 0x51, 0xd0, 0x9a, 0xbb, 0x80, 0xa0, 0xd5, 0xec, 0x00, 0xc4, 0x4f, - 0xdd, 0xd0, 0x6d, 0x28, 0x78, 0x56, 0x3f, 0xbc, 0x55, 0xa3, 0xf4, 0x48, 0xfc, 0xf9, 0x43, 0x60, - 0xd0, 0x97, 0xa0, 0x78, 0x6c, 0xb9, 0xc3, 0xf0, 0xdf, 0x35, 0xd1, 0x63, 0xd3, 0xb7, 0x38, 0x10, - 0x4b, 0x9c, 0xf9, 0x67, 0x39, 0xa8, 0x69, 0x8f, 0x1b, 0x2e, 0x3e, 0x49, 0x73, 0xa0, 0x38, 0xb0, - 0xd8, 0x61, 0xf8, 0x5c, 0x76, 0x6d, 0xd6, 0xe7, 0x17, 0x3c, 0xf4, 0x8c, 0xe7, 0xc2, 0xbf, 0x28, - 0x96, 0x12, 0x52, 0x51, 0x7d, 0xfe, 0x49, 0x44, 0xf5, 0xe6, 0xaf, 0x1b, 0x70, 0x25, 0xa5, 0x0d, - 0xba, 0x0b, 0x40, 0xa3, 0x2f, 0xb5, 0x20, 0x51, 0xc1, 0x22, 0xa6, 0xc3, 0x1a, 0x95, 0x08, 0xbe, - 0x09, 0x65, 0x8e, 0x27, 0x02, 0xd1, 0x35, 0x27, 0x50, 0xab, 0x14, 0x07, 0xdf, 0x09, 0x2c, 0x4e, - 0x51, 0x9b, 0xff, 0x6a, 0xc0, 0xad, 0xb3, 0x5a, 0x35, 0x3c, 0x15, 0x53, 0xfd, 0x98, 0x28, 0xbc, - 0x37, 0x92, 0xa9, 0xd8, 0x76, 0x12, 0x8d, 0xd3, 0xf4, 0xe8, 0x65, 0xa8, 0x69, 0x20, 0xa5, 0x60, - 0x74, 0x69, 0x6b, 0xc3, 0xb1, 0x4e, 0x77, 0x21, 0x11, 0x96, 0xf9, 0x4f, 0x06, 0x5c, 0xcd, 0xaa, - 0x95, 0xa0, 0x93, 0xf0, 0xf9, 0xb5, 0x0c, 0xc7, 0xf7, 0x2e, 0xac, 0x0a, 0xd3, 0x14, 0x8f, 0xb0, - 0xd7, 0x3d, 0x16, 0x9c, 0x64, 0x3f, 0xcc, 0xbe, 0xf9, 0x2a, 0x40, 0x4c, 0x83, 0x16, 0x20, 0x7f, - 0x44, 0x4e, 0xa4, 0x51, 0x31, 0xff, 0x89, 0xae, 0x26, 0x36, 0x9c, 0xda, 0x61, 0xaf, 0xe5, 0x5e, - 0x35, 0x5e, 0xab, 0xfc, 0xfe, 0x1f, 0x37, 0x2e, 0x7d, 0xf8, 0x2f, 0xb7, 0x2f, 0x99, 0xbf, 0x6d, - 0x80, 0x1e, 0xee, 0xa0, 0xaf, 0x40, 0xf5, 0x90, 0xb1, 0x81, 0x00, 0xa9, 0x07, 0x1b, 0xe2, 0x09, - 0xf2, 0xbd, 0xbd, 0xbd, 0x5d, 0x01, 0xc4, 0x31, 0x1e, 0x35, 0x01, 0xf8, 0x07, 0x95, 0xd4, 0x85, - 0xf8, 0x6d, 0x15, 0xa7, 0xee, 0x48, 0x72, 0x8d, 0x42, 0xe6, 0x19, 0x92, 0x58, 0xfe, 0x75, 0x4d, - 0xe5, 0x19, 0x92, 0x32, 0xc4, 0x99, 0x7f, 0x6e, 0xc0, 0xe2, 0xc4, 0xbb, 0x1e, 0xf4, 0x4e, 0x14, - 0xf5, 0x18, 0xd3, 0xef, 0xa4, 0xec, 0x48, 0x69, 0x66, 0xef, 0xff, 0xbe, 0x01, 0x10, 0x17, 0x24, - 0x90, 0x0b, 0x73, 0x92, 0x71, 0x22, 0xd2, 0x9a, 0x46, 0xe1, 0xab, 0x4a, 0x81, 0xb9, 0x8e, 0xc6, - 0x0f, 0x27, 0xb8, 0xf3, 0x44, 0xbb, 0xef, 0x0f, 0x3d, 0x26, 0xf6, 0x54, 0x2e, 0xf9, 0xfe, 0xfe, - 0x8d, 0x10, 0x81, 0x63, 0x1a, 0xf3, 0xbb, 0x45, 0x58, 0xca, 0xe8, 0x36, 0xff, 0x3f, 0x2e, 0x88, - 0x3d, 0x07, 0x65, 0xf9, 0x3c, 0x9a, 0xa6, 0x23, 0x08, 0xf9, 0x7a, 0x9a, 0xe2, 0x10, 0x8f, 0xee, - 0x40, 0xcd, 0xf1, 0x6c, 0x59, 0x83, 0xb6, 0xc2, 0xc2, 0x86, 0x6c, 0xee, 0xc4, 0x60, 0xac, 0xd3, - 0x24, 0x2b, 0x21, 0xa5, 0x4f, 0x51, 0x09, 0xb1, 0x61, 0x4e, 0xfd, 0x1b, 0x57, 0xbe, 0x5e, 0x2e, - 0x4f, 0xb3, 0x20, 0xa2, 0x88, 0x8b, 0x35, 0x36, 0x38, 0xc1, 0x14, 0xfd, 0x86, 0x01, 0x0b, 0x0a, - 0xb0, 0x1a, 0x30, 0xa7, 0x6b, 0xd9, 0xd1, 0x53, 0xbc, 0x8b, 0xb9, 0x14, 0xeb, 0x6a, 0x8e, 0x0b, - 0x38, 0x25, 0x05, 0x4f, 0xc8, 0x35, 0xdf, 0x81, 0xc5, 0x89, 0xa8, 0xef, 0xd3, 0x85, 0x14, 0x44, - 0xfc, 0x5b, 0x34, 0x15, 0x52, 0xc8, 0x3f, 0x89, 0x4a, 0x9c, 0xf9, 0x3d, 0x03, 0xe6, 0x53, 0x21, - 0xf4, 0x54, 0x25, 0x00, 0x4b, 0x2f, 0x01, 0x5c, 0x54, 0xb6, 0x92, 0x28, 0x06, 0x98, 0xdb, 0x90, - 0xfd, 0x1a, 0x37, 0xed, 0x75, 0xc6, 0xe3, 0xbd, 0xce, 0xfc, 0x87, 0x1c, 0x54, 0xa3, 0xd7, 0x48, - 0xe8, 0x85, 0x84, 0x2d, 0x6f, 0xe8, 0xb6, 0x7c, 0x34, 0x6a, 0x48, 0x42, 0xcd, 0xb0, 0xdf, 0x80, - 0x6a, 0xf4, 0xf6, 0x4d, 0xcd, 0xf8, 0x3c, 0xef, 0xdb, 0x22, 0xf7, 0x8e, 0x1e, 0xd4, 0xe1, 0x98, - 0x1f, 0x8f, 0x6b, 0xc3, 0xc7, 0x69, 0x6f, 0x38, 0xae, 0xeb, 0x50, 0xd5, 0x17, 0xc9, 0x8b, 0xbe, - 0x48, 0x14, 0xd7, 0xae, 0x65, 0xd0, 0xe0, 0xcc, 0x91, 0x68, 0x1f, 0x8a, 0x94, 0x91, 0x01, 0x55, - 0x25, 0xcb, 0xaf, 0x4e, 0xf9, 0x74, 0x8b, 0x0c, 0x44, 0x81, 0x26, 0x72, 0x23, 0x0e, 0xa1, 0x58, - 0xb2, 0x36, 0xff, 0xd3, 0x80, 0x4a, 0x48, 0x82, 0x9e, 0x4f, 0x98, 0xb3, 0x9e, 0x32, 0xa7, 0xa0, - 0xfb, 0x3f, 0x6b, 0x4d, 0xb3, 0x0b, 0xf3, 0xc9, 0xb6, 0xae, 0x56, 0x71, 0x30, 0xce, 0xaa, 0x38, - 0xa0, 0xe7, 0xa1, 0x62, 0xb9, 0xae, 0xff, 0x70, 0xdd, 0x3b, 0x56, 0x95, 0xc4, 0xa8, 0xe3, 0xb8, - 0xaa, 0xe0, 0x38, 0xa2, 0x68, 0x3d, 0xfb, 0xd1, 0x27, 0xcb, 0x97, 0x7e, 0xf4, 0xc9, 0xf2, 0xa5, - 0x8f, 0x3f, 0x59, 0xbe, 0xf4, 0xe1, 0x78, 0xd9, 0xf8, 0x68, 0xbc, 0x6c, 0xfc, 0x68, 0xbc, 0x6c, - 0x7c, 0x3c, 0x5e, 0x36, 0xfe, 0x6d, 0xbc, 0x6c, 0x7c, 0xf7, 0xdf, 0x97, 0x2f, 0xbd, 0x93, 0x3b, - 0xbe, 0xf3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xaf, 0x63, 0x21, 0x52, 0xc5, 0x41, 0x00, 0x00, -} diff --git a/pkg/build/apis/build/v1/generated.proto b/pkg/build/apis/build/v1/generated.proto index 52dd22c7c4d4..3fdd826533f7 100644 --- a/pkg/build/apis/build/v1/generated.proto +++ b/pkg/build/apis/build/v1/generated.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.build.apis.build.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,33 +13,42 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // BinaryBuildRequestOptions are the options required to fully speficy a binary build request message BinaryBuildRequestOptions { // metadata for BinaryBuildRequestOptions. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // asFile determines if the binary should be created as a file within the source rather than extracted as an archive - optional string asFile = 2; + optional string asFile = 2 [(gogoproto.customname) = "AsFile", (gogoproto.nullable) = false]; // revision.commit is the value identifying a specific commit - optional string revisionCommit = 3; + optional string revisionCommit = 3 [(gogoproto.customname) = "Commit", (gogoproto.nullable) = false]; // revision.message is the description of a specific commit - optional string revisionMessage = 4; + optional string revisionMessage = 4 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; // revision.authorName of the source control user - optional string revisionAuthorName = 5; + optional string revisionAuthorName = 5 [(gogoproto.customname) = "AuthorName", (gogoproto.nullable) = false]; // revision.authorEmail of the source control user - optional string revisionAuthorEmail = 6; + optional string revisionAuthorEmail = 6 [(gogoproto.customname) = "AuthorEmail", (gogoproto.nullable) = false]; // revision.committerName of the source control user - optional string revisionCommitterName = 7; + optional string revisionCommitterName = 7 [(gogoproto.customname) = "CommitterName", (gogoproto.nullable) = false]; // revision.committerEmail of the source control user - optional string revisionCommitterEmail = 8; + optional string revisionCommitterEmail = 8 [(gogoproto.customname) = "CommitterEmail", (gogoproto.nullable) = false]; } // BinaryBuildSource describes a binary file to be used for the Docker and Source build strategies, @@ -50,26 +60,26 @@ message BinaryBuildSource { // strategies assume this file is a zip, tar, or tar.gz file and extract it as the source. // The custom strategy receives this binary as standard input. This filename may not // contain slashes or be '..' or '.'. - optional string asFile = 1; + optional string asFile = 1 [(gogoproto.customname) = "AsFile", (gogoproto.nullable) = false]; } // BitbucketWebHookCause has information about a Bitbucket webhook that triggered a // build. message BitbucketWebHookCause { - optional CommonWebHookCause commonSpec = 1; + optional CommonWebHookCause commonSpec = 1 [(gogoproto.customname) = "CommonWebHookCause", (gogoproto.nullable) = false]; } // Build encapsulates the inputs needed to produce a new deployable image, as well as // the status of the execution and a reference to the Pod which executed the build. message Build { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // spec is all the inputs used to execute the build. - optional BuildSpec spec = 2; + optional BuildSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // status is the current status of the build. - optional BuildStatus status = 3; + optional BuildStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // Build configurations define a build process for new Docker images. There are three types of builds possible - a Docker build using a Dockerfile, a Source-to-Image build that uses a specially prepared base image that accepts source code that it can make runnable, and a custom build that can run // arbitrary Docker images as a base and accept the build parameters. Builds run on the cluster and on completion are pushed to the Docker registry specified in the "output" section. A build can be triggered via a webhook, when the base image changes, or when a user manually requests a new build be // created. @@ -77,23 +87,23 @@ message Build { // Each build created by a build configuration is numbered and refers back to its parent configuration. Multiple builds can be triggered at once. Builds that do not have "output" set can be used to test code or run a verification build. message BuildConfig { // metadata for BuildConfig. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // spec holds all the input necessary to produce a new build, and the conditions when // to trigger them. - optional BuildConfigSpec spec = 2; + optional BuildConfigSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // status holds any relevant information about a build config - optional BuildConfigStatus status = 3; + optional BuildConfigStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // BuildConfigList is a collection of BuildConfigs. message BuildConfigList { // metadata for BuildConfigList. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // items is a list of build configs - repeated BuildConfig items = 2; + repeated BuildConfig items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // BuildConfigSpec describes when and how builds are created @@ -101,38 +111,38 @@ message BuildConfigSpec { // triggers determine how new Builds can be launched from a BuildConfig. If // no triggers are defined, a new build can only occur as a result of an // explicit client build creation. - repeated BuildTriggerPolicy triggers = 1; + repeated BuildTriggerPolicy triggers = 1 [(gogoproto.customname) = "Triggers", (gogoproto.nullable) = false]; // RunPolicy describes how the new build created from this build // configuration will be scheduled for execution. // This is optional, if not specified we default to "Serial". - optional string runPolicy = 2; + optional string runPolicy = 2 [(gogoproto.casttype) = "BuildRunPolicy", (gogoproto.customname) = "RunPolicy", (gogoproto.nullable) = false]; // CommonSpec is the desired build specification - optional CommonSpec commonSpec = 3; + optional CommonSpec commonSpec = 3 [(gogoproto.customname) = "CommonSpec", (gogoproto.nullable) = false]; // successfulBuildsHistoryLimit is the number of old successful builds to retain. // If not specified, all successful builds are retained. - optional int32 successfulBuildsHistoryLimit = 4; + optional int32 successfulBuildsHistoryLimit = 4 [(gogoproto.customname) = "SuccessfulBuildsHistoryLimit"]; // failedBuildsHistoryLimit is the number of old failed builds to retain. // If not specified, all failed builds are retained. - optional int32 failedBuildsHistoryLimit = 5; + optional int32 failedBuildsHistoryLimit = 5 [(gogoproto.customname) = "FailedBuildsHistoryLimit"]; } // BuildConfigStatus contains current state of the build config object. message BuildConfigStatus { // lastVersion is used to inform about number of last triggered build. - optional int64 lastVersion = 1; + optional int64 lastVersion = 1 [(gogoproto.customname) = "LastVersion", (gogoproto.nullable) = false]; } // BuildList is a collection of Builds. message BuildList { // metadata for BuildList. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // items is a list of builds - repeated Build items = 2; + repeated Build items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // BuildLog is the (unused) resource associated with the build log redirector @@ -142,47 +152,47 @@ message BuildLog { // BuildLogOptions is the REST options for a build log message BuildLogOptions { // cointainer for which to stream logs. Defaults to only container if there is one container in the pod. - optional string container = 1; + optional string container = 1 [(gogoproto.customname) = "Container", (gogoproto.nullable) = false]; // follow if true indicates that the build log should be streamed until // the build terminates. - optional bool follow = 2; + optional bool follow = 2 [(gogoproto.customname) = "Follow", (gogoproto.nullable) = false]; // previous returns previous build logs. Defaults to false. - optional bool previous = 3; + optional bool previous = 3 [(gogoproto.customname) = "Previous", (gogoproto.nullable) = false]; // sinceSeconds is a relative time in seconds before the current time from which to show logs. If this value // precedes the time a pod was started, only logs since the pod start will be returned. // If this value is in the future, no logs will be returned. // Only one of sinceSeconds or sinceTime may be specified. - optional int64 sinceSeconds = 4; + optional int64 sinceSeconds = 4 [(gogoproto.customname) = "SinceSeconds"]; // sinceTime is an RFC3339 timestamp from which to show logs. If this value // precedes the time a pod was started, only logs since the pod start will be returned. // If this value is in the future, no logs will be returned. // Only one of sinceSeconds or sinceTime may be specified. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5 [(gogoproto.customname) = "SinceTime"]; // timestamps, If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line // of log output. Defaults to false. - optional bool timestamps = 6; + optional bool timestamps = 6 [(gogoproto.customname) = "Timestamps", (gogoproto.nullable) = false]; // tailLines, If set, is the number of lines from the end of the logs to show. If not specified, // logs are shown from the creation of the container or sinceSeconds or sinceTime - optional int64 tailLines = 7; + optional int64 tailLines = 7 [(gogoproto.customname) = "TailLines"]; // limitBytes, If set, is the number of bytes to read from the server before terminating the // log output. This may not display a complete final line of logging, and may return // slightly more or slightly less than the specified limit. - optional int64 limitBytes = 8; + optional int64 limitBytes = 8 [(gogoproto.customname) = "LimitBytes"]; // noWait if true causes the call to return immediately even if the build // is not available yet. Otherwise the server will wait until the build has started. // TODO: Fix the tag to 'noWait' in v2 - optional bool nowait = 9; + optional bool nowait = 9 [(gogoproto.customname) = "NoWait", (gogoproto.nullable) = false]; // version of the build for which to view logs. - optional int64 version = 10; + optional int64 version = 10 [(gogoproto.customname) = "Version"]; } // BuildOutput is input to a build strategy and describes the Docker image that the strategy @@ -193,16 +203,16 @@ message BuildOutput { // This value will be used to look up a Docker image repository to push to. // In the case of an ImageStreamTag, the ImageStreamTag will be looked for in the namespace of // the build unless Namespace is specified. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference to = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference to = 1 [(gogoproto.customname) = "To"]; // PushSecret is the name of a Secret that would be used for setting // up the authentication for executing the Docker push to authentication // enabled Docker Registry (or Docker Hub). - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pushSecret = 2; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pushSecret = 2 [(gogoproto.customname) = "PushSecret"]; // imageLabels define a list of labels that are applied to the resulting image. If there // are multiple labels with the same name then the last one in the list is used. - repeated ImageLabel imageLabels = 3; + repeated ImageLabel imageLabels = 3 [(gogoproto.customname) = "ImageLabels", (gogoproto.nullable) = false]; } // A BuildPostCommitSpec holds a build post commit hook specification. The hook @@ -275,12 +285,12 @@ message BuildPostCommitSpec { // This might be needed if the image doesn't have `/bin/sh`, or if you // do not want to use a shell. In all other cases, using Script might be // more convenient. - repeated string command = 1; + repeated string command = 1 [(gogoproto.customname) = "Command"]; // args is a list of arguments that are provided to either Command, // Script or the Docker image's default entrypoint. The arguments are // placed immediately after the command to be run. - repeated string args = 2; + repeated string args = 2 [(gogoproto.customname) = "Args"]; // script is a shell script to be run with `/bin/sh -ic`. It may not be // specified with Command. Use Script when a shell script is appropriate @@ -292,50 +302,50 @@ message BuildPostCommitSpec { // collections enabled in the shell. E.g., in the Ruby image, this is // necessary to make `ruby`, `bundle` and other binaries available in // the PATH. - optional string script = 3; + optional string script = 3 [(gogoproto.customname) = "Script", (gogoproto.nullable) = false]; } // BuildRequest is the resource used to pass parameters to build generator message BuildRequest { // metadata for BuildRequest. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // revision is the information from the source for a specific repo snapshot. - optional SourceRevision revision = 2; + optional SourceRevision revision = 2 [(gogoproto.customname) = "Revision"]; // triggeredByImage is the Image that triggered this build. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference triggeredByImage = 3; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference triggeredByImage = 3 [(gogoproto.customname) = "TriggeredByImage"]; // from is the reference to the ImageStreamTag that triggered the build. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 4; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 4 [(gogoproto.customname) = "From"]; // binary indicates a request to build from a binary provided to the builder - optional BinaryBuildSource binary = 5; + optional BinaryBuildSource binary = 5 [(gogoproto.customname) = "Binary"]; // lastVersion (optional) is the LastVersion of the BuildConfig that was used // to generate the build. If the BuildConfig in the generator doesn't match, a build will // not be generated. - optional int64 lastVersion = 6; + optional int64 lastVersion = 6 [(gogoproto.customname) = "LastVersion"]; // env contains additional environment variables you want to pass into a builder container. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 7; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 7 [(gogoproto.customname) = "Env", (gogoproto.nullable) = false]; // triggeredBy describes which triggers started the most recent update to the // build configuration and contains information about those triggers. - repeated BuildTriggerCause triggeredBy = 8; + repeated BuildTriggerCause triggeredBy = 8 [(gogoproto.customname) = "TriggeredBy", (gogoproto.nullable) = false]; // DockerStrategyOptions contains additional docker-strategy specific options for the build - optional DockerStrategyOptions dockerStrategyOptions = 9; + optional DockerStrategyOptions dockerStrategyOptions = 9 [(gogoproto.customname) = "DockerStrategyOptions"]; // SourceStrategyOptions contains additional source-strategy specific options for the build - optional SourceStrategyOptions sourceStrategyOptions = 10; + optional SourceStrategyOptions sourceStrategyOptions = 10 [(gogoproto.customname) = "SourceStrategyOptions"]; } // BuildSource is the SCM used for the build. message BuildSource { // type of build input to accept // +k8s:conversion-gen=false - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "BuildSourceType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // binary builds accept a binary as their input. The binary is generally assumed to be a tar, // gzipped tar, or zip file depending on the strategy. For Docker builds, this is the build @@ -344,7 +354,7 @@ message BuildSource { // Source and Docker builds, if binary.asFile is set the build will receive a directory with // a single file. contextDir may be used when an archive is provided. Custom builds will // receive this binary as input on STDIN. - optional BinaryBuildSource binary = 2; + optional BinaryBuildSource binary = 2 [(gogoproto.customname) = "Binary"]; // dockerfile is the raw contents of a Dockerfile which should be built. When this option is // specified, the FROM may be modified based on your strategy base image and additional ENV @@ -352,96 +362,96 @@ message BuildSource { // of your Dockerfile stanzas. The Dockerfile source type may be used with other options like // git - in those cases the Git repo will have any innate Dockerfile replaced in the context // dir. - optional string dockerfile = 3; + optional string dockerfile = 3 [(gogoproto.customname) = "Dockerfile"]; // git contains optional information about git build source - optional GitBuildSource git = 4; + optional GitBuildSource git = 4 [(gogoproto.customname) = "Git"]; // images describes a set of images to be used to provide source for the build - repeated ImageSource images = 5; + repeated ImageSource images = 5 [(gogoproto.customname) = "Images", (gogoproto.nullable) = false]; // contextDir specifies the sub-directory where the source code for the application exists. // This allows to have buildable sources in directory other than root of // repository. - optional string contextDir = 6; + optional string contextDir = 6 [(gogoproto.customname) = "ContextDir", (gogoproto.nullable) = false]; // sourceSecret is the name of a Secret that would be used for setting // up the authentication for cloning private repository. // The secret contains valid credentials for remote repository, where the // data's key represent the authentication method to be used and value is // the base64 encoded credentials. Supported auth methods are: ssh-privatekey. - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference sourceSecret = 7; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference sourceSecret = 7 [(gogoproto.customname) = "SourceSecret"]; // secrets represents a list of secrets and their destinations that will // be used only for the build. - repeated SecretBuildSource secrets = 8; + repeated SecretBuildSource secrets = 8 [(gogoproto.customname) = "Secrets", (gogoproto.nullable) = false]; } // BuildSpec has the information to represent a build and also additional // information about a build message BuildSpec { // CommonSpec is the information that represents a build - optional CommonSpec commonSpec = 1; + optional CommonSpec commonSpec = 1 [(gogoproto.customname) = "CommonSpec", (gogoproto.nullable) = false]; // triggeredBy describes which triggers started the most recent update to the // build configuration and contains information about those triggers. - repeated BuildTriggerCause triggeredBy = 2; + repeated BuildTriggerCause triggeredBy = 2 [(gogoproto.customname) = "TriggeredBy", (gogoproto.nullable) = false]; } // BuildStatus contains the status of a build message BuildStatus { // phase is the point in the build lifecycle. Possible values are // "New", "Pending", "Running", "Complete", "Failed", "Error", and "Cancelled". - optional string phase = 1; + optional string phase = 1 [(gogoproto.casttype) = "BuildPhase", (gogoproto.customname) = "Phase", (gogoproto.nullable) = false]; // cancelled describes if a cancel event was triggered for the build. - optional bool cancelled = 2; + optional bool cancelled = 2 [(gogoproto.customname) = "Cancelled", (gogoproto.nullable) = false]; // reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. - optional string reason = 3; + optional string reason = 3 [(gogoproto.casttype) = "StatusReason", (gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // message is a human-readable message indicating details about why the build has this status. - optional string message = 4; + optional string message = 4 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; // startTimestamp is a timestamp representing the server time when this Build started // running in a Pod. // It is represented in RFC3339 form and is in UTC. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTimestamp = 5; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTimestamp = 5 [(gogoproto.customname) = "StartTimestamp"]; // completionTimestamp is a timestamp representing the server time when this Build was // finished, whether that build failed or succeeded. It reflects the time at which // the Pod running the Build terminated. // It is represented in RFC3339 form and is in UTC. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time completionTimestamp = 6; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time completionTimestamp = 6 [(gogoproto.customname) = "CompletionTimestamp"]; // duration contains time.Duration object describing build time. - optional int64 duration = 7; + optional int64 duration = 7 [(gogoproto.casttype) = "time.Duration", (gogoproto.customname) = "Duration", (gogoproto.nullable) = false]; // outputDockerImageReference contains a reference to the Docker image that // will be built by this build. Its value is computed from // Build.Spec.Output.To, and should include the registry address, so that // it can be used to push and pull the image. - optional string outputDockerImageReference = 8; + optional string outputDockerImageReference = 8 [(gogoproto.customname) = "OutputDockerImageReference", (gogoproto.nullable) = false]; // config is an ObjectReference to the BuildConfig this Build is based on. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference config = 9; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference config = 9 [(gogoproto.customname) = "Config"]; // output describes the Docker image the build has produced. - optional BuildStatusOutput output = 10; + optional BuildStatusOutput output = 10 [(gogoproto.customname) = "Output", (gogoproto.nullable) = false]; // stages contains details about each stage that occurs during the build // including start time, duration (in milliseconds), and the steps that // occured within each stage. - repeated StageInfo stages = 11; + repeated StageInfo stages = 11 [(gogoproto.customname) = "Stages", (gogoproto.nullable) = false]; // logSnippet is the last few lines of the build log. This value is only set for builds that failed. - optional string logSnippet = 12; + optional string logSnippet = 12 [(gogoproto.customname) = "LogSnippet", (gogoproto.nullable) = false]; } // BuildStatusOutput contains the status of the built image. message BuildStatusOutput { // to describes the status of the built image being pushed to a registry. - optional BuildStatusOutputTo to = 1; + optional BuildStatusOutputTo to = 1 [(gogoproto.customname) = "To"]; } // BuildStatusOutputTo describes the status of the built image with regards to @@ -453,27 +463,27 @@ message BuildStatusOutputTo { // Please note that this field may not always be set even if the push // completes successfully - e.g. when the registry returns no digest or // returns it in a format that the builder doesn't understand. - optional string imageDigest = 1; + optional string imageDigest = 1 [(gogoproto.customname) = "ImageDigest", (gogoproto.nullable) = false]; } // BuildStrategy contains the details of how to perform a build. message BuildStrategy { // type is the kind of build strategy. // +k8s:conversion-gen=false - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "BuildStrategyType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // dockerStrategy holds the parameters to the Docker build strategy. - optional DockerBuildStrategy dockerStrategy = 2; + optional DockerBuildStrategy dockerStrategy = 2 [(gogoproto.customname) = "DockerStrategy"]; // sourceStrategy holds the parameters to the Source build strategy. - optional SourceBuildStrategy sourceStrategy = 3; + optional SourceBuildStrategy sourceStrategy = 3 [(gogoproto.customname) = "SourceStrategy"]; // customStrategy holds the parameters to the Custom build strategy - optional CustomBuildStrategy customStrategy = 4; + optional CustomBuildStrategy customStrategy = 4 [(gogoproto.customname) = "CustomStrategy"]; // JenkinsPipelineStrategy holds the parameters to the Jenkins Pipeline build strategy. // This strategy is in tech preview. - optional JenkinsPipelineBuildStrategy jenkinsPipelineStrategy = 5; + optional JenkinsPipelineBuildStrategy jenkinsPipelineStrategy = 5 [(gogoproto.customname) = "JenkinsPipelineStrategy"]; } // BuildTriggerCause holds information about a triggered build. It is used for @@ -483,48 +493,48 @@ message BuildStrategy { message BuildTriggerCause { // message is used to store a human readable message for why the build was // triggered. E.g.: "Manually triggered by user", "Configuration change",etc. - optional string message = 1; + optional string message = 1 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; // genericWebHook holds data about a builds generic webhook trigger. - optional GenericWebHookCause genericWebHook = 2; + optional GenericWebHookCause genericWebHook = 2 [(gogoproto.customname) = "GenericWebHook"]; // gitHubWebHook represents data for a GitHub webhook that fired a // specific build. - optional GitHubWebHookCause githubWebHook = 3; + optional GitHubWebHookCause githubWebHook = 3 [(gogoproto.customname) = "GitHubWebHook"]; // imageChangeBuild stores information about an imagechange event // that triggered a new build. - optional ImageChangeCause imageChangeBuild = 4; + optional ImageChangeCause imageChangeBuild = 4 [(gogoproto.customname) = "ImageChangeBuild"]; // GitLabWebHook represents data for a GitLab webhook that fired a specific // build. - optional GitLabWebHookCause gitlabWebHook = 5; + optional GitLabWebHookCause gitlabWebHook = 5 [(gogoproto.customname) = "GitLabWebHook"]; // BitbucketWebHook represents data for a Bitbucket webhook that fired a // specific build. - optional BitbucketWebHookCause bitbucketWebHook = 6; + optional BitbucketWebHookCause bitbucketWebHook = 6 [(gogoproto.customname) = "BitbucketWebHook"]; } // BuildTriggerPolicy describes a policy for a single trigger that results in a new Build. message BuildTriggerPolicy { // type is the type of build trigger - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "BuildTriggerType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // github contains the parameters for a GitHub webhook type of trigger - optional WebHookTrigger github = 2; + optional WebHookTrigger github = 2 [(gogoproto.customname) = "GitHubWebHook"]; // generic contains the parameters for a Generic webhook type of trigger - optional WebHookTrigger generic = 3; + optional WebHookTrigger generic = 3 [(gogoproto.customname) = "GenericWebHook"]; // imageChange contains parameters for an ImageChange type of trigger - optional ImageChangeTrigger imageChange = 4; + optional ImageChangeTrigger imageChange = 4 [(gogoproto.customname) = "ImageChange"]; // GitLabWebHook contains the parameters for a GitLab webhook type of trigger - optional WebHookTrigger gitlab = 5; + optional WebHookTrigger gitlab = 5 [(gogoproto.customname) = "GitLabWebHook"]; // BitbucketWebHook contains the parameters for a Bitbucket webhook type of // trigger - optional WebHookTrigger bitbucket = 6; + optional WebHookTrigger bitbucket = 6 [(gogoproto.customname) = "BitbucketWebHook"]; } // CommonSpec encapsulates all the inputs necessary to represent a build. @@ -532,39 +542,39 @@ message CommonSpec { // serviceAccount is the name of the ServiceAccount to use to run the pod // created by this build. // The pod will be allowed to use secrets referenced by the ServiceAccount - optional string serviceAccount = 1; + optional string serviceAccount = 1 [(gogoproto.customname) = "ServiceAccount", (gogoproto.nullable) = false]; // source describes the SCM in use. - optional BuildSource source = 2; + optional BuildSource source = 2 [(gogoproto.customname) = "Source", (gogoproto.nullable) = false]; // revision is the information from the source for a specific repo snapshot. // This is optional. - optional SourceRevision revision = 3; + optional SourceRevision revision = 3 [(gogoproto.customname) = "Revision"]; // strategy defines how to perform a build. - optional BuildStrategy strategy = 4; + optional BuildStrategy strategy = 4 [(gogoproto.customname) = "Strategy", (gogoproto.nullable) = false]; // output describes the Docker image the Strategy should produce. - optional BuildOutput output = 5; + optional BuildOutput output = 5 [(gogoproto.customname) = "Output", (gogoproto.nullable) = false]; // resources computes resource requirements to execute the build. - optional k8s.io.kubernetes.pkg.api.v1.ResourceRequirements resources = 6; + optional k8s.io.kubernetes.pkg.api.v1.ResourceRequirements resources = 6 [(gogoproto.customname) = "Resources", (gogoproto.nullable) = false]; // postCommit is a build hook executed after the build output image is // committed, before it is pushed to a registry. - optional BuildPostCommitSpec postCommit = 7; + optional BuildPostCommitSpec postCommit = 7 [(gogoproto.customname) = "PostCommit", (gogoproto.nullable) = false]; // completionDeadlineSeconds is an optional duration in seconds, counted from // the time when a build pod gets scheduled in the system, that the build may // be active on a node before the system actively tries to terminate the // build; value must be positive integer - optional int64 completionDeadlineSeconds = 8; + optional int64 completionDeadlineSeconds = 8 [(gogoproto.customname) = "CompletionDeadlineSeconds"]; // nodeSelector is a selector which must be true for the build pod to fit on a node // If nil, it can be overridden by default build nodeselector values for the cluster. // If set to an empty map or a map with any values, default build nodeselector values // are ignored. - optional OptionalNodeSelector nodeSelector = 9; + optional OptionalNodeSelector nodeSelector = 9 [(gogoproto.customname) = "NodeSelector"]; } // CommonWebHookCause factors out the identical format of these webhook @@ -572,40 +582,40 @@ message CommonSpec { // GitHub and Generic but we can leverage this pattern with GitLab and Bitbucket. message CommonWebHookCause { // Revision is the git source revision information of the trigger. - optional SourceRevision revision = 1; + optional SourceRevision revision = 1 [(gogoproto.customname) = "Revision"]; // Secret is the obfuscated webhook secret that triggered a build. - optional string secret = 2; + optional string secret = 2 [(gogoproto.customname) = "Secret", (gogoproto.nullable) = false]; } // CustomBuildStrategy defines input parameters specific to Custom build. message CustomBuildStrategy { // from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which // the docker image should be pulled - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // pullSecret is the name of a Secret that would be used for setting up // the authentication for pulling the Docker images from the private Docker // registries - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 2; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 2 [(gogoproto.customname) = "PullSecret"]; // env contains additional environment variables you want to pass into a builder container. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3 [(gogoproto.customname) = "Env", (gogoproto.nullable) = false]; // exposeDockerSocket will allow running Docker commands (and build Docker images) from // inside the Docker container. // TODO: Allow admins to enforce 'false' for this option - optional bool exposeDockerSocket = 4; + optional bool exposeDockerSocket = 4 [(gogoproto.customname) = "ExposeDockerSocket", (gogoproto.nullable) = false]; // forcePull describes if the controller should configure the build pod to always pull the images // for the builder or only pull if it is not present locally - optional bool forcePull = 5; + optional bool forcePull = 5 [(gogoproto.customname) = "ForcePull", (gogoproto.nullable) = false]; // secrets is a list of additional secrets that will be included in the build pod - repeated SecretSpec secrets = 6; + repeated SecretSpec secrets = 6 [(gogoproto.customname) = "Secrets", (gogoproto.nullable) = false]; // buildAPIVersion is the requested API version for the Build object serialized and passed to the custom builder - optional string buildAPIVersion = 7; + optional string buildAPIVersion = 7 [(gogoproto.customname) = "BuildAPIVersion", (gogoproto.nullable) = false]; } // DockerBuildStrategy defines input parameters specific to Docker build. @@ -613,30 +623,30 @@ message DockerBuildStrategy { // from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which // the docker image should be pulled // the resulting image will be used in the FROM line of the Dockerfile for this build. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From"]; // pullSecret is the name of a Secret that would be used for setting up // the authentication for pulling the Docker images from the private Docker // registries - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 2; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 2 [(gogoproto.customname) = "PullSecret"]; // noCache if set to true indicates that the docker build must be executed with the // --no-cache=true flag - optional bool noCache = 3; + optional bool noCache = 3 [(gogoproto.customname) = "NoCache", (gogoproto.nullable) = false]; // env contains additional environment variables you want to pass into a builder container. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 4; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 4 [(gogoproto.customname) = "Env", (gogoproto.nullable) = false]; // forcePull describes if the builder should pull the images from registry prior to building. - optional bool forcePull = 5; + optional bool forcePull = 5 [(gogoproto.customname) = "ForcePull", (gogoproto.nullable) = false]; // dockerfilePath is the path of the Dockerfile that will be used to build the Docker image, // relative to the root of the context (contextDir). - optional string dockerfilePath = 6; + optional string dockerfilePath = 6 [(gogoproto.customname) = "DockerfilePath", (gogoproto.nullable) = false]; // buildArgs contains build arguments that will be resolved in the Dockerfile. See // https://docs.docker.com/engine/reference/builder/#/arg for more details. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar buildArgs = 7; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar buildArgs = 7 [(gogoproto.customname) = "BuildArgs", (gogoproto.nullable) = false]; // imageOptimizationPolicy describes what optimizations the system can use when building images // to reduce the final size or time spent building the image. The default policy is 'None' which @@ -645,17 +655,17 @@ message DockerBuildStrategy { // image step, and will fail if the Dockerfile cannot provide compatibility with the 'None' // policy. An additional experimental policy 'SkipLayersAndWarn' is the same as // 'SkipLayers' but simply warns if compatibility cannot be preserved. - optional string imageOptimizationPolicy = 8; + optional string imageOptimizationPolicy = 8 [(gogoproto.casttype) = "ImageOptimizationPolicy", (gogoproto.customname) = "ImageOptimizationPolicy"]; } // DockerStrategyOptions contains extra strategy options for Docker builds message DockerStrategyOptions { // Args contains any build arguments that are to be passed to Docker. See // https://docs.docker.com/engine/reference/builder/#/arg for more details - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar buildArgs = 1; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar buildArgs = 1 [(gogoproto.customname) = "BuildArgs", (gogoproto.nullable) = false]; // noCache overrides the docker-strategy noCache option in the build config - optional bool noCache = 2; + optional bool noCache = 2 [(gogoproto.customname) = "NoCache"]; } // GenericWebHookCause holds information about a generic WebHook that @@ -663,111 +673,111 @@ message DockerStrategyOptions { message GenericWebHookCause { // revision is an optional field that stores the git source revision // information of the generic webhook trigger when it is available. - optional SourceRevision revision = 1; + optional SourceRevision revision = 1 [(gogoproto.customname) = "Revision"]; // secret is the obfuscated webhook secret that triggered a build. - optional string secret = 2; + optional string secret = 2 [(gogoproto.customname) = "Secret", (gogoproto.nullable) = false]; } // GenericWebHookEvent is the payload expected for a generic webhook post message GenericWebHookEvent { // type is the type of source repository // +k8s:conversion-gen=false - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "BuildSourceType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // git is the git information if the Type is BuildSourceGit - optional GitInfo git = 2; + optional GitInfo git = 2 [(gogoproto.customname) = "Git"]; // env contains additional environment variables you want to pass into a builder container. // ValueFrom is not supported. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3 [(gogoproto.customname) = "Env", (gogoproto.nullable) = false]; // DockerStrategyOptions contains additional docker-strategy specific options for the build - optional DockerStrategyOptions dockerStrategyOptions = 4; + optional DockerStrategyOptions dockerStrategyOptions = 4 [(gogoproto.customname) = "DockerStrategyOptions"]; } // GitBuildSource defines the parameters of a Git SCM message GitBuildSource { // uri points to the source that will be built. The structure of the source // will depend on the type of build to run - optional string uri = 1; + optional string uri = 1 [(gogoproto.customname) = "URI", (gogoproto.nullable) = false]; // ref is the branch/tag/ref to build. - optional string ref = 2; + optional string ref = 2 [(gogoproto.customname) = "Ref", (gogoproto.nullable) = false]; // proxyConfig defines the proxies to use for the git clone operation - optional ProxyConfig proxyConfig = 3; + optional ProxyConfig proxyConfig = 3 [(gogoproto.customname) = "ProxyConfig", (gogoproto.nullable) = false]; } // GitHubWebHookCause has information about a GitHub webhook that triggered a // build. message GitHubWebHookCause { // revision is the git revision information of the trigger. - optional SourceRevision revision = 1; + optional SourceRevision revision = 1 [(gogoproto.customname) = "Revision"]; // secret is the obfuscated webhook secret that triggered a build. - optional string secret = 2; + optional string secret = 2 [(gogoproto.customname) = "Secret", (gogoproto.nullable) = false]; } // GitInfo is the aggregated git information for a generic webhook post message GitInfo { - optional GitBuildSource gitBuildSource = 1; + optional GitBuildSource gitBuildSource = 1 [(gogoproto.customname) = "GitBuildSource", (gogoproto.nullable) = false]; - optional GitSourceRevision gitSourceRevision = 2; + optional GitSourceRevision gitSourceRevision = 2 [(gogoproto.customname) = "GitSourceRevision", (gogoproto.nullable) = false]; } // GitLabWebHookCause has information about a GitLab webhook that triggered a // build. message GitLabWebHookCause { - optional CommonWebHookCause commonSpec = 1; + optional CommonWebHookCause commonSpec = 1 [(gogoproto.customname) = "CommonWebHookCause", (gogoproto.nullable) = false]; } // GitSourceRevision is the commit information from a git source for a build message GitSourceRevision { // commit is the commit hash identifying a specific commit - optional string commit = 1; + optional string commit = 1 [(gogoproto.customname) = "Commit", (gogoproto.nullable) = false]; // author is the author of a specific commit - optional SourceControlUser author = 2; + optional SourceControlUser author = 2 [(gogoproto.customname) = "Author", (gogoproto.nullable) = false]; // committer is the committer of a specific commit - optional SourceControlUser committer = 3; + optional SourceControlUser committer = 3 [(gogoproto.customname) = "Committer", (gogoproto.nullable) = false]; // message is the description of a specific commit - optional string message = 4; + optional string message = 4 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; } // ImageChangeCause contains information about the image that triggered a // build message ImageChangeCause { // imageID is the ID of the image that triggered a a new build. - optional string imageID = 1; + optional string imageID = 1 [(gogoproto.customname) = "ImageID", (gogoproto.nullable) = false]; // fromRef contains detailed information about an image that triggered a // build. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference fromRef = 2; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference fromRef = 2 [(gogoproto.customname) = "FromRef"]; } // ImageChangeTrigger allows builds to be triggered when an ImageStream changes message ImageChangeTrigger { // lastTriggeredImageID is used internally by the ImageChangeController to save last // used image ID for build - optional string lastTriggeredImageID = 1; + optional string lastTriggeredImageID = 1 [(gogoproto.customname) = "LastTriggeredImageID", (gogoproto.nullable) = false]; // from is a reference to an ImageStreamTag that will trigger a build when updated // It is optional. If no From is specified, the From image from the build strategy // will be used. Only one ImageChangeTrigger with an empty From reference is allowed in // a build configuration. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 2; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 2 [(gogoproto.customname) = "From"]; } // ImageLabel represents a label applied to the resulting image. message ImageLabel { // name defines the name of the label. It must have non-zero length. - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // value defines the literal value of the label. - optional string value = 2; + optional string value = 2 [(gogoproto.customname) = "Value", (gogoproto.nullable) = false]; } // ImageSource is used to describe build source that will be extracted from an image. A reference of @@ -778,14 +788,14 @@ message ImageLabel { message ImageSource { // from is a reference to an ImageStreamTag, ImageStreamImage, or DockerImage to // copy source from. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // paths is a list of source and destination paths to copy from the image. - repeated ImageSourcePath paths = 2; + repeated ImageSourcePath paths = 2 [(gogoproto.customname) = "Paths", (gogoproto.nullable) = false]; // pullSecret is a reference to a secret to be used to pull the image from a registry // If the image is pulled from the OpenShift registry, this field does not need to be set. - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 3; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 3 [(gogoproto.customname) = "PullSecret"]; } // ImageSourcePath describes a path to be copied from a source image and its destination within the build directory. @@ -794,11 +804,11 @@ message ImageSourcePath { // copy to the build directory. If the source path ends in /. then the content of // the directory will be copied, but the directory itself will not be created at the // destination. - optional string sourcePath = 1; + optional string sourcePath = 1 [(gogoproto.customname) = "SourcePath", (gogoproto.nullable) = false]; // destinationDir is the relative directory within the build directory // where files copied from the image are placed. - optional string destinationDir = 2; + optional string destinationDir = 2 [(gogoproto.customname) = "DestinationDir", (gogoproto.nullable) = false]; } // JenkinsPipelineBuildStrategy holds parameters specific to a Jenkins Pipeline build. @@ -807,34 +817,37 @@ message JenkinsPipelineBuildStrategy { // JenkinsfilePath is the optional path of the Jenkinsfile that will be used to configure the pipeline // relative to the root of the context (contextDir). If both JenkinsfilePath & Jenkinsfile are // both not specified, this defaults to Jenkinsfile in the root of the specified contextDir. - optional string jenkinsfilePath = 1; + optional string jenkinsfilePath = 1 [(gogoproto.customname) = "JenkinsfilePath", (gogoproto.nullable) = false]; // Jenkinsfile defines the optional raw contents of a Jenkinsfile which defines a Jenkins pipeline build. - optional string jenkinsfile = 2; + optional string jenkinsfile = 2 [(gogoproto.customname) = "Jenkinsfile", (gogoproto.nullable) = false]; // env contains additional environment variables you want to pass into a build pipeline. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3 [(gogoproto.customname) = "Env", (gogoproto.nullable) = false]; } // OptionalNodeSelector is a map that may also be left nil to distinguish between set and unset. // +protobuf.nullable=true // +protobuf.options.(gogoproto.goproto_stringer)=false message OptionalNodeSelector { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + // items, if empty, will result in an empty map - map items = 1; + map items = 1 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ProxyConfig defines what proxies to use for an operation message ProxyConfig { // httpProxy is a proxy used to reach the git repository over http - optional string httpProxy = 3; + optional string httpProxy = 3 [(gogoproto.customname) = "HTTPProxy"]; // httpsProxy is a proxy used to reach the git repository over https - optional string httpsProxy = 4; + optional string httpsProxy = 4 [(gogoproto.customname) = "HTTPSProxy"]; // noProxy is the list of domains for which the proxy should not be used - optional string noProxy = 5; + optional string noProxy = 5 [(gogoproto.customname) = "NoProxy"]; } // SecretBuildSource describes a secret and its destination directory that will be @@ -843,7 +856,7 @@ message ProxyConfig { message SecretBuildSource { // secret is a reference to an existing secret that you want to use in your // build. - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference secret = 1; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference secret = 1 [(gogoproto.customname) = "Secret", (gogoproto.nullable) = false]; // destinationDir is the directory where the files from the secret should be // available for the build time. @@ -853,40 +866,40 @@ message SecretBuildSource { // For the Docker build strategy, these will be copied into the build // directory, where the Dockerfile is located, so users can ADD or COPY them // during docker build. - optional string destinationDir = 2; + optional string destinationDir = 2 [(gogoproto.customname) = "DestinationDir", (gogoproto.nullable) = false]; } // SecretSpec specifies a secret to be included in a build pod and its corresponding mount point message SecretSpec { // secretSource is a reference to the secret - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference secretSource = 1; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference secretSource = 1 [(gogoproto.customname) = "SecretSource", (gogoproto.nullable) = false]; // mountPath is the path at which to mount the secret - optional string mountPath = 2; + optional string mountPath = 2 [(gogoproto.customname) = "MountPath", (gogoproto.nullable) = false]; } // SourceBuildStrategy defines input parameters specific to an Source build. message SourceBuildStrategy { // from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which // the docker image should be pulled - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // pullSecret is the name of a Secret that would be used for setting up // the authentication for pulling the Docker images from the private Docker // registries - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 2; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference pullSecret = 2 [(gogoproto.customname) = "PullSecret"]; // env contains additional environment variables you want to pass into a builder container. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 3 [(gogoproto.customname) = "Env", (gogoproto.nullable) = false]; // scripts is the location of Source scripts - optional string scripts = 4; + optional string scripts = 4 [(gogoproto.customname) = "Scripts", (gogoproto.nullable) = false]; // incremental flag forces the Source build to do incremental builds if true. - optional bool incremental = 5; + optional bool incremental = 5 [(gogoproto.customname) = "Incremental"]; // forcePull describes if the builder should pull the images from registry prior to building. - optional bool forcePull = 6; + optional bool forcePull = 6 [(gogoproto.customname) = "ForcePull", (gogoproto.nullable) = false]; // runtimeImage is an optional image that is used to run an application // without unneeded dependencies installed. The building of the application @@ -894,7 +907,7 @@ message SourceBuildStrategy { // needed artifacts in the runtime image for use. // Deprecated: This feature will be removed in a future release. Use ImageSource // to copy binary artifacts created from one build into a separate runtime image. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference runtimeImage = 7; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference runtimeImage = 7 [(gogoproto.customname) = "RuntimeImage"]; // runtimeArtifacts specifies a list of source/destination pairs that will be // copied from the builder to the runtime image. sourcePath can be a file or @@ -902,75 +915,75 @@ message SourceBuildStrategy { // empty or equal to ".", in this case it just refers to the root of WORKDIR. // Deprecated: This feature will be removed in a future release. Use ImageSource // to copy binary artifacts created from one build into a separate runtime image. - repeated ImageSourcePath runtimeArtifacts = 8; + repeated ImageSourcePath runtimeArtifacts = 8 [(gogoproto.customname) = "RuntimeArtifacts", (gogoproto.nullable) = false]; } // SourceControlUser defines the identity of a user of source control message SourceControlUser { // name of the source control user - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // email of the source control user - optional string email = 2; + optional string email = 2 [(gogoproto.customname) = "Email", (gogoproto.nullable) = false]; } // SourceRevision is the revision or commit information from the source for the build message SourceRevision { // type of the build source, may be one of 'Source', 'Dockerfile', 'Binary', or 'Images' // +k8s:conversion-gen=false - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "BuildSourceType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Git contains information about git-based build source - optional GitSourceRevision git = 2; + optional GitSourceRevision git = 2 [(gogoproto.customname) = "Git"]; } // SourceStrategyOptions contains extra strategy options for Source builds message SourceStrategyOptions { // incremental overrides the source-strategy incremental option in the build config - optional bool incremental = 1; + optional bool incremental = 1 [(gogoproto.customname) = "Incremental"]; } // StageInfo contains details about a build stage. message StageInfo { // name is a unique identifier for each build stage that occurs. - optional string name = 1; + optional string name = 1 [(gogoproto.casttype) = "StageName", (gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // startTime is a timestamp representing the server time when this Stage started. // It is represented in RFC3339 form and is in UTC. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 2; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 2 [(gogoproto.customname) = "StartTime", (gogoproto.nullable) = false]; // durationMilliseconds identifies how long the stage took // to complete in milliseconds. // Note: the duration of a stage can exceed the sum of the duration of the steps within // the stage as not all actions are accounted for in explicit build steps. - optional int64 durationMilliseconds = 3; + optional int64 durationMilliseconds = 3 [(gogoproto.customname) = "DurationMilliseconds", (gogoproto.nullable) = false]; // steps contains details about each step that occurs during a build stage // including start time and duration in milliseconds. - repeated StepInfo steps = 4; + repeated StepInfo steps = 4 [(gogoproto.customname) = "Steps", (gogoproto.nullable) = false]; } // StepInfo contains details about a build step. message StepInfo { // name is a unique identifier for each build step. - optional string name = 1; + optional string name = 1 [(gogoproto.casttype) = "StepName", (gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // startTime is a timestamp representing the server time when this Step started. // it is represented in RFC3339 form and is in UTC. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 2; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 2 [(gogoproto.customname) = "StartTime", (gogoproto.nullable) = false]; // durationMilliseconds identifies how long the step took // to complete in milliseconds. - optional int64 durationMilliseconds = 3; + optional int64 durationMilliseconds = 3 [(gogoproto.customname) = "DurationMilliseconds", (gogoproto.nullable) = false]; } // WebHookTrigger is a trigger that gets invoked using a webhook type of post message WebHookTrigger { // secret used to validate requests. - optional string secret = 1; + optional string secret = 1 [(gogoproto.customname) = "Secret", (gogoproto.nullable) = false]; // allowEnv determines whether the webhook can set environment variables; can only // be set to true for GenericWebHook. - optional bool allowEnv = 2; + optional bool allowEnv = 2 [(gogoproto.customname) = "AllowEnv", (gogoproto.nullable) = false]; } diff --git a/pkg/deploy/apis/apps/v1/generated.pb.go b/pkg/deploy/apis/apps/v1/generated.pb.go deleted file mode 100644 index 97a1c1f2b0c3..000000000000 --- a/pkg/deploy/apis/apps/v1/generated.pb.go +++ /dev/null @@ -1,6498 +0,0 @@ -// Code generated by protoc-gen-gogo. -// source: github.com/openshift/origin/pkg/deploy/apis/apps/v1/generated.proto -// DO NOT EDIT! - -/* - Package v1 is a generated protocol buffer package. - - It is generated from these files: - github.com/openshift/origin/pkg/deploy/apis/apps/v1/generated.proto - - It has these top-level messages: - CustomDeploymentStrategyParams - DeploymentCause - DeploymentCauseImageTrigger - DeploymentCondition - DeploymentConfig - DeploymentConfigList - DeploymentConfigRollback - DeploymentConfigRollbackSpec - DeploymentConfigSpec - DeploymentConfigStatus - DeploymentDetails - DeploymentLog - DeploymentLogOptions - DeploymentRequest - DeploymentStrategy - DeploymentTriggerImageChangeParams - DeploymentTriggerPolicies - DeploymentTriggerPolicy - ExecNewPodHook - LifecycleHook - RecreateDeploymentStrategyParams - RollingDeploymentStrategyParams - TagImageHook -*/ -package v1 - -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -import k8s_io_apimachinery_pkg_util_intstr "k8s.io/apimachinery/pkg/util/intstr" -import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" - -import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - -import strings "strings" -import reflect "reflect" - -import io "io" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *CustomDeploymentStrategyParams) Reset() { *m = CustomDeploymentStrategyParams{} } -func (*CustomDeploymentStrategyParams) ProtoMessage() {} -func (*CustomDeploymentStrategyParams) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{0} -} - -func (m *DeploymentCause) Reset() { *m = DeploymentCause{} } -func (*DeploymentCause) ProtoMessage() {} -func (*DeploymentCause) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } - -func (m *DeploymentCauseImageTrigger) Reset() { *m = DeploymentCauseImageTrigger{} } -func (*DeploymentCauseImageTrigger) ProtoMessage() {} -func (*DeploymentCauseImageTrigger) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{2} -} - -func (m *DeploymentCondition) Reset() { *m = DeploymentCondition{} } -func (*DeploymentCondition) ProtoMessage() {} -func (*DeploymentCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } - -func (m *DeploymentConfig) Reset() { *m = DeploymentConfig{} } -func (*DeploymentConfig) ProtoMessage() {} -func (*DeploymentConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } - -func (m *DeploymentConfigList) Reset() { *m = DeploymentConfigList{} } -func (*DeploymentConfigList) ProtoMessage() {} -func (*DeploymentConfigList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } - -func (m *DeploymentConfigRollback) Reset() { *m = DeploymentConfigRollback{} } -func (*DeploymentConfigRollback) ProtoMessage() {} -func (*DeploymentConfigRollback) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{6} -} - -func (m *DeploymentConfigRollbackSpec) Reset() { *m = DeploymentConfigRollbackSpec{} } -func (*DeploymentConfigRollbackSpec) ProtoMessage() {} -func (*DeploymentConfigRollbackSpec) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{7} -} - -func (m *DeploymentConfigSpec) Reset() { *m = DeploymentConfigSpec{} } -func (*DeploymentConfigSpec) ProtoMessage() {} -func (*DeploymentConfigSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } - -func (m *DeploymentConfigStatus) Reset() { *m = DeploymentConfigStatus{} } -func (*DeploymentConfigStatus) ProtoMessage() {} -func (*DeploymentConfigStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } - -func (m *DeploymentDetails) Reset() { *m = DeploymentDetails{} } -func (*DeploymentDetails) ProtoMessage() {} -func (*DeploymentDetails) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } - -func (m *DeploymentLog) Reset() { *m = DeploymentLog{} } -func (*DeploymentLog) ProtoMessage() {} -func (*DeploymentLog) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } - -func (m *DeploymentLogOptions) Reset() { *m = DeploymentLogOptions{} } -func (*DeploymentLogOptions) ProtoMessage() {} -func (*DeploymentLogOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } - -func (m *DeploymentRequest) Reset() { *m = DeploymentRequest{} } -func (*DeploymentRequest) ProtoMessage() {} -func (*DeploymentRequest) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } - -func (m *DeploymentStrategy) Reset() { *m = DeploymentStrategy{} } -func (*DeploymentStrategy) ProtoMessage() {} -func (*DeploymentStrategy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} } - -func (m *DeploymentTriggerImageChangeParams) Reset() { *m = DeploymentTriggerImageChangeParams{} } -func (*DeploymentTriggerImageChangeParams) ProtoMessage() {} -func (*DeploymentTriggerImageChangeParams) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{15} -} - -func (m *DeploymentTriggerPolicies) Reset() { *m = DeploymentTriggerPolicies{} } -func (*DeploymentTriggerPolicies) ProtoMessage() {} -func (*DeploymentTriggerPolicies) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{16} -} - -func (m *DeploymentTriggerPolicy) Reset() { *m = DeploymentTriggerPolicy{} } -func (*DeploymentTriggerPolicy) ProtoMessage() {} -func (*DeploymentTriggerPolicy) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{17} -} - -func (m *ExecNewPodHook) Reset() { *m = ExecNewPodHook{} } -func (*ExecNewPodHook) ProtoMessage() {} -func (*ExecNewPodHook) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } - -func (m *LifecycleHook) Reset() { *m = LifecycleHook{} } -func (*LifecycleHook) ProtoMessage() {} -func (*LifecycleHook) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } - -func (m *RecreateDeploymentStrategyParams) Reset() { *m = RecreateDeploymentStrategyParams{} } -func (*RecreateDeploymentStrategyParams) ProtoMessage() {} -func (*RecreateDeploymentStrategyParams) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{20} -} - -func (m *RollingDeploymentStrategyParams) Reset() { *m = RollingDeploymentStrategyParams{} } -func (*RollingDeploymentStrategyParams) ProtoMessage() {} -func (*RollingDeploymentStrategyParams) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{21} -} - -func (m *TagImageHook) Reset() { *m = TagImageHook{} } -func (*TagImageHook) ProtoMessage() {} -func (*TagImageHook) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{22} } - -func init() { - proto.RegisterType((*CustomDeploymentStrategyParams)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.CustomDeploymentStrategyParams") - proto.RegisterType((*DeploymentCause)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentCause") - proto.RegisterType((*DeploymentCauseImageTrigger)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentCauseImageTrigger") - proto.RegisterType((*DeploymentCondition)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentCondition") - proto.RegisterType((*DeploymentConfig)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentConfig") - proto.RegisterType((*DeploymentConfigList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentConfigList") - proto.RegisterType((*DeploymentConfigRollback)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentConfigRollback") - proto.RegisterType((*DeploymentConfigRollbackSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentConfigRollbackSpec") - proto.RegisterType((*DeploymentConfigSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentConfigSpec") - proto.RegisterType((*DeploymentConfigStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentConfigStatus") - proto.RegisterType((*DeploymentDetails)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentDetails") - proto.RegisterType((*DeploymentLog)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentLog") - proto.RegisterType((*DeploymentLogOptions)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentLogOptions") - proto.RegisterType((*DeploymentRequest)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentRequest") - proto.RegisterType((*DeploymentStrategy)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentStrategy") - proto.RegisterType((*DeploymentTriggerImageChangeParams)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentTriggerImageChangeParams") - proto.RegisterType((*DeploymentTriggerPolicies)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentTriggerPolicies") - proto.RegisterType((*DeploymentTriggerPolicy)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.DeploymentTriggerPolicy") - proto.RegisterType((*ExecNewPodHook)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.ExecNewPodHook") - proto.RegisterType((*LifecycleHook)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.LifecycleHook") - proto.RegisterType((*RecreateDeploymentStrategyParams)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.RecreateDeploymentStrategyParams") - proto.RegisterType((*RollingDeploymentStrategyParams)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.RollingDeploymentStrategyParams") - proto.RegisterType((*TagImageHook)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1.TagImageHook") -} -func (m *CustomDeploymentStrategyParams) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CustomDeploymentStrategyParams) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Image))) - i += copy(dAtA[i:], m.Image) - if len(m.Environment) > 0 { - for _, msg := range m.Environment { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Command) > 0 { - for _, s := range m.Command { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *DeploymentCause) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentCause) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - if m.ImageTrigger != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ImageTrigger.Size())) - n1, err := m.ImageTrigger.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - } - return i, nil -} - -func (m *DeploymentCauseImageTrigger) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentCauseImageTrigger) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.From.Size())) - n2, err := m.From.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - return i, nil -} - -func (m *DeploymentCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentCondition) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i += copy(dAtA[i:], m.Status) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LastTransitionTime.Size())) - n3, err := m.LastTransitionTime.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i += copy(dAtA[i:], m.Reason) - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LastUpdateTime.Size())) - n4, err := m.LastUpdateTime.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - return i, nil -} - -func (m *DeploymentConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentConfig) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n5, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n6, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n7, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - return i, nil -} - -func (m *DeploymentConfigList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentConfigList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n8, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *DeploymentConfigRollback) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentConfigRollback) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - if len(m.UpdatedAnnotations) > 0 { - keysForUpdatedAnnotations := make([]string, 0, len(m.UpdatedAnnotations)) - for k := range m.UpdatedAnnotations { - keysForUpdatedAnnotations = append(keysForUpdatedAnnotations, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForUpdatedAnnotations) - for _, k := range keysForUpdatedAnnotations { - dAtA[i] = 0x12 - i++ - v := m.UpdatedAnnotations[string(k)] - mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) - } - } - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n9, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - return i, nil -} - -func (m *DeploymentConfigRollbackSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentConfigRollbackSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.From.Size())) - n10, err := m.From.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 - dAtA[i] = 0x10 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Revision)) - dAtA[i] = 0x18 - i++ - if m.IncludeTriggers { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x20 - i++ - if m.IncludeTemplate { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x28 - i++ - if m.IncludeReplicationMeta { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x30 - i++ - if m.IncludeStrategy { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - return i, nil -} - -func (m *DeploymentConfigSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentConfigSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Strategy.Size())) - n11, err := m.Strategy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 - if m.Triggers != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Triggers.Size())) - n12, err := m.Triggers.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n12 - } - dAtA[i] = 0x18 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - if m.RevisionHistoryLimit != nil { - dAtA[i] = 0x20 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit)) - } - dAtA[i] = 0x28 - i++ - if m.Test { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x30 - i++ - if m.Paused { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if len(m.Selector) > 0 { - keysForSelector := make([]string, 0, len(m.Selector)) - for k := range m.Selector { - keysForSelector = append(keysForSelector, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) - for _, k := range keysForSelector { - dAtA[i] = 0x3a - i++ - v := m.Selector[string(k)] - mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) - } - } - if m.Template != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Template.Size())) - n13, err := m.Template.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 - } - dAtA[i] = 0x48 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) - return i, nil -} - -func (m *DeploymentConfigStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentConfigStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LatestVersion)) - dAtA[i] = 0x10 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - dAtA[i] = 0x18 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - dAtA[i] = 0x20 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedReplicas)) - dAtA[i] = 0x28 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas)) - dAtA[i] = 0x30 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.UnavailableReplicas)) - if m.Details != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Details.Size())) - n14, err := m.Details.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n14 - } - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x48 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas)) - return i, nil -} - -func (m *DeploymentDetails) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentDetails) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) - if len(m.Causes) > 0 { - for _, msg := range m.Causes { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *DeploymentLog) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentLog) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - return i, nil -} - -func (m *DeploymentLogOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentLogOptions) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Container))) - i += copy(dAtA[i:], m.Container) - dAtA[i] = 0x10 - i++ - if m.Follow { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x18 - i++ - if m.Previous { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if m.SinceSeconds != nil { - dAtA[i] = 0x20 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.SinceSeconds)) - } - if m.SinceTime != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.SinceTime.Size())) - n15, err := m.SinceTime.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n15 - } - dAtA[i] = 0x30 - i++ - if m.Timestamps { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if m.TailLines != nil { - dAtA[i] = 0x38 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.TailLines)) - } - if m.LimitBytes != nil { - dAtA[i] = 0x40 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.LimitBytes)) - } - dAtA[i] = 0x48 - i++ - if m.NoWait { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if m.Version != nil { - dAtA[i] = 0x50 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.Version)) - } - return i, nil -} - -func (m *DeploymentRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - dAtA[i] = 0x10 - i++ - if m.Latest { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x18 - i++ - if m.Force { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if len(m.ExcludeTriggers) > 0 { - for _, s := range m.ExcludeTriggers { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *DeploymentStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentStrategy) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - if m.CustomParams != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.CustomParams.Size())) - n16, err := m.CustomParams.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n16 - } - if m.RecreateParams != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.RecreateParams.Size())) - n17, err := m.RecreateParams.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n17 - } - if m.RollingParams != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.RollingParams.Size())) - n18, err := m.RollingParams.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n18 - } - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Resources.Size())) - n19, err := m.Resources.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n19 - if len(m.Labels) > 0 { - keysForLabels := make([]string, 0, len(m.Labels)) - for k := range m.Labels { - keysForLabels = append(keysForLabels, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) - for _, k := range keysForLabels { - dAtA[i] = 0x32 - i++ - v := m.Labels[string(k)] - mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) - } - } - if len(m.Annotations) > 0 { - keysForAnnotations := make([]string, 0, len(m.Annotations)) - for k := range m.Annotations { - keysForAnnotations = append(keysForAnnotations, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) - for _, k := range keysForAnnotations { - dAtA[i] = 0x3a - i++ - v := m.Annotations[string(k)] - mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) - } - } - if m.ActiveDeadlineSeconds != nil { - dAtA[i] = 0x40 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.ActiveDeadlineSeconds)) - } - return i, nil -} - -func (m *DeploymentTriggerImageChangeParams) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentTriggerImageChangeParams) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0x8 - i++ - if m.Automatic { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if len(m.ContainerNames) > 0 { - for _, s := range m.ContainerNames { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.From.Size())) - n20, err := m.From.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n20 - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.LastTriggeredImage))) - i += copy(dAtA[i:], m.LastTriggeredImage) - return i, nil -} - -func (m DeploymentTriggerPolicies) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m DeploymentTriggerPolicies) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m) > 0 { - for _, msg := range m { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *DeploymentTriggerPolicy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentTriggerPolicy) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - if m.ImageChangeParams != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ImageChangeParams.Size())) - n21, err := m.ImageChangeParams.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n21 - } - return i, nil -} - -func (m *ExecNewPodHook) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExecNewPodHook) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Command) > 0 { - for _, s := range m.Command { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.Env) > 0 { - for _, msg := range m.Env { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContainerName))) - i += copy(dAtA[i:], m.ContainerName) - if len(m.Volumes) > 0 { - for _, s := range m.Volumes { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *LifecycleHook) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LifecycleHook) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FailurePolicy))) - i += copy(dAtA[i:], m.FailurePolicy) - if m.ExecNewPod != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ExecNewPod.Size())) - n22, err := m.ExecNewPod.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n22 - } - if len(m.TagImages) > 0 { - for _, msg := range m.TagImages { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *RecreateDeploymentStrategyParams) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecreateDeploymentStrategyParams) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.TimeoutSeconds != nil { - dAtA[i] = 0x8 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) - } - if m.Pre != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Pre.Size())) - n23, err := m.Pre.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n23 - } - if m.Mid != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Mid.Size())) - n24, err := m.Mid.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n24 - } - if m.Post != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Post.Size())) - n25, err := m.Post.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n25 - } - return i, nil -} - -func (m *RollingDeploymentStrategyParams) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RollingDeploymentStrategyParams) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.UpdatePeriodSeconds != nil { - dAtA[i] = 0x8 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.UpdatePeriodSeconds)) - } - if m.IntervalSeconds != nil { - dAtA[i] = 0x10 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.IntervalSeconds)) - } - if m.TimeoutSeconds != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) - } - if m.MaxUnavailable != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.MaxUnavailable.Size())) - n26, err := m.MaxUnavailable.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n26 - } - if m.MaxSurge != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.MaxSurge.Size())) - n27, err := m.MaxSurge.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n27 - } - if m.Pre != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Pre.Size())) - n28, err := m.Pre.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n28 - } - if m.Post != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Post.Size())) - n29, err := m.Post.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n29 - } - return i, nil -} - -func (m *TagImageHook) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TagImageHook) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContainerName))) - i += copy(dAtA[i:], m.ContainerName) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.To.Size())) - n30, err := m.To.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n30 - return i, nil -} - -func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - dAtA[offset+4] = uint8(v >> 32) - dAtA[offset+5] = uint8(v >> 40) - dAtA[offset+6] = uint8(v >> 48) - dAtA[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *CustomDeploymentStrategyParams) Size() (n int) { - var l int - _ = l - l = len(m.Image) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Environment) > 0 { - for _, e := range m.Environment { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Command) > 0 { - for _, s := range m.Command { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DeploymentCause) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.ImageTrigger != nil { - l = m.ImageTrigger.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *DeploymentCauseImageTrigger) Size() (n int) { - var l int - _ = l - l = m.From.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeploymentCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastUpdateTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeploymentConfig) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeploymentConfigList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DeploymentConfigRollback) Size() (n int) { - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.UpdatedAnnotations) > 0 { - for k, v := range m.UpdatedAnnotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeploymentConfigRollbackSpec) Size() (n int) { - var l int - _ = l - l = m.From.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Revision)) - n += 2 - n += 2 - n += 2 - n += 2 - return n -} - -func (m *DeploymentConfigSpec) Size() (n int) { - var l int - _ = l - l = m.Strategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Triggers != nil { - l = m.Triggers.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 1 + sovGenerated(uint64(m.Replicas)) - if m.RevisionHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit)) - } - n += 2 - n += 2 - if len(m.Selector) > 0 { - for k, v := range m.Selector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if m.Template != nil { - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 1 + sovGenerated(uint64(m.MinReadySeconds)) - return n -} - -func (m *DeploymentConfigStatus) Size() (n int) { - var l int - _ = l - n += 1 + sovGenerated(uint64(m.LatestVersion)) - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - n += 1 + sovGenerated(uint64(m.Replicas)) - n += 1 + sovGenerated(uint64(m.UpdatedReplicas)) - n += 1 + sovGenerated(uint64(m.AvailableReplicas)) - n += 1 + sovGenerated(uint64(m.UnavailableReplicas)) - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 1 + sovGenerated(uint64(m.ReadyReplicas)) - return n -} - -func (m *DeploymentDetails) Size() (n int) { - var l int - _ = l - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Causes) > 0 { - for _, e := range m.Causes { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DeploymentLog) Size() (n int) { - var l int - _ = l - return n -} - -func (m *DeploymentLogOptions) Size() (n int) { - var l int - _ = l - l = len(m.Container) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - n += 2 - if m.SinceSeconds != nil { - n += 1 + sovGenerated(uint64(*m.SinceSeconds)) - } - if m.SinceTime != nil { - l = m.SinceTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - if m.TailLines != nil { - n += 1 + sovGenerated(uint64(*m.TailLines)) - } - if m.LimitBytes != nil { - n += 1 + sovGenerated(uint64(*m.LimitBytes)) - } - n += 2 - if m.Version != nil { - n += 1 + sovGenerated(uint64(*m.Version)) - } - return n -} - -func (m *DeploymentRequest) Size() (n int) { - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - n += 2 - if len(m.ExcludeTriggers) > 0 { - for _, s := range m.ExcludeTriggers { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DeploymentStrategy) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.CustomParams != nil { - l = m.CustomParams.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.RecreateParams != nil { - l = m.RecreateParams.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.RollingParams != nil { - l = m.RollingParams.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Resources.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Labels) > 0 { - for k, v := range m.Labels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.Annotations) > 0 { - for k, v := range m.Annotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if m.ActiveDeadlineSeconds != nil { - n += 1 + sovGenerated(uint64(*m.ActiveDeadlineSeconds)) - } - return n -} - -func (m *DeploymentTriggerImageChangeParams) Size() (n int) { - var l int - _ = l - n += 2 - if len(m.ContainerNames) > 0 { - for _, s := range m.ContainerNames { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.From.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.LastTriggeredImage) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m DeploymentTriggerPolicies) Size() (n int) { - var l int - _ = l - if len(m) > 0 { - for _, e := range m { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DeploymentTriggerPolicy) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.ImageChangeParams != nil { - l = m.ImageChangeParams.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ExecNewPodHook) Size() (n int) { - var l int - _ = l - if len(m.Command) > 0 { - for _, s := range m.Command { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Env) > 0 { - for _, e := range m.Env { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.ContainerName) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Volumes) > 0 { - for _, s := range m.Volumes { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *LifecycleHook) Size() (n int) { - var l int - _ = l - l = len(m.FailurePolicy) - n += 1 + l + sovGenerated(uint64(l)) - if m.ExecNewPod != nil { - l = m.ExecNewPod.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.TagImages) > 0 { - for _, e := range m.TagImages { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RecreateDeploymentStrategyParams) Size() (n int) { - var l int - _ = l - if m.TimeoutSeconds != nil { - n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) - } - if m.Pre != nil { - l = m.Pre.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Mid != nil { - l = m.Mid.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Post != nil { - l = m.Post.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RollingDeploymentStrategyParams) Size() (n int) { - var l int - _ = l - if m.UpdatePeriodSeconds != nil { - n += 1 + sovGenerated(uint64(*m.UpdatePeriodSeconds)) - } - if m.IntervalSeconds != nil { - n += 1 + sovGenerated(uint64(*m.IntervalSeconds)) - } - if m.TimeoutSeconds != nil { - n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) - } - if m.MaxUnavailable != nil { - l = m.MaxUnavailable.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.MaxSurge != nil { - l = m.MaxSurge.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Pre != nil { - l = m.Pre.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Post != nil { - l = m.Post.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *TagImageHook) Size() (n int) { - var l int - _ = l - l = len(m.ContainerName) - n += 1 + l + sovGenerated(uint64(l)) - l = m.To.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *CustomDeploymentStrategyParams) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CustomDeploymentStrategyParams{`, - `Image:` + fmt.Sprintf("%v", this.Image) + `,`, - `Environment:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Environment), "EnvVar", "k8s_io_kubernetes_pkg_api_v1.EnvVar", 1), `&`, ``, 1) + `,`, - `Command:` + fmt.Sprintf("%v", this.Command) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentCause) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentCause{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `ImageTrigger:` + strings.Replace(fmt.Sprintf("%v", this.ImageTrigger), "DeploymentCauseImageTrigger", "DeploymentCauseImageTrigger", 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentCauseImageTrigger) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentCauseImageTrigger{`, - `From:` + strings.Replace(strings.Replace(this.From.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `LastUpdateTime:` + strings.Replace(strings.Replace(this.LastUpdateTime.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentConfig{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DeploymentConfigSpec", "DeploymentConfigSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "DeploymentConfigStatus", "DeploymentConfigStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentConfigList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentConfigList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "DeploymentConfig", "DeploymentConfig", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentConfigRollback) String() string { - if this == nil { - return "nil" - } - keysForUpdatedAnnotations := make([]string, 0, len(this.UpdatedAnnotations)) - for k := range this.UpdatedAnnotations { - keysForUpdatedAnnotations = append(keysForUpdatedAnnotations, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForUpdatedAnnotations) - mapStringForUpdatedAnnotations := "map[string]string{" - for _, k := range keysForUpdatedAnnotations { - mapStringForUpdatedAnnotations += fmt.Sprintf("%v: %v,", k, this.UpdatedAnnotations[k]) - } - mapStringForUpdatedAnnotations += "}" - s := strings.Join([]string{`&DeploymentConfigRollback{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `UpdatedAnnotations:` + mapStringForUpdatedAnnotations + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DeploymentConfigRollbackSpec", "DeploymentConfigRollbackSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentConfigRollbackSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentConfigRollbackSpec{`, - `From:` + strings.Replace(strings.Replace(this.From.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `Revision:` + fmt.Sprintf("%v", this.Revision) + `,`, - `IncludeTriggers:` + fmt.Sprintf("%v", this.IncludeTriggers) + `,`, - `IncludeTemplate:` + fmt.Sprintf("%v", this.IncludeTemplate) + `,`, - `IncludeReplicationMeta:` + fmt.Sprintf("%v", this.IncludeReplicationMeta) + `,`, - `IncludeStrategy:` + fmt.Sprintf("%v", this.IncludeStrategy) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentConfigSpec) String() string { - if this == nil { - return "nil" - } - keysForSelector := make([]string, 0, len(this.Selector)) - for k := range this.Selector { - keysForSelector = append(keysForSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) - mapStringForSelector := "map[string]string{" - for _, k := range keysForSelector { - mapStringForSelector += fmt.Sprintf("%v: %v,", k, this.Selector[k]) - } - mapStringForSelector += "}" - s := strings.Join([]string{`&DeploymentConfigSpec{`, - `Strategy:` + strings.Replace(strings.Replace(this.Strategy.String(), "DeploymentStrategy", "DeploymentStrategy", 1), `&`, ``, 1) + `,`, - `Triggers:` + strings.Replace(fmt.Sprintf("%v", this.Triggers), "DeploymentTriggerPolicies", "DeploymentTriggerPolicies", 1) + `,`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`, - `Test:` + fmt.Sprintf("%v", this.Test) + `,`, - `Paused:` + fmt.Sprintf("%v", this.Paused) + `,`, - `Selector:` + mapStringForSelector + `,`, - `Template:` + strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1) + `,`, - `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentConfigStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentConfigStatus{`, - `LatestVersion:` + fmt.Sprintf("%v", this.LatestVersion) + `,`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`, - `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, - `UnavailableReplicas:` + fmt.Sprintf("%v", this.UnavailableReplicas) + `,`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "DeploymentDetails", "DeploymentDetails", 1) + `,`, - `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "DeploymentCondition", "DeploymentCondition", 1), `&`, ``, 1) + `,`, - `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentDetails) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentDetails{`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `Causes:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Causes), "DeploymentCause", "DeploymentCause", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentLog) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentLog{`, - `}`, - }, "") - return s -} -func (this *DeploymentLogOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentLogOptions{`, - `Container:` + fmt.Sprintf("%v", this.Container) + `,`, - `Follow:` + fmt.Sprintf("%v", this.Follow) + `,`, - `Previous:` + fmt.Sprintf("%v", this.Previous) + `,`, - `SinceSeconds:` + valueToStringGenerated(this.SinceSeconds) + `,`, - `SinceTime:` + strings.Replace(fmt.Sprintf("%v", this.SinceTime), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1) + `,`, - `Timestamps:` + fmt.Sprintf("%v", this.Timestamps) + `,`, - `TailLines:` + valueToStringGenerated(this.TailLines) + `,`, - `LimitBytes:` + valueToStringGenerated(this.LimitBytes) + `,`, - `NoWait:` + fmt.Sprintf("%v", this.NoWait) + `,`, - `Version:` + valueToStringGenerated(this.Version) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentRequest{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Latest:` + fmt.Sprintf("%v", this.Latest) + `,`, - `Force:` + fmt.Sprintf("%v", this.Force) + `,`, - `ExcludeTriggers:` + fmt.Sprintf("%v", this.ExcludeTriggers) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentStrategy) String() string { - if this == nil { - return "nil" - } - keysForLabels := make([]string, 0, len(this.Labels)) - for k := range this.Labels { - keysForLabels = append(keysForLabels, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) - mapStringForLabels := "map[string]string{" - for _, k := range keysForLabels { - mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k]) - } - mapStringForLabels += "}" - keysForAnnotations := make([]string, 0, len(this.Annotations)) - for k := range this.Annotations { - keysForAnnotations = append(keysForAnnotations, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) - mapStringForAnnotations := "map[string]string{" - for _, k := range keysForAnnotations { - mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k]) - } - mapStringForAnnotations += "}" - s := strings.Join([]string{`&DeploymentStrategy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `CustomParams:` + strings.Replace(fmt.Sprintf("%v", this.CustomParams), "CustomDeploymentStrategyParams", "CustomDeploymentStrategyParams", 1) + `,`, - `RecreateParams:` + strings.Replace(fmt.Sprintf("%v", this.RecreateParams), "RecreateDeploymentStrategyParams", "RecreateDeploymentStrategyParams", 1) + `,`, - `RollingParams:` + strings.Replace(fmt.Sprintf("%v", this.RollingParams), "RollingDeploymentStrategyParams", "RollingDeploymentStrategyParams", 1) + `,`, - `Resources:` + strings.Replace(strings.Replace(this.Resources.String(), "ResourceRequirements", "k8s_io_kubernetes_pkg_api_v1.ResourceRequirements", 1), `&`, ``, 1) + `,`, - `Labels:` + mapStringForLabels + `,`, - `Annotations:` + mapStringForAnnotations + `,`, - `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentTriggerImageChangeParams) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentTriggerImageChangeParams{`, - `Automatic:` + fmt.Sprintf("%v", this.Automatic) + `,`, - `ContainerNames:` + fmt.Sprintf("%v", this.ContainerNames) + `,`, - `From:` + strings.Replace(strings.Replace(this.From.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `LastTriggeredImage:` + fmt.Sprintf("%v", this.LastTriggeredImage) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentTriggerPolicy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentTriggerPolicy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `ImageChangeParams:` + strings.Replace(fmt.Sprintf("%v", this.ImageChangeParams), "DeploymentTriggerImageChangeParams", "DeploymentTriggerImageChangeParams", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ExecNewPodHook) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExecNewPodHook{`, - `Command:` + fmt.Sprintf("%v", this.Command) + `,`, - `Env:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Env), "EnvVar", "k8s_io_kubernetes_pkg_api_v1.EnvVar", 1), `&`, ``, 1) + `,`, - `ContainerName:` + fmt.Sprintf("%v", this.ContainerName) + `,`, - `Volumes:` + fmt.Sprintf("%v", this.Volumes) + `,`, - `}`, - }, "") - return s -} -func (this *LifecycleHook) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&LifecycleHook{`, - `FailurePolicy:` + fmt.Sprintf("%v", this.FailurePolicy) + `,`, - `ExecNewPod:` + strings.Replace(fmt.Sprintf("%v", this.ExecNewPod), "ExecNewPodHook", "ExecNewPodHook", 1) + `,`, - `TagImages:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TagImages), "TagImageHook", "TagImageHook", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RecreateDeploymentStrategyParams) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RecreateDeploymentStrategyParams{`, - `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, - `Pre:` + strings.Replace(fmt.Sprintf("%v", this.Pre), "LifecycleHook", "LifecycleHook", 1) + `,`, - `Mid:` + strings.Replace(fmt.Sprintf("%v", this.Mid), "LifecycleHook", "LifecycleHook", 1) + `,`, - `Post:` + strings.Replace(fmt.Sprintf("%v", this.Post), "LifecycleHook", "LifecycleHook", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RollingDeploymentStrategyParams) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RollingDeploymentStrategyParams{`, - `UpdatePeriodSeconds:` + valueToStringGenerated(this.UpdatePeriodSeconds) + `,`, - `IntervalSeconds:` + valueToStringGenerated(this.IntervalSeconds) + `,`, - `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, - `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "k8s_io_apimachinery_pkg_util_intstr.IntOrString", 1) + `,`, - `MaxSurge:` + strings.Replace(fmt.Sprintf("%v", this.MaxSurge), "IntOrString", "k8s_io_apimachinery_pkg_util_intstr.IntOrString", 1) + `,`, - `Pre:` + strings.Replace(fmt.Sprintf("%v", this.Pre), "LifecycleHook", "LifecycleHook", 1) + `,`, - `Post:` + strings.Replace(fmt.Sprintf("%v", this.Post), "LifecycleHook", "LifecycleHook", 1) + `,`, - `}`, - }, "") - return s -} -func (this *TagImageHook) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TagImageHook{`, - `ContainerName:` + fmt.Sprintf("%v", this.ContainerName) + `,`, - `To:` + strings.Replace(strings.Replace(this.To.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *CustomDeploymentStrategyParams) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CustomDeploymentStrategyParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CustomDeploymentStrategyParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Image = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Environment", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Environment = append(m.Environment, k8s_io_kubernetes_pkg_api_v1.EnvVar{}) - if err := m.Environment[len(m.Environment)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Command = append(m.Command, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentCause) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentCause: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentCause: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DeploymentTriggerType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImageTrigger", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ImageTrigger == nil { - m.ImageTrigger = &DeploymentCauseImageTrigger{} - } - if err := m.ImageTrigger.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentCauseImageTrigger) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentCauseImageTrigger: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentCauseImageTrigger: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.From.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DeploymentConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_kubernetes_pkg_api_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastUpdateTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentConfigList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentConfigList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentConfigList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, DeploymentConfig{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentConfigRollback) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentConfigRollback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentConfigRollback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAnnotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.UpdatedAnnotations == nil { - m.UpdatedAnnotations = make(map[string]string) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue := string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - m.UpdatedAnnotations[mapkey] = mapvalue - } else { - var mapvalue string - m.UpdatedAnnotations[mapkey] = mapvalue - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentConfigRollbackSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentConfigRollbackSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentConfigRollbackSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.From.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) - } - m.Revision = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Revision |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeTriggers", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeTriggers = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeTemplate", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeTemplate = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeReplicationMeta", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeReplicationMeta = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeStrategy", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeStrategy = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentConfigSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentConfigSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentConfigSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Strategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Triggers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Triggers == nil { - m.Triggers = DeploymentTriggerPolicies{} - } - if err := m.Triggers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.RevisionHistoryLimit = &v - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Test", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Test = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Paused = bool(v != 0) - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.Selector == nil { - m.Selector = make(map[string]string) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue := string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - m.Selector[mapkey] = mapvalue - } else { - var mapvalue string - m.Selector[mapkey] = mapvalue - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Template == nil { - m.Template = &k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec{} - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) - } - m.MinReadySeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinReadySeconds |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentConfigStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentConfigStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentConfigStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LatestVersion", wireType) - } - m.LatestVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LatestVersion |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType) - } - m.UpdatedReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UpdatedReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) - } - m.AvailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AvailableReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UnavailableReplicas", wireType) - } - m.UnavailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UnavailableReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &DeploymentDetails{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, DeploymentCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadyReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentDetails) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentDetails: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentDetails: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Causes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Causes = append(m.Causes, DeploymentCause{}) - if err := m.Causes[len(m.Causes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentLog) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentLog: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentLog: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentLogOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentLogOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentLogOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Container = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Follow", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Follow = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Previous", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Previous = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SinceSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.SinceSeconds = &v - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SinceTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SinceTime == nil { - m.SinceTime = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{} - } - if err := m.SinceTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamps", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Timestamps = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TailLines", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.TailLines = &v - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LimitBytes", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.LimitBytes = &v - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NoWait", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.NoWait = bool(v != 0) - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Version = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Latest", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Latest = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Force = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTriggers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExcludeTriggers = append(m.ExcludeTriggers, DeploymentTriggerType(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DeploymentStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CustomParams", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CustomParams == nil { - m.CustomParams = &CustomDeploymentStrategyParams{} - } - if err := m.CustomParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RecreateParams", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RecreateParams == nil { - m.RecreateParams = &RecreateDeploymentStrategyParams{} - } - if err := m.RecreateParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollingParams", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RollingParams == nil { - m.RollingParams = &RollingDeploymentStrategyParams{} - } - if err := m.RollingParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.Labels == nil { - m.Labels = make(map[string]string) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue := string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - m.Labels[mapkey] = mapvalue - } else { - var mapvalue string - m.Labels[mapkey] = mapvalue - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.Annotations == nil { - m.Annotations = make(map[string]string) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue := string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - m.Annotations[mapkey] = mapvalue - } else { - var mapvalue string - m.Annotations[mapkey] = mapvalue - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveDeadlineSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ActiveDeadlineSeconds = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentTriggerImageChangeParams) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentTriggerImageChangeParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentTriggerImageChangeParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Automatic", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Automatic = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerNames", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerNames = append(m.ContainerNames, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.From.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTriggeredImage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LastTriggeredImage = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentTriggerPolicies) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentTriggerPolicies: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentTriggerPolicies: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - *m = append(*m, DeploymentTriggerPolicy{}) - if err := (*m)[len(*m)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentTriggerPolicy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentTriggerPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentTriggerPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DeploymentTriggerType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImageChangeParams", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ImageChangeParams == nil { - m.ImageChangeParams = &DeploymentTriggerImageChangeParams{} - } - if err := m.ImageChangeParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExecNewPodHook) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecNewPodHook: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecNewPodHook: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Command = append(m.Command, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Env = append(m.Env, k8s_io_kubernetes_pkg_api_v1.EnvVar{}) - if err := m.Env[len(m.Env)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Volumes = append(m.Volumes, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LifecycleHook) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LifecycleHook: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LifecycleHook: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FailurePolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FailurePolicy = LifecycleHookFailurePolicy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecNewPod", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExecNewPod == nil { - m.ExecNewPod = &ExecNewPodHook{} - } - if err := m.ExecNewPod.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TagImages", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TagImages = append(m.TagImages, TagImageHook{}) - if err := m.TagImages[len(m.TagImages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecreateDeploymentStrategyParams) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecreateDeploymentStrategyParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecreateDeploymentStrategyParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.TimeoutSeconds = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pre", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pre == nil { - m.Pre = &LifecycleHook{} - } - if err := m.Pre.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Mid == nil { - m.Mid = &LifecycleHook{} - } - if err := m.Mid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Post", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Post == nil { - m.Post = &LifecycleHook{} - } - if err := m.Post.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RollingDeploymentStrategyParams) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RollingDeploymentStrategyParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RollingDeploymentStrategyParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatePeriodSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.UpdatePeriodSeconds = &v - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IntervalSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.IntervalSeconds = &v - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.TimeoutSeconds = &v - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxUnavailable == nil { - m.MaxUnavailable = &k8s_io_apimachinery_pkg_util_intstr.IntOrString{} - } - if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxSurge", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxSurge == nil { - m.MaxSurge = &k8s_io_apimachinery_pkg_util_intstr.IntOrString{} - } - if err := m.MaxSurge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pre", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pre == nil { - m.Pre = &LifecycleHook{} - } - if err := m.Pre.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Post", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Post == nil { - m.Post = &LifecycleHook{} - } - if err := m.Post.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TagImageHook) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TagImageHook: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TagImageHook: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.To.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/openshift/origin/pkg/deploy/apis/apps/v1/generated.proto", fileDescriptorGenerated) -} - -var fileDescriptorGenerated = []byte{ - // 2580 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0xdd, 0x6f, 0x5b, 0x49, - 0x15, 0xcf, 0x8d, 0x9d, 0xc4, 0x9e, 0x7c, 0x35, 0x93, 0x7e, 0x78, 0xb3, 0x28, 0x8e, 0xbc, 0xec, - 0x52, 0xa0, 0x7b, 0x4d, 0xd3, 0x15, 0xda, 0xb6, 0x62, 0xa5, 0x38, 0x4d, 0xdb, 0x2c, 0x4e, 0x13, - 0x26, 0x69, 0x0a, 0x0b, 0x48, 0x3b, 0xb9, 0x9e, 0xb8, 0xd3, 0xdc, 0x7b, 0xc7, 0x7b, 0x67, 0xec, - 0xd6, 0x82, 0x87, 0x7d, 0x01, 0x09, 0x09, 0x04, 0xbc, 0xa0, 0x7d, 0xe0, 0x81, 0x3f, 0x60, 0xb5, - 0x12, 0xff, 0x00, 0xe2, 0xb1, 0xbc, 0xad, 0xc4, 0x87, 0x56, 0x08, 0x45, 0x6d, 0xf8, 0x0f, 0xe0, - 0xad, 0x0f, 0x08, 0xcd, 0xc7, 0xfd, 0xf2, 0xb5, 0xd3, 0x26, 0xf1, 0xbe, 0xd9, 0xe7, 0xe3, 0x77, - 0xce, 0x9c, 0x39, 0xe7, 0xcc, 0x99, 0xb9, 0x60, 0xb5, 0x49, 0xc5, 0xc3, 0xf6, 0x9e, 0xed, 0x30, - 0xaf, 0xca, 0x5a, 0xc4, 0xe7, 0x0f, 0xe9, 0xbe, 0xa8, 0xb2, 0x80, 0x36, 0xa9, 0x5f, 0x6d, 0x1d, - 0x34, 0xab, 0x0d, 0xd2, 0x72, 0x59, 0xb7, 0x8a, 0x5b, 0x94, 0x57, 0x71, 0xab, 0xc5, 0xab, 0x9d, - 0xab, 0xd5, 0x26, 0xf1, 0x49, 0x80, 0x05, 0x69, 0xd8, 0xad, 0x80, 0x09, 0x06, 0xaf, 0xc5, 0x20, - 0x76, 0x04, 0x62, 0x6b, 0x10, 0xbb, 0x75, 0xd0, 0xb4, 0x35, 0x88, 0x2d, 0x41, 0x6c, 0x09, 0x62, - 0x77, 0xae, 0x2e, 0xbc, 0x9d, 0xb0, 0xdc, 0x64, 0x4d, 0x56, 0x55, 0x58, 0x7b, 0xed, 0x7d, 0xf5, - 0x4f, 0xfd, 0x51, 0xbf, 0xb4, 0x8d, 0x85, 0x77, 0x0e, 0xde, 0xe5, 0x36, 0x65, 0xd2, 0x11, 0x0f, - 0x3b, 0x0f, 0xa9, 0x4f, 0x82, 0xae, 0x72, 0x50, 0x79, 0xe6, 0x11, 0x81, 0xfb, 0x78, 0xb6, 0x50, - 0x1d, 0xa4, 0x15, 0xb4, 0x7d, 0x41, 0x3d, 0x92, 0x51, 0xf8, 0xf6, 0xcb, 0x14, 0xb8, 0xf3, 0x90, - 0x78, 0x38, 0xa3, 0x77, 0x6d, 0x90, 0x5e, 0x5b, 0x50, 0xb7, 0x4a, 0x7d, 0xc1, 0x45, 0x90, 0x51, - 0xba, 0x62, 0x94, 0x0e, 0xda, 0x7b, 0x24, 0xf0, 0x89, 0x20, 0x3c, 0x5c, 0x51, 0xbf, 0xb5, 0x5c, - 0x1f, 0x28, 0xcd, 0xab, 0x2d, 0xe6, 0x52, 0xa7, 0x5b, 0xed, 0x5c, 0xdd, 0x23, 0x02, 0x67, 0x54, - 0x2b, 0x7f, 0xb1, 0xc0, 0xe2, 0x6a, 0x9b, 0x0b, 0xe6, 0xdd, 0x52, 0x3b, 0xe1, 0x11, 0x5f, 0x6c, - 0x0b, 0x29, 0xd1, 0xec, 0x6e, 0xe1, 0x00, 0x7b, 0x1c, 0xbe, 0x01, 0xc6, 0xa8, 0x87, 0x9b, 0xa4, - 0x64, 0x2d, 0x59, 0x97, 0x8b, 0xb5, 0xe9, 0xa7, 0x87, 0xe5, 0x91, 0xa3, 0xc3, 0xf2, 0xd8, 0xba, - 0x24, 0x22, 0xcd, 0x83, 0x3f, 0x04, 0x93, 0xc4, 0xef, 0xd0, 0x80, 0xf9, 0x12, 0xa1, 0x34, 0xba, - 0x94, 0xbb, 0x3c, 0xb9, 0xfc, 0x55, 0x5b, 0x3b, 0x66, 0xc7, 0x8e, 0xa9, 0x4d, 0xc7, 0x2d, 0x6a, - 0x77, 0xae, 0xda, 0x6b, 0x7e, 0x67, 0x17, 0x07, 0xb5, 0x79, 0x03, 0x38, 0xb9, 0x16, 0x03, 0xa0, - 0x24, 0x1a, 0x7c, 0x13, 0x4c, 0x38, 0xcc, 0xf3, 0xb0, 0xdf, 0x28, 0xe5, 0x96, 0x72, 0x97, 0x8b, - 0xb5, 0xc9, 0xa3, 0xc3, 0xf2, 0xc4, 0xaa, 0x26, 0xa1, 0x90, 0x57, 0xf9, 0xbb, 0x05, 0x66, 0xe3, - 0x55, 0xac, 0xe2, 0x36, 0x27, 0xf0, 0x3a, 0xc8, 0x8b, 0x6e, 0x2b, 0xf4, 0xfd, 0x4d, 0x63, 0x2a, - 0xbf, 0xd3, 0x6d, 0x91, 0x17, 0x87, 0xe5, 0x0b, 0xb1, 0xf8, 0x4e, 0x40, 0x9b, 0x4d, 0x12, 0x48, - 0x06, 0x52, 0x2a, 0xf0, 0xe7, 0x16, 0x98, 0x52, 0x8b, 0x33, 0xac, 0xd2, 0xe8, 0x92, 0x75, 0x79, - 0x72, 0x79, 0xcb, 0x3e, 0x45, 0x4e, 0xdb, 0x3d, 0x7e, 0xad, 0x27, 0x70, 0x6b, 0xe7, 0x8e, 0x0e, - 0xcb, 0x53, 0x49, 0x0a, 0x4a, 0xd9, 0xad, 0xf8, 0xe0, 0xf5, 0x63, 0xd4, 0xe1, 0x26, 0xc8, 0xef, - 0x07, 0xcc, 0x53, 0x4b, 0x9c, 0x5c, 0x7e, 0xfb, 0xf8, 0x98, 0x6f, 0xee, 0x3d, 0x22, 0x8e, 0x40, - 0x64, 0x9f, 0x04, 0xc4, 0x77, 0x48, 0x6d, 0x2a, 0x8c, 0xc8, 0xed, 0x80, 0x79, 0x48, 0x01, 0x55, - 0x9e, 0xe7, 0xc0, 0x7c, 0xc2, 0x20, 0xf3, 0x1b, 0x54, 0x50, 0xe6, 0xc3, 0x9b, 0xa9, 0x58, 0x7e, - 0xad, 0x27, 0x96, 0x97, 0xfa, 0xa8, 0x24, 0xa2, 0xb9, 0x0b, 0xc6, 0xb9, 0xc0, 0xa2, 0xcd, 0x55, - 0x18, 0x8b, 0xb5, 0xf7, 0x8c, 0xfa, 0xf8, 0xb6, 0xa2, 0xbe, 0x38, 0x2c, 0x1f, 0x9b, 0xf3, 0x76, - 0x84, 0xa9, 0xe5, 0x91, 0x41, 0x83, 0x1d, 0x00, 0x5d, 0xcc, 0xc5, 0x4e, 0x80, 0x7d, 0xae, 0x6d, - 0x52, 0x8f, 0x94, 0x72, 0x2a, 0x16, 0xdf, 0x08, 0x63, 0x91, 0xac, 0xbd, 0x30, 0x1a, 0xdc, 0x96, - 0xad, 0x41, 0xc6, 0x44, 0x6a, 0xd4, 0x16, 0x8c, 0x3f, 0xb0, 0x9e, 0x41, 0x43, 0x7d, 0x2c, 0xc0, - 0xb7, 0xc0, 0x78, 0x40, 0x30, 0x67, 0x7e, 0x29, 0xaf, 0xd6, 0x33, 0x13, 0xae, 0x07, 0x29, 0x2a, - 0x32, 0x5c, 0xf8, 0x75, 0x30, 0xe1, 0x11, 0xce, 0x65, 0xfd, 0x8c, 0x29, 0xc1, 0x59, 0x23, 0x38, - 0xb1, 0xa1, 0xc9, 0x28, 0xe4, 0xc3, 0x47, 0x60, 0x46, 0x1a, 0xba, 0xdf, 0x6a, 0x60, 0x41, 0xd4, - 0x32, 0xc6, 0x4f, 0xbc, 0x8c, 0x8b, 0x06, 0x7d, 0xa6, 0x9e, 0x42, 0x42, 0x3d, 0xc8, 0x95, 0x7f, - 0x8c, 0x82, 0x73, 0xa9, 0x0d, 0xdb, 0xa7, 0x4d, 0xf8, 0x21, 0x28, 0x48, 0xb0, 0x06, 0x16, 0xd8, - 0x64, 0xd3, 0xb7, 0x5e, 0xcd, 0xb4, 0xce, 0xaa, 0x0d, 0x22, 0x70, 0x0d, 0x1a, 0x07, 0x40, 0x4c, - 0x43, 0x11, 0x2a, 0x3c, 0x00, 0x79, 0xde, 0x22, 0x8e, 0x29, 0xa5, 0xf5, 0xb3, 0x96, 0x92, 0x72, - 0x7b, 0xbb, 0x45, 0x9c, 0x38, 0x8f, 0xe5, 0x3f, 0xa4, 0x8c, 0x40, 0x1e, 0xa5, 0x9c, 0x4e, 0x87, - 0xef, 0x0e, 0xc7, 0x9c, 0x82, 0x8c, 0xf7, 0x3b, 0x9d, 0x8f, 0x95, 0x67, 0x16, 0x38, 0xdf, 0xab, - 0x52, 0xa7, 0x5c, 0xc0, 0x1f, 0x65, 0x82, 0x6b, 0xbf, 0x5a, 0x70, 0xa5, 0xb6, 0x0a, 0xed, 0x39, - 0x63, 0xb2, 0x10, 0x52, 0x12, 0x81, 0x7d, 0x04, 0xc6, 0xa8, 0x20, 0x1e, 0x37, 0x9d, 0x77, 0x6d, - 0x28, 0x4b, 0x4d, 0xf4, 0x7a, 0x89, 0x8d, 0xb4, 0x89, 0xca, 0xa7, 0x39, 0x50, 0xea, 0x15, 0x45, - 0xcc, 0x75, 0xf7, 0xb0, 0x73, 0x00, 0x97, 0x40, 0xde, 0xc7, 0x5e, 0xd8, 0x24, 0xa2, 0x6d, 0xb9, - 0x87, 0x3d, 0x82, 0x14, 0x07, 0xfe, 0xd1, 0x02, 0xb0, 0xad, 0x32, 0xb1, 0xb1, 0xe2, 0xfb, 0x4c, - 0x60, 0x59, 0x53, 0xa1, 0xe3, 0x64, 0x28, 0x8e, 0x87, 0xde, 0xd8, 0xf7, 0x33, 0x76, 0xd6, 0x7c, - 0x11, 0x74, 0xe3, 0x6a, 0xcf, 0x0a, 0xa0, 0x3e, 0xce, 0x41, 0x6e, 0xf2, 0x56, 0x27, 0xd2, 0xf7, - 0x86, 0xea, 0xe4, 0xa0, 0xfc, 0x5d, 0x58, 0x03, 0x97, 0x06, 0xf8, 0x0f, 0xcf, 0x81, 0xdc, 0x01, - 0xe9, 0xea, 0x20, 0x23, 0xf9, 0x13, 0x9e, 0x07, 0x63, 0x1d, 0xec, 0xb6, 0x89, 0x6e, 0xaf, 0x48, - 0xff, 0xb9, 0x31, 0xfa, 0xae, 0x55, 0xf9, 0x53, 0x0e, 0x7c, 0xe5, 0x38, 0xdb, 0x43, 0x3f, 0x40, - 0xe0, 0x15, 0x50, 0x08, 0x48, 0x87, 0x72, 0xca, 0x7c, 0xe5, 0x4e, 0x2e, 0x4e, 0x5d, 0x64, 0xe8, - 0x28, 0x92, 0x80, 0x2b, 0x60, 0x96, 0xfa, 0x8e, 0xdb, 0x6e, 0x84, 0x27, 0x9a, 0xae, 0xd7, 0x42, - 0xed, 0x92, 0x51, 0x9a, 0x5d, 0x4f, 0xb3, 0x51, 0xaf, 0x7c, 0x12, 0x82, 0x78, 0x2d, 0x17, 0x0b, - 0xa2, 0xba, 0x72, 0x1f, 0x08, 0xc3, 0x46, 0xbd, 0xf2, 0x70, 0x17, 0x5c, 0x34, 0x24, 0x44, 0x5a, - 0x2e, 0x75, 0x54, 0xb4, 0x65, 0x91, 0xa9, 0xb6, 0x5d, 0xa8, 0x2d, 0x1a, 0xa4, 0x8b, 0xeb, 0x7d, - 0xa5, 0xd0, 0x00, 0xed, 0x84, 0x6b, 0xe1, 0x58, 0xa5, 0xba, 0x7a, 0xd6, 0xb5, 0x90, 0x8d, 0x7a, - 0xe5, 0x2b, 0x9f, 0x8d, 0x67, 0x5b, 0x8a, 0xda, 0xb8, 0x36, 0x28, 0xf0, 0x10, 0x54, 0x6f, 0xde, - 0x9d, 0x33, 0x66, 0x66, 0x68, 0x33, 0xde, 0xb0, 0xc8, 0xad, 0xc8, 0x14, 0x7c, 0x02, 0x0a, 0x22, - 0xdc, 0x29, 0xdd, 0xc8, 0xef, 0x9d, 0xd1, 0xac, 0xd9, 0xc8, 0x2d, 0x39, 0xab, 0x52, 0xc2, 0x6b, - 0x53, 0xd2, 0x72, 0xb4, 0xdd, 0x91, 0x35, 0x9d, 0x58, 0x2a, 0xbe, 0x3a, 0x47, 0xc6, 0x92, 0x89, - 0xa5, 0xe9, 0x28, 0x92, 0x80, 0x75, 0x70, 0x3e, 0x4c, 0xb2, 0xbb, 0x94, 0x0b, 0x16, 0x74, 0xeb, - 0xd4, 0xa3, 0x42, 0xa5, 0xc6, 0x58, 0xad, 0x74, 0x74, 0x58, 0x3e, 0x8f, 0xfa, 0xf0, 0x51, 0x5f, - 0x2d, 0xd9, 0xd8, 0x04, 0xe1, 0xc2, 0xa4, 0x43, 0x94, 0xf6, 0x3b, 0x84, 0x0b, 0xa4, 0x38, 0x72, - 0x24, 0x68, 0xc9, 0xe9, 0xac, 0x61, 0x76, 0x38, 0x3a, 0x22, 0xb6, 0x14, 0x15, 0x19, 0x2e, 0xfc, - 0x99, 0x05, 0x0a, 0x9c, 0xb8, 0xc4, 0x11, 0x2c, 0x28, 0x4d, 0xa8, 0xb6, 0xf7, 0x60, 0x68, 0x27, - 0xa1, 0xbd, 0x6d, 0x90, 0x75, 0xa3, 0x8b, 0xf7, 0xd1, 0x90, 0x51, 0x64, 0x1a, 0x3e, 0x00, 0x05, - 0x11, 0x96, 0x4b, 0xe1, 0x55, 0x6a, 0x7f, 0x8b, 0x35, 0xc2, 0x7a, 0xd1, 0x4d, 0x4b, 0x6d, 0x53, - 0x58, 0x52, 0x11, 0x98, 0xcc, 0x79, 0x8f, 0xfa, 0x88, 0xe0, 0x46, 0x77, 0x9b, 0x38, 0xcc, 0x6f, - 0xf0, 0x52, 0x51, 0xc5, 0x3c, 0xca, 0xf9, 0x8d, 0x34, 0x1b, 0xf5, 0xca, 0x2f, 0xdc, 0x04, 0xd3, - 0xa9, 0x85, 0x9c, 0xa8, 0xe3, 0xfd, 0x6d, 0x0c, 0x5c, 0xec, 0x7f, 0x6c, 0xc3, 0x9b, 0x60, 0x5a, - 0xba, 0xc8, 0xc5, 0x2e, 0x09, 0x54, 0x7f, 0xb2, 0x54, 0x7f, 0xba, 0x60, 0x1c, 0x9b, 0xae, 0x27, - 0x99, 0x28, 0x2d, 0x0b, 0xdf, 0x07, 0x90, 0xed, 0x71, 0x12, 0x74, 0x48, 0xe3, 0x8e, 0xbe, 0x47, - 0xc5, 0x1d, 0x2e, 0x3a, 0x51, 0x36, 0x33, 0x12, 0xa8, 0x8f, 0xd6, 0x09, 0x53, 0x79, 0x05, 0xcc, - 0x9a, 0x53, 0x29, 0x64, 0x9a, 0x2c, 0x8e, 0x22, 0x7a, 0x3f, 0xcd, 0x46, 0xbd, 0xf2, 0xf0, 0x0e, - 0x98, 0xc3, 0x1d, 0x4c, 0x5d, 0xbc, 0xe7, 0x92, 0x08, 0x64, 0x4c, 0x81, 0xbc, 0x66, 0x40, 0xe6, - 0x56, 0x7a, 0x05, 0x50, 0x56, 0x07, 0x6e, 0x80, 0xf9, 0xb6, 0x9f, 0x85, 0x1a, 0x57, 0x50, 0xaf, - 0x1b, 0xa8, 0xf9, 0xfb, 0x59, 0x11, 0xd4, 0x4f, 0x0f, 0x7a, 0x60, 0xa2, 0x41, 0x04, 0xa6, 0x2e, - 0x2f, 0x4d, 0xa8, 0x24, 0xbc, 0x7d, 0xc6, 0x5a, 0xb8, 0xa5, 0xd1, 0xf4, 0x25, 0xd1, 0xfc, 0x41, - 0xa1, 0x0d, 0xf8, 0x53, 0x00, 0x9c, 0xf0, 0x2a, 0xc1, 0x4b, 0x05, 0x55, 0x7d, 0x77, 0xcf, 0x5e, - 0x7d, 0x1a, 0x30, 0x9e, 0x7e, 0x23, 0x12, 0x47, 0x09, 0x7b, 0x32, 0xfd, 0x02, 0x99, 0xe6, 0x51, - 0xd4, 0x74, 0x5d, 0x44, 0xe9, 0x87, 0x92, 0x4c, 0x94, 0x96, 0xad, 0x7c, 0x6a, 0x81, 0xb9, 0xcc, - 0x32, 0x93, 0x17, 0x0c, 0xeb, 0x25, 0x17, 0x0c, 0x17, 0x8c, 0x3b, 0xb2, 0x05, 0x85, 0xc3, 0xd6, - 0xad, 0x61, 0x5c, 0x65, 0xe3, 0x36, 0xa7, 0xfe, 0x72, 0x64, 0x6c, 0x54, 0x66, 0xc1, 0x74, 0x2c, - 0x5a, 0x67, 0xcd, 0xca, 0x2f, 0xf3, 0xc9, 0x73, 0xac, 0xce, 0x9a, 0x9b, 0x2d, 0x1d, 0x95, 0x2a, - 0x28, 0x3a, 0xcc, 0x17, 0x58, 0x0e, 0xc0, 0x66, 0x11, 0x73, 0x06, 0xb4, 0xb8, 0x1a, 0x32, 0x50, - 0x2c, 0x23, 0x3b, 0xed, 0x3e, 0x73, 0x5d, 0xf6, 0x58, 0x15, 0x5f, 0xa2, 0xd3, 0xde, 0x56, 0x54, - 0x64, 0xb8, 0xb2, 0xc8, 0x5a, 0xb2, 0x99, 0xb3, 0x76, 0x38, 0x53, 0x44, 0x45, 0xb6, 0x65, 0xe8, - 0x28, 0x92, 0x80, 0xef, 0x80, 0x29, 0x4e, 0x7d, 0x87, 0x84, 0x3d, 0x2b, 0xaf, 0x47, 0x17, 0x79, - 0x3b, 0xdf, 0x4e, 0xd0, 0x51, 0x4a, 0x0a, 0x3e, 0x00, 0x45, 0xf5, 0x5f, 0x5d, 0xd8, 0xc6, 0x4e, - 0x7c, 0x61, 0x9b, 0x96, 0x8b, 0xdc, 0x0e, 0x01, 0x50, 0x8c, 0x05, 0x97, 0x01, 0x10, 0xd4, 0x23, - 0x5c, 0x60, 0xaf, 0xc5, 0xcd, 0x91, 0x12, 0xe5, 0xd7, 0x4e, 0xc4, 0x41, 0x09, 0x29, 0xf8, 0x4d, - 0x50, 0x94, 0x59, 0x51, 0xa7, 0x3e, 0xd1, 0xe5, 0x94, 0xd3, 0x06, 0x76, 0x42, 0x22, 0x8a, 0xf9, - 0xd0, 0x06, 0xc0, 0x95, 0x47, 0x5b, 0xad, 0x2b, 0x08, 0x57, 0x27, 0x40, 0xae, 0x36, 0x23, 0xc1, - 0xeb, 0x11, 0x15, 0x25, 0x24, 0x64, 0xd4, 0x7d, 0xf6, 0x18, 0x53, 0xa1, 0xb2, 0x36, 0x11, 0xf5, - 0x7b, 0xec, 0x01, 0xa6, 0x02, 0x19, 0x2e, 0x7c, 0x13, 0x4c, 0x74, 0x4c, 0x77, 0x05, 0x0a, 0x54, - 0x55, 0x62, 0xd8, 0x53, 0x43, 0x5e, 0xe5, 0x9f, 0xa9, 0x74, 0x46, 0xe4, 0xa3, 0xb6, 0x3c, 0x44, - 0x5f, 0x7e, 0x7f, 0x78, 0x0b, 0x8c, 0xeb, 0xb6, 0xdc, 0xbb, 0xf9, 0xba, 0x77, 0x23, 0xc3, 0x85, - 0x6f, 0x80, 0xb1, 0x7d, 0x16, 0x38, 0xc4, 0xec, 0x7c, 0x74, 0x97, 0xb9, 0x2d, 0x89, 0x48, 0xf3, - 0xe0, 0x2e, 0x98, 0x25, 0x4f, 0xd2, 0xc3, 0x67, 0x5e, 0x3d, 0x31, 0x5d, 0x91, 0x4d, 0x75, 0x2d, - 0xcd, 0x1a, 0xfc, 0x62, 0xd4, 0x0b, 0x52, 0xf9, 0x73, 0x01, 0xc0, 0xec, 0x58, 0x05, 0x6f, 0xa4, - 0x9e, 0x50, 0xde, 0xea, 0x79, 0x42, 0xb9, 0x98, 0xd5, 0x48, 0xbc, 0xa0, 0xfc, 0xc2, 0x02, 0x53, - 0x8e, 0x7a, 0xaa, 0xd3, 0x0f, 0x73, 0x66, 0xf6, 0xda, 0x3e, 0x55, 0x11, 0x1f, 0xff, 0xe6, 0xa7, - 0x93, 0x7e, 0x35, 0x61, 0x0c, 0xa5, 0x4c, 0xc3, 0xdf, 0x5a, 0x60, 0x26, 0x20, 0x4e, 0x40, 0xb0, - 0x20, 0xc6, 0x1b, 0x7d, 0x35, 0xba, 0x7f, 0x2a, 0x6f, 0x90, 0x81, 0x1a, 0xe8, 0x0f, 0x3c, 0x3a, - 0x2c, 0xcf, 0xa0, 0x94, 0x41, 0xd4, 0xe3, 0x00, 0xfc, 0x95, 0x05, 0xa6, 0x03, 0xe6, 0xba, 0xd4, - 0x6f, 0x1a, 0x97, 0xf2, 0xca, 0xa5, 0x9d, 0xd3, 0xb9, 0xa4, 0x91, 0x06, 0x7a, 0x34, 0xa7, 0xda, - 0x75, 0xd2, 0x1c, 0x4a, 0x5b, 0x87, 0x0e, 0x28, 0x06, 0x84, 0xb3, 0x76, 0xe0, 0x10, 0x6e, 0x1a, - 0xc3, 0xf2, 0xf1, 0xf3, 0x15, 0x32, 0xe2, 0xb2, 0x16, 0x68, 0x40, 0xa4, 0x55, 0x1e, 0x77, 0xc2, - 0x90, 0xcb, 0x51, 0x8c, 0x0b, 0x7f, 0x22, 0x8b, 0x61, 0x8f, 0xb8, 0xb2, 0x41, 0xe4, 0x4e, 0x9d, - 0x0d, 0xd9, 0x55, 0xda, 0x75, 0x85, 0xaa, 0x87, 0xc8, 0x44, 0x85, 0x49, 0x22, 0x32, 0x26, 0xe1, - 0xaf, 0x2d, 0x30, 0x89, 0x13, 0x57, 0x78, 0x3d, 0xcb, 0x7e, 0x7f, 0x58, 0x2e, 0x64, 0x6e, 0xed, - 0xd1, 0x4b, 0x71, 0xf2, 0xba, 0x9e, 0xf4, 0x00, 0x6e, 0x82, 0x0b, 0xd8, 0x11, 0xb4, 0x43, 0x6e, - 0x11, 0xdc, 0x70, 0xa9, 0x1f, 0xf5, 0x72, 0xdd, 0xdd, 0x5e, 0x3b, 0x3a, 0x2c, 0x5f, 0x58, 0xe9, - 0x27, 0x80, 0xfa, 0xeb, 0x2d, 0x5c, 0x07, 0x93, 0x89, 0x48, 0x9c, 0x64, 0x0a, 0x5d, 0x78, 0x0f, - 0x9c, 0x3b, 0xd3, 0xbd, 0xfd, 0xb3, 0x51, 0x50, 0xc9, 0x74, 0x1b, 0xf5, 0xf2, 0xbb, 0xfa, 0x10, - 0xfb, 0xcd, 0x30, 0xed, 0xab, 0xa0, 0x88, 0xdb, 0x82, 0x79, 0x58, 0x50, 0x47, 0x01, 0x17, 0xe2, - 0x94, 0x59, 0x09, 0x19, 0x28, 0x96, 0x81, 0x37, 0xc0, 0x4c, 0x74, 0x92, 0xca, 0xb6, 0xaa, 0xa7, - 0x81, 0xa2, 0xae, 0xb1, 0xd5, 0x14, 0x07, 0xf5, 0x48, 0x46, 0x4f, 0x05, 0xb9, 0x61, 0x3d, 0x15, - 0xbc, 0x1f, 0x3e, 0xdf, 0xaa, 0xd5, 0x91, 0x86, 0x5a, 0x9f, 0x79, 0x52, 0xed, 0x79, 0x92, 0x4d, - 0x4a, 0xa0, 0x3e, 0x5a, 0x95, 0x4f, 0x2c, 0xf0, 0xda, 0xc0, 0x3b, 0x25, 0xfc, 0x28, 0x7c, 0x21, - 0xb3, 0x54, 0x96, 0xd6, 0x87, 0x78, 0x65, 0xed, 0xf6, 0x7f, 0x28, 0xbb, 0x51, 0xf8, 0xe4, 0x0f, - 0xe5, 0x91, 0x8f, 0xff, 0xb5, 0x34, 0x52, 0xf9, 0xaf, 0x05, 0x2e, 0x0d, 0xd0, 0x3d, 0xcb, 0x27, - 0x8a, 0xdf, 0x5b, 0x60, 0x8e, 0xf6, 0x66, 0x84, 0x39, 0x17, 0x1e, 0x0c, 0x67, 0x81, 0x99, 0x84, - 0xab, 0x5d, 0x90, 0x37, 0x85, 0x0c, 0x19, 0x65, 0x1d, 0xa9, 0x3c, 0xb3, 0xc0, 0xcc, 0xda, 0x13, - 0xe2, 0xdc, 0x23, 0x8f, 0xb7, 0x58, 0xe3, 0x2e, 0x63, 0x07, 0xc9, 0x4f, 0x39, 0xd6, 0xe0, 0x4f, - 0x39, 0x70, 0x15, 0xe4, 0x88, 0xdf, 0x39, 0xd1, 0x67, 0xa4, 0x49, 0x13, 0xb8, 0xdc, 0x9a, 0xdf, - 0x41, 0x52, 0x5b, 0x0e, 0xdb, 0xa9, 0xf4, 0x55, 0x59, 0x5b, 0x8c, 0x87, 0xed, 0x54, 0xae, 0xa3, - 0xb4, 0xac, 0x1a, 0x62, 0x98, 0xdb, 0x96, 0xe5, 0x91, 0x8f, 0x1d, 0xdd, 0xd5, 0x24, 0x14, 0xf2, - 0x2a, 0x7f, 0x1d, 0x05, 0xd3, 0x75, 0xba, 0x4f, 0x9c, 0xae, 0xe3, 0x12, 0xb5, 0xc2, 0x1f, 0x80, - 0xe9, 0x7d, 0x4c, 0xdd, 0x76, 0x40, 0xf4, 0xfe, 0x9a, 0x7d, 0xbd, 0x16, 0x5a, 0xbd, 0x9d, 0x64, - 0xbe, 0x38, 0x2c, 0x2f, 0xa4, 0xd4, 0x53, 0x5c, 0x94, 0x46, 0x82, 0x1c, 0x00, 0x12, 0x85, 0xd3, - 0x6c, 0xf3, 0xea, 0xa9, 0xb6, 0x39, 0xbd, 0x2b, 0x7a, 0xea, 0x8b, 0x69, 0x28, 0x61, 0x06, 0x06, - 0x72, 0xa4, 0x6c, 0xaa, 0xfd, 0xe6, 0xea, 0xf3, 0xdb, 0xe4, 0xf2, 0xca, 0xa9, 0x6c, 0xee, 0x18, - 0x14, 0x65, 0x31, 0x6a, 0x51, 0x21, 0x55, 0x4d, 0xa6, 0xe6, 0x67, 0xe5, 0x7f, 0xa3, 0x60, 0xe9, - 0x65, 0x33, 0x81, 0xec, 0x63, 0x72, 0xf2, 0x65, 0x6d, 0x11, 0x36, 0x79, 0x7d, 0x97, 0x57, 0x7d, - 0x6c, 0x27, 0xc5, 0x41, 0x3d, 0x92, 0xf0, 0xc7, 0x20, 0xd7, 0x0a, 0x88, 0x09, 0x61, 0xed, 0x54, - 0xcb, 0x49, 0x6d, 0x5b, 0x6d, 0x42, 0x66, 0xde, 0x56, 0x40, 0x90, 0xc4, 0x95, 0xf0, 0x1e, 0x6d, - 0x98, 0x2e, 0x39, 0x34, 0xf8, 0x0d, 0xda, 0x40, 0x12, 0x17, 0x7e, 0x08, 0xf2, 0x2d, 0xc6, 0x85, - 0x99, 0x6f, 0x86, 0x81, 0x5f, 0x90, 0x1d, 0x67, 0x8b, 0x71, 0x81, 0x14, 0x72, 0xe5, 0x3f, 0x79, - 0x50, 0x7e, 0xc9, 0x04, 0x04, 0xd7, 0xc1, 0xbc, 0x7e, 0x63, 0xd8, 0x22, 0x01, 0x65, 0x8d, 0xf4, - 0x26, 0x5c, 0x52, 0x6f, 0x00, 0x59, 0x36, 0xea, 0xa7, 0x03, 0xbf, 0x03, 0x66, 0xa9, 0x2f, 0x48, - 0xd0, 0xc1, 0x6e, 0x08, 0xa3, 0x5f, 0x55, 0xe6, 0xf5, 0x03, 0x69, 0x8a, 0x85, 0x7a, 0x65, 0xfb, - 0x64, 0x42, 0xee, 0x95, 0x33, 0xc1, 0x05, 0x33, 0x1e, 0x7e, 0x92, 0x78, 0xad, 0x30, 0x51, 0x1d, - 0xfc, 0xe5, 0xab, 0x2d, 0xa8, 0x6b, 0xeb, 0xef, 0xf6, 0xf6, 0xba, 0x2f, 0x36, 0x83, 0x6d, 0x11, - 0x50, 0xbf, 0xa9, 0xad, 0x6d, 0xa4, 0xb0, 0x50, 0x0f, 0x36, 0xfc, 0x00, 0x14, 0x3c, 0xfc, 0x64, - 0xbb, 0x1d, 0x34, 0xc3, 0xbb, 0xe2, 0xc9, 0xed, 0xa8, 0x57, 0xb7, 0x0d, 0x83, 0x82, 0x22, 0xbc, - 0x30, 0xa7, 0x27, 0xbe, 0xa4, 0x9c, 0x0e, 0x93, 0xae, 0xf0, 0xa5, 0x25, 0xdd, 0xef, 0x2c, 0x30, - 0x95, 0x6c, 0x12, 0xd9, 0x06, 0x6e, 0x9d, 0xa0, 0x81, 0xaf, 0x83, 0x51, 0xc1, 0x4c, 0x85, 0x9f, - 0x70, 0x50, 0x01, 0xc6, 0xc0, 0xe8, 0x0e, 0x43, 0xa3, 0x82, 0xd5, 0x2e, 0x3f, 0x7d, 0xbe, 0x38, - 0xf2, 0xf9, 0xf3, 0xc5, 0x91, 0x2f, 0x9e, 0x2f, 0x8e, 0x7c, 0x7c, 0xb4, 0x68, 0x3d, 0x3d, 0x5a, - 0xb4, 0x3e, 0x3f, 0x5a, 0xb4, 0xbe, 0x38, 0x5a, 0xb4, 0x9e, 0x1d, 0x2d, 0x5a, 0xbf, 0xf9, 0xf7, - 0xe2, 0xc8, 0x07, 0xa3, 0x9d, 0xab, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x2e, 0x92, 0xd1, 0x8e, - 0x35, 0x23, 0x00, 0x00, -} diff --git a/pkg/deploy/apis/apps/v1/generated.proto b/pkg/deploy/apis/apps/v1/generated.proto index cbe661809b57..6589f2a65d17 100644 --- a/pkg/deploy/apis/apps/v1/generated.proto +++ b/pkg/deploy/apis/apps/v1/generated.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.deploy.apis.apps.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -13,27 +14,36 @@ import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; import "k8s.io/kubernetes/pkg/apis/policy/v1beta1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // CustomDeploymentStrategyParams are the input to the Custom deployment strategy. message CustomDeploymentStrategyParams { // Image specifies a Docker image which can carry out a deployment. - optional string image = 1; + optional string image = 1 [(gogoproto.customname) = "Image", (gogoproto.nullable) = false]; // Environment holds the environment which will be given to the container for Image. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar environment = 2; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar environment = 2 [(gogoproto.customname) = "Environment", (gogoproto.nullable) = false]; // Command is optional and overrides CMD in the container Image. - repeated string command = 3; + repeated string command = 3 [(gogoproto.customname) = "Command"]; } // DeploymentCause captures information about a particular cause of a deployment. message DeploymentCause { // Type of the trigger that resulted in the creation of a new deployment - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "DeploymentTriggerType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // ImageTrigger contains the image trigger details, if this trigger was fired based on an image change - optional DeploymentCauseImageTrigger imageTrigger = 2; + optional DeploymentCauseImageTrigger imageTrigger = 2 [(gogoproto.customname) = "ImageTrigger"]; } // DeploymentCauseImageTrigger represents details about the cause of a deployment originating @@ -41,28 +51,28 @@ message DeploymentCause { message DeploymentCauseImageTrigger { // From is a reference to the changed object which triggered a deployment. The field may have // the kinds DockerImage, ImageStreamTag, or ImageStreamImage. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; } // DeploymentCondition describes the state of a deployment config at a certain point. message DeploymentCondition { // Type of deployment condition. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "DeploymentConditionType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Status of the condition, one of True, False, Unknown. - optional string status = 2; + optional string status = 2 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.ConditionStatus", (gogoproto.customname) = "Status", (gogoproto.nullable) = false]; // The last time this condition was updated. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6 [(gogoproto.customname) = "LastUpdateTime", (gogoproto.nullable) = false]; // The last time the condition transitioned from one status to another. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3 [(gogoproto.customname) = "LastTransitionTime", (gogoproto.nullable) = false]; // The reason for the condition's last transition. - optional string reason = 4; + optional string reason = 4 [(gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // A human readable message indicating details about the transition. - optional string message = 5; + optional string message = 5 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; } // Deployment Configs define the template for a pod and manages deploying new images or configuration changes. @@ -76,139 +86,139 @@ message DeploymentCondition { // is triggered by any means. message DeploymentConfig { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Spec represents a desired deployment state and how to deploy to it. - optional DeploymentConfigSpec spec = 2; + optional DeploymentConfigSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status represents the current deployment state. - optional DeploymentConfigStatus status = 3; + optional DeploymentConfigStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // DeploymentConfigList is a collection of deployment configs. message DeploymentConfigList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of deployment configs - repeated DeploymentConfig items = 2; + repeated DeploymentConfig items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // DeploymentConfigRollback provides the input to rollback generation. message DeploymentConfigRollback { // Name of the deployment config that will be rolled back. - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // UpdatedAnnotations is a set of new annotations that will be added in the deployment config. - map updatedAnnotations = 2; + map updatedAnnotations = 2 [(gogoproto.customname) = "UpdatedAnnotations", (gogoproto.nullable) = false]; // Spec defines the options to rollback generation. - optional DeploymentConfigRollbackSpec spec = 3; + optional DeploymentConfigRollbackSpec spec = 3 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; } // DeploymentConfigRollbackSpec represents the options for rollback generation. message DeploymentConfigRollbackSpec { // From points to a ReplicationController which is a deployment. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // Revision to rollback to. If set to 0, rollback to the last revision. - optional int64 revision = 2; + optional int64 revision = 2 [(gogoproto.customname) = "Revision", (gogoproto.nullable) = false]; // IncludeTriggers specifies whether to include config Triggers. - optional bool includeTriggers = 3; + optional bool includeTriggers = 3 [(gogoproto.customname) = "IncludeTriggers", (gogoproto.nullable) = false]; // IncludeTemplate specifies whether to include the PodTemplateSpec. - optional bool includeTemplate = 4; + optional bool includeTemplate = 4 [(gogoproto.customname) = "IncludeTemplate", (gogoproto.nullable) = false]; // IncludeReplicationMeta specifies whether to include the replica count and selector. - optional bool includeReplicationMeta = 5; + optional bool includeReplicationMeta = 5 [(gogoproto.customname) = "IncludeReplicationMeta", (gogoproto.nullable) = false]; // IncludeStrategy specifies whether to include the deployment Strategy. - optional bool includeStrategy = 6; + optional bool includeStrategy = 6 [(gogoproto.customname) = "IncludeStrategy", (gogoproto.nullable) = false]; } // DeploymentConfigSpec represents the desired state of the deployment. message DeploymentConfigSpec { // Strategy describes how a deployment is executed. - optional DeploymentStrategy strategy = 1; + optional DeploymentStrategy strategy = 1 [(gogoproto.customname) = "Strategy", (gogoproto.nullable) = false]; // MinReadySeconds is the minimum number of seconds for which a newly created pod should // be ready without any of its container crashing, for it to be considered available. // Defaults to 0 (pod will be considered available as soon as it is ready) - optional int32 minReadySeconds = 9; + optional int32 minReadySeconds = 9 [(gogoproto.customname) = "MinReadySeconds", (gogoproto.nullable) = false]; // Triggers determine how updates to a DeploymentConfig result in new deployments. If no triggers // are defined, a new deployment can only occur as a result of an explicit client update to the // DeploymentConfig with a new LatestVersion. If null, defaults to having a config change trigger. - optional DeploymentTriggerPolicies triggers = 2; + optional DeploymentTriggerPolicies triggers = 2 [(gogoproto.customname) = "Triggers"]; // Replicas is the number of desired replicas. - optional int32 replicas = 3; + optional int32 replicas = 3 [(gogoproto.customname) = "Replicas", (gogoproto.nullable) = false]; // RevisionHistoryLimit is the number of old ReplicationControllers to retain to allow for rollbacks. // This field is a pointer to allow for differentiation between an explicit zero and not specified. // Defaults to 10. (This only applies to DeploymentConfigs created via the new group API resource, not the legacy resource.) - optional int32 revisionHistoryLimit = 4; + optional int32 revisionHistoryLimit = 4 [(gogoproto.customname) = "RevisionHistoryLimit"]; // Test ensures that this deployment config will have zero replicas except while a deployment is running. This allows the // deployment config to be used as a continuous deployment test - triggering on images, running the deployment, and then succeeding // or failing. Post strategy hooks and After actions can be used to integrate successful deployment with an action. - optional bool test = 5; + optional bool test = 5 [(gogoproto.customname) = "Test", (gogoproto.nullable) = false]; // Paused indicates that the deployment config is paused resulting in no new deployments on template // changes or changes in the template caused by other triggers. - optional bool paused = 6; + optional bool paused = 6 [(gogoproto.customname) = "Paused", (gogoproto.nullable) = false]; // Selector is a label query over pods that should match the Replicas count. - map selector = 7; + map selector = 7 [(gogoproto.customname) = "Selector", (gogoproto.nullable) = false]; // Template is the object that describes the pod that will be created if // insufficient replicas are detected. - optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 8; + optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 8 [(gogoproto.customname) = "Template"]; } // DeploymentConfigStatus represents the current deployment state. message DeploymentConfigStatus { // LatestVersion is used to determine whether the current deployment associated with a deployment // config is out of sync. - optional int64 latestVersion = 1; + optional int64 latestVersion = 1 [(gogoproto.customname) = "LatestVersion", (gogoproto.nullable) = false]; // ObservedGeneration is the most recent generation observed by the deployment config controller. - optional int64 observedGeneration = 2; + optional int64 observedGeneration = 2 [(gogoproto.customname) = "ObservedGeneration", (gogoproto.nullable) = false]; // Replicas is the total number of pods targeted by this deployment config. - optional int32 replicas = 3; + optional int32 replicas = 3 [(gogoproto.customname) = "Replicas", (gogoproto.nullable) = false]; // UpdatedReplicas is the total number of non-terminated pods targeted by this deployment config // that have the desired template spec. - optional int32 updatedReplicas = 4; + optional int32 updatedReplicas = 4 [(gogoproto.customname) = "UpdatedReplicas", (gogoproto.nullable) = false]; // AvailableReplicas is the total number of available pods targeted by this deployment config. - optional int32 availableReplicas = 5; + optional int32 availableReplicas = 5 [(gogoproto.customname) = "AvailableReplicas", (gogoproto.nullable) = false]; // UnavailableReplicas is the total number of unavailable pods targeted by this deployment config. - optional int32 unavailableReplicas = 6; + optional int32 unavailableReplicas = 6 [(gogoproto.customname) = "UnavailableReplicas", (gogoproto.nullable) = false]; // Details are the reasons for the update to this deployment config. // This could be based on a change made by the user or caused by an automatic trigger - optional DeploymentDetails details = 7; + optional DeploymentDetails details = 7 [(gogoproto.customname) = "Details"]; // Conditions represents the latest available observations of a deployment config's current state. // +patchMergeKey=type // +patchStrategy=merge - repeated DeploymentCondition conditions = 8; + repeated DeploymentCondition conditions = 8 [(gogoproto.customname) = "Conditions", (gogoproto.nullable) = false]; // Total number of ready pods targeted by this deployment. - optional int32 readyReplicas = 9; + optional int32 readyReplicas = 9 [(gogoproto.customname) = "ReadyReplicas", (gogoproto.nullable) = false]; } // DeploymentDetails captures information about the causes of a deployment. message DeploymentDetails { // Message is the user specified change message, if this deployment was triggered manually by the user - optional string message = 1; + optional string message = 1 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; // Causes are extended data associated with all the causes for creating a new deployment - repeated DeploymentCause causes = 2; + repeated DeploymentCause causes = 2 [(gogoproto.customname) = "Causes", (gogoproto.nullable) = false]; } // DeploymentLog represents the logs for a deployment @@ -218,134 +228,137 @@ message DeploymentLog { // DeploymentLogOptions is the REST options for a deployment log message DeploymentLogOptions { // The container for which to stream logs. Defaults to only container if there is one container in the pod. - optional string container = 1; + optional string container = 1 [(gogoproto.customname) = "Container", (gogoproto.nullable) = false]; // Follow if true indicates that the build log should be streamed until // the build terminates. - optional bool follow = 2; + optional bool follow = 2 [(gogoproto.customname) = "Follow", (gogoproto.nullable) = false]; // Return previous deployment logs. Defaults to false. - optional bool previous = 3; + optional bool previous = 3 [(gogoproto.customname) = "Previous", (gogoproto.nullable) = false]; // A relative time in seconds before the current time from which to show logs. If this value // precedes the time a pod was started, only logs since the pod start will be returned. // If this value is in the future, no logs will be returned. // Only one of sinceSeconds or sinceTime may be specified. - optional int64 sinceSeconds = 4; + optional int64 sinceSeconds = 4 [(gogoproto.customname) = "SinceSeconds"]; // An RFC3339 timestamp from which to show logs. If this value // precedes the time a pod was started, only logs since the pod start will be returned. // If this value is in the future, no logs will be returned. // Only one of sinceSeconds or sinceTime may be specified. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5 [(gogoproto.customname) = "SinceTime"]; // If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line // of log output. Defaults to false. - optional bool timestamps = 6; + optional bool timestamps = 6 [(gogoproto.customname) = "Timestamps", (gogoproto.nullable) = false]; // If set, the number of lines from the end of the logs to show. If not specified, // logs are shown from the creation of the container or sinceSeconds or sinceTime - optional int64 tailLines = 7; + optional int64 tailLines = 7 [(gogoproto.customname) = "TailLines"]; // If set, the number of bytes to read from the server before terminating the // log output. This may not display a complete final line of logging, and may return // slightly more or slightly less than the specified limit. - optional int64 limitBytes = 8; + optional int64 limitBytes = 8 [(gogoproto.customname) = "LimitBytes"]; // NoWait if true causes the call to return immediately even if the deployment // is not available yet. Otherwise the server will wait until the deployment has started. // TODO: Fix the tag to 'noWait' in v2 - optional bool nowait = 9; + optional bool nowait = 9 [(gogoproto.customname) = "NoWait", (gogoproto.nullable) = false]; // Version of the deployment for which to view logs. - optional int64 version = 10; + optional int64 version = 10 [(gogoproto.customname) = "Version"]; } // DeploymentRequest is a request to a deployment config for a new deployment. message DeploymentRequest { // Name of the deployment config for requesting a new deployment. - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // Latest will update the deployment config with the latest state from all triggers. - optional bool latest = 2; + optional bool latest = 2 [(gogoproto.customname) = "Latest", (gogoproto.nullable) = false]; // Force will try to force a new deployment to run. If the deployment config is paused, // then setting this to true will return an Invalid error. - optional bool force = 3; + optional bool force = 3 [(gogoproto.customname) = "Force", (gogoproto.nullable) = false]; // ExcludeTriggers instructs the instantiator to avoid processing the specified triggers. // This field overrides the triggers from latest and allows clients to control specific // logic. This field is ignored if not specified. - repeated string excludeTriggers = 4; + repeated string excludeTriggers = 4 [(gogoproto.casttype) = "DeploymentTriggerType", (gogoproto.customname) = "ExcludeTriggers"]; } // DeploymentStrategy describes how to perform a deployment. message DeploymentStrategy { // Type is the name of a deployment strategy. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "DeploymentStrategyType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // CustomParams are the input to the Custom deployment strategy, and may also // be specified for the Recreate and Rolling strategies to customize the execution // process that runs the deployment. - optional CustomDeploymentStrategyParams customParams = 2; + optional CustomDeploymentStrategyParams customParams = 2 [(gogoproto.customname) = "CustomParams"]; // RecreateParams are the input to the Recreate deployment strategy. - optional RecreateDeploymentStrategyParams recreateParams = 3; + optional RecreateDeploymentStrategyParams recreateParams = 3 [(gogoproto.customname) = "RecreateParams"]; // RollingParams are the input to the Rolling deployment strategy. - optional RollingDeploymentStrategyParams rollingParams = 4; + optional RollingDeploymentStrategyParams rollingParams = 4 [(gogoproto.customname) = "RollingParams"]; // Resources contains resource requirements to execute the deployment and any hooks. - optional k8s.io.kubernetes.pkg.api.v1.ResourceRequirements resources = 5; + optional k8s.io.kubernetes.pkg.api.v1.ResourceRequirements resources = 5 [(gogoproto.customname) = "Resources", (gogoproto.nullable) = false]; // Labels is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods. - map labels = 6; + map labels = 6 [(gogoproto.customname) = "Labels", (gogoproto.nullable) = false]; // Annotations is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods. - map annotations = 7; + map annotations = 7 [(gogoproto.customname) = "Annotations", (gogoproto.nullable) = false]; // ActiveDeadlineSeconds is the duration in seconds that the deployer pods for this deployment // config may be active on a node before the system actively tries to terminate them. - optional int64 activeDeadlineSeconds = 8; + optional int64 activeDeadlineSeconds = 8 [(gogoproto.customname) = "ActiveDeadlineSeconds"]; } // DeploymentTriggerImageChangeParams represents the parameters to the ImageChange trigger. message DeploymentTriggerImageChangeParams { // Automatic means that the detection of a new tag value should result in an image update // inside the pod template. - optional bool automatic = 1; + optional bool automatic = 1 [(gogoproto.customname) = "Automatic", (gogoproto.nullable) = false]; // ContainerNames is used to restrict tag updates to the specified set of container names in a pod. // If multiple triggers point to the same containers, the resulting behavior is undefined. Future // API versions will make this a validation error. If ContainerNames does not point to a valid container, // the trigger will be ignored. Future API versions will make this a validation error. - repeated string containerNames = 2; + repeated string containerNames = 2 [(gogoproto.customname) = "ContainerNames"]; // From is a reference to an image stream tag to watch for changes. From.Name is the only // required subfield - if From.Namespace is blank, the namespace of the current deployment // trigger will be used. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 3; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 3 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // LastTriggeredImage is the last image to be triggered. - optional string lastTriggeredImage = 4; + optional string lastTriggeredImage = 4 [(gogoproto.customname) = "LastTriggeredImage", (gogoproto.nullable) = false]; } // DeploymentTriggerPolicies is a list of policies where nil values and different from empty arrays. // +protobuf.nullable=true // +protobuf.options.(gogoproto.goproto_stringer)=false message DeploymentTriggerPolicies { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + // items, if empty, will result in an empty slice - repeated DeploymentTriggerPolicy items = 1; + repeated DeploymentTriggerPolicy items = 1 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // DeploymentTriggerPolicy describes a policy for a single trigger that results in a new deployment. message DeploymentTriggerPolicy { // Type of the trigger - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "DeploymentTriggerType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // ImageChangeParams represents the parameters for the ImageChange trigger. - optional DeploymentTriggerImageChangeParams imageChangeParams = 2; + optional DeploymentTriggerImageChangeParams imageChangeParams = 2 [(gogoproto.customname) = "ImageChangeParams"]; } // ExecNewPodHook is a hook implementation which runs a command in a new pod @@ -353,31 +366,31 @@ message DeploymentTriggerPolicy { // deployment template. message ExecNewPodHook { // Command is the action command and its arguments. - repeated string command = 1; + repeated string command = 1 [(gogoproto.customname) = "Command"]; // Env is a set of environment variables to supply to the hook pod's container. - repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 2; + repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 2 [(gogoproto.customname) = "Env", (gogoproto.nullable) = false]; // ContainerName is the name of a container in the deployment pod template // whose Docker image will be used for the hook pod's container. - optional string containerName = 3; + optional string containerName = 3 [(gogoproto.customname) = "ContainerName", (gogoproto.nullable) = false]; // Volumes is a list of named volumes from the pod template which should be // copied to the hook pod. Volumes names not found in pod spec are ignored. // An empty list means no volumes will be copied. - repeated string volumes = 4; + repeated string volumes = 4 [(gogoproto.customname) = "Volumes"]; } // LifecycleHook defines a specific deployment lifecycle action. Only one type of action may be specified at any time. message LifecycleHook { // FailurePolicy specifies what action to take if the hook fails. - optional string failurePolicy = 1; + optional string failurePolicy = 1 [(gogoproto.casttype) = "LifecycleHookFailurePolicy", (gogoproto.customname) = "FailurePolicy", (gogoproto.nullable) = false]; // ExecNewPod specifies the options for a lifecycle hook backed by a pod. - optional ExecNewPodHook execNewPod = 2; + optional ExecNewPodHook execNewPod = 2 [(gogoproto.customname) = "ExecNewPod"]; // TagImages instructs the deployer to tag the current image referenced under a container onto an image stream tag. - repeated TagImageHook tagImages = 3; + repeated TagImageHook tagImages = 3 [(gogoproto.customname) = "TagImages", (gogoproto.nullable) = false]; } // RecreateDeploymentStrategyParams are the input to the Recreate deployment @@ -385,19 +398,19 @@ message LifecycleHook { message RecreateDeploymentStrategyParams { // TimeoutSeconds is the time to wait for updates before giving up. If the // value is nil, a default will be used. - optional int64 timeoutSeconds = 1; + optional int64 timeoutSeconds = 1 [(gogoproto.customname) = "TimeoutSeconds"]; // Pre is a lifecycle hook which is executed before the strategy manipulates // the deployment. All LifecycleHookFailurePolicy values are supported. - optional LifecycleHook pre = 2; + optional LifecycleHook pre = 2 [(gogoproto.customname) = "Pre"]; // Mid is a lifecycle hook which is executed while the deployment is scaled down to zero before the first new // pod is created. All LifecycleHookFailurePolicy values are supported. - optional LifecycleHook mid = 3; + optional LifecycleHook mid = 3 [(gogoproto.customname) = "Mid"]; // Post is a lifecycle hook which is executed after the strategy has // finished all deployment logic. All LifecycleHookFailurePolicy values are supported. - optional LifecycleHook post = 4; + optional LifecycleHook post = 4 [(gogoproto.customname) = "Post"]; } // RollingDeploymentStrategyParams are the input to the Rolling deployment @@ -405,15 +418,15 @@ message RecreateDeploymentStrategyParams { message RollingDeploymentStrategyParams { // UpdatePeriodSeconds is the time to wait between individual pod updates. // If the value is nil, a default will be used. - optional int64 updatePeriodSeconds = 1; + optional int64 updatePeriodSeconds = 1 [(gogoproto.customname) = "UpdatePeriodSeconds"]; // IntervalSeconds is the time to wait between polling deployment status // after update. If the value is nil, a default will be used. - optional int64 intervalSeconds = 2; + optional int64 intervalSeconds = 2 [(gogoproto.customname) = "IntervalSeconds"]; // TimeoutSeconds is the time to wait for updates before giving up. If the // value is nil, a default will be used. - optional int64 timeoutSeconds = 3; + optional int64 timeoutSeconds = 3 [(gogoproto.customname) = "TimeoutSeconds"]; // MaxUnavailable is the maximum number of pods that can be unavailable // during the update. Value can be an absolute number (ex: 5) or a @@ -427,7 +440,7 @@ message RollingDeploymentStrategyParams { // RC can be scaled down further, followed by scaling up the new RC, // ensuring that at least 70% of original number of pods are available at // all times during the update. - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 4; + optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 4 [(gogoproto.customname) = "MaxUnavailable"]; // MaxSurge is the maximum number of pods that can be scheduled above the // original number of pods. Value can be an absolute number (ex: 5) or a @@ -441,25 +454,25 @@ message RollingDeploymentStrategyParams { // killed, new RC can be scaled up further, ensuring that total number of // pods running at any time during the update is atmost 130% of original // pods. - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 5; + optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 5 [(gogoproto.customname) = "MaxSurge"]; // Pre is a lifecycle hook which is executed before the deployment process // begins. All LifecycleHookFailurePolicy values are supported. - optional LifecycleHook pre = 7; + optional LifecycleHook pre = 7 [(gogoproto.customname) = "Pre"]; // Post is a lifecycle hook which is executed after the strategy has // finished all deployment logic. All LifecycleHookFailurePolicy values // are supported. - optional LifecycleHook post = 8; + optional LifecycleHook post = 8 [(gogoproto.customname) = "Post"]; } // TagImageHook is a request to tag the image in a particular container onto an ImageStreamTag. message TagImageHook { // ContainerName is the name of a container in the deployment config whose image value will be used as the source of the tag. If there is only a single // container this value will be defaulted to the name of that container. - optional string containerName = 1; + optional string containerName = 1 [(gogoproto.customname) = "ContainerName", (gogoproto.nullable) = false]; // To is the target ImageStreamTag to set the container's image onto. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference to = 2; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference to = 2 [(gogoproto.customname) = "To", (gogoproto.nullable) = false]; } diff --git a/pkg/image/apis/image/types.go b/pkg/image/apis/image/types.go index 2aae668f3ff9..43a077f41017 100644 --- a/pkg/image/apis/image/types.go +++ b/pkg/image/apis/image/types.go @@ -217,6 +217,8 @@ type ImageStreamSpec struct { // lookupPolicy controls how other resources reference images within this namespace. LookupPolicy ImageLookupPolicy // Optional, if specified this stream is backed by a Docker repository on this server + // Deprecated: This field is deprecated as of v3.7 and will be removed in a future release + // Specify the source for the tags to be imported in each tag via the spec.tags.from reference instead. DockerImageRepository string // Tags map arbitrary string values to specific image locators Tags map[string]TagReference @@ -256,7 +258,7 @@ type TagReference struct { Generation *int64 // ImportPolicy is information that controls how images may be imported by the server. ImportPolicy TagImportPolicy - // ReferencePolicy defines how other components should consume the image + // ReferencePolicy defines how other components should consume the image. ReferencePolicy TagReferencePolicy } diff --git a/pkg/image/apis/image/v1/generated.pb.go b/pkg/image/apis/image/v1/generated.pb.go deleted file mode 100644 index b51c22a6976c..000000000000 --- a/pkg/image/apis/image/v1/generated.pb.go +++ /dev/null @@ -1,7811 +0,0 @@ -// Code generated by protoc-gen-gogo. -// source: github.com/openshift/origin/pkg/image/apis/image/v1/generated.proto -// DO NOT EDIT! - -/* - Package v1 is a generated protocol buffer package. - - It is generated from these files: - github.com/openshift/origin/pkg/image/apis/image/v1/generated.proto - - It has these top-level messages: - DockerImageReference - Image - ImageImportSpec - ImageImportStatus - ImageLayer - ImageList - ImageLookupPolicy - ImageSignature - ImageStream - ImageStreamImage - ImageStreamImport - ImageStreamImportSpec - ImageStreamImportStatus - ImageStreamList - ImageStreamMapping - ImageStreamSpec - ImageStreamStatus - ImageStreamTag - ImageStreamTagList - NamedTagEventList - RepositoryImportSpec - RepositoryImportStatus - SignatureCondition - SignatureGenericEntity - SignatureIssuer - SignatureSubject - TagEvent - TagEventCondition - TagImportPolicy - TagReference - TagReferencePolicy -*/ -package v1 - -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" - -import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - -import strings "strings" -import reflect "reflect" - -import io "io" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *DockerImageReference) Reset() { *m = DockerImageReference{} } -func (*DockerImageReference) ProtoMessage() {} -func (*DockerImageReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } - -func (m *Image) Reset() { *m = Image{} } -func (*Image) ProtoMessage() {} -func (*Image) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } - -func (m *ImageImportSpec) Reset() { *m = ImageImportSpec{} } -func (*ImageImportSpec) ProtoMessage() {} -func (*ImageImportSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } - -func (m *ImageImportStatus) Reset() { *m = ImageImportStatus{} } -func (*ImageImportStatus) ProtoMessage() {} -func (*ImageImportStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } - -func (m *ImageLayer) Reset() { *m = ImageLayer{} } -func (*ImageLayer) ProtoMessage() {} -func (*ImageLayer) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } - -func (m *ImageList) Reset() { *m = ImageList{} } -func (*ImageList) ProtoMessage() {} -func (*ImageList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } - -func (m *ImageLookupPolicy) Reset() { *m = ImageLookupPolicy{} } -func (*ImageLookupPolicy) ProtoMessage() {} -func (*ImageLookupPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } - -func (m *ImageSignature) Reset() { *m = ImageSignature{} } -func (*ImageSignature) ProtoMessage() {} -func (*ImageSignature) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } - -func (m *ImageStream) Reset() { *m = ImageStream{} } -func (*ImageStream) ProtoMessage() {} -func (*ImageStream) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } - -func (m *ImageStreamImage) Reset() { *m = ImageStreamImage{} } -func (*ImageStreamImage) ProtoMessage() {} -func (*ImageStreamImage) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } - -func (m *ImageStreamImport) Reset() { *m = ImageStreamImport{} } -func (*ImageStreamImport) ProtoMessage() {} -func (*ImageStreamImport) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } - -func (m *ImageStreamImportSpec) Reset() { *m = ImageStreamImportSpec{} } -func (*ImageStreamImportSpec) ProtoMessage() {} -func (*ImageStreamImportSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } - -func (m *ImageStreamImportStatus) Reset() { *m = ImageStreamImportStatus{} } -func (*ImageStreamImportStatus) ProtoMessage() {} -func (*ImageStreamImportStatus) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{12} -} - -func (m *ImageStreamList) Reset() { *m = ImageStreamList{} } -func (*ImageStreamList) ProtoMessage() {} -func (*ImageStreamList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } - -func (m *ImageStreamMapping) Reset() { *m = ImageStreamMapping{} } -func (*ImageStreamMapping) ProtoMessage() {} -func (*ImageStreamMapping) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} } - -func (m *ImageStreamSpec) Reset() { *m = ImageStreamSpec{} } -func (*ImageStreamSpec) ProtoMessage() {} -func (*ImageStreamSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} } - -func (m *ImageStreamStatus) Reset() { *m = ImageStreamStatus{} } -func (*ImageStreamStatus) ProtoMessage() {} -func (*ImageStreamStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} } - -func (m *ImageStreamTag) Reset() { *m = ImageStreamTag{} } -func (*ImageStreamTag) ProtoMessage() {} -func (*ImageStreamTag) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} } - -func (m *ImageStreamTagList) Reset() { *m = ImageStreamTagList{} } -func (*ImageStreamTagList) ProtoMessage() {} -func (*ImageStreamTagList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } - -func (m *NamedTagEventList) Reset() { *m = NamedTagEventList{} } -func (*NamedTagEventList) ProtoMessage() {} -func (*NamedTagEventList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } - -func (m *RepositoryImportSpec) Reset() { *m = RepositoryImportSpec{} } -func (*RepositoryImportSpec) ProtoMessage() {} -func (*RepositoryImportSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} } - -func (m *RepositoryImportStatus) Reset() { *m = RepositoryImportStatus{} } -func (*RepositoryImportStatus) ProtoMessage() {} -func (*RepositoryImportStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{21} } - -func (m *SignatureCondition) Reset() { *m = SignatureCondition{} } -func (*SignatureCondition) ProtoMessage() {} -func (*SignatureCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{22} } - -func (m *SignatureGenericEntity) Reset() { *m = SignatureGenericEntity{} } -func (*SignatureGenericEntity) ProtoMessage() {} -func (*SignatureGenericEntity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{23} } - -func (m *SignatureIssuer) Reset() { *m = SignatureIssuer{} } -func (*SignatureIssuer) ProtoMessage() {} -func (*SignatureIssuer) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{24} } - -func (m *SignatureSubject) Reset() { *m = SignatureSubject{} } -func (*SignatureSubject) ProtoMessage() {} -func (*SignatureSubject) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{25} } - -func (m *TagEvent) Reset() { *m = TagEvent{} } -func (*TagEvent) ProtoMessage() {} -func (*TagEvent) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{26} } - -func (m *TagEventCondition) Reset() { *m = TagEventCondition{} } -func (*TagEventCondition) ProtoMessage() {} -func (*TagEventCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{27} } - -func (m *TagImportPolicy) Reset() { *m = TagImportPolicy{} } -func (*TagImportPolicy) ProtoMessage() {} -func (*TagImportPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{28} } - -func (m *TagReference) Reset() { *m = TagReference{} } -func (*TagReference) ProtoMessage() {} -func (*TagReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{29} } - -func (m *TagReferencePolicy) Reset() { *m = TagReferencePolicy{} } -func (*TagReferencePolicy) ProtoMessage() {} -func (*TagReferencePolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{30} } - -func init() { - proto.RegisterType((*DockerImageReference)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.DockerImageReference") - proto.RegisterType((*Image)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.Image") - proto.RegisterType((*ImageImportSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageImportSpec") - proto.RegisterType((*ImageImportStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageImportStatus") - proto.RegisterType((*ImageLayer)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageLayer") - proto.RegisterType((*ImageList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageList") - proto.RegisterType((*ImageLookupPolicy)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageLookupPolicy") - proto.RegisterType((*ImageSignature)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageSignature") - proto.RegisterType((*ImageStream)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageStream") - proto.RegisterType((*ImageStreamImage)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageStreamImage") - proto.RegisterType((*ImageStreamImport)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageStreamImport") - proto.RegisterType((*ImageStreamImportSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageStreamImportSpec") - proto.RegisterType((*ImageStreamImportStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageStreamImportStatus") - proto.RegisterType((*ImageStreamList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageStreamList") - proto.RegisterType((*ImageStreamMapping)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageStreamMapping") - proto.RegisterType((*ImageStreamSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageStreamSpec") - proto.RegisterType((*ImageStreamStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageStreamStatus") - proto.RegisterType((*ImageStreamTag)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageStreamTag") - proto.RegisterType((*ImageStreamTagList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.ImageStreamTagList") - proto.RegisterType((*NamedTagEventList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.NamedTagEventList") - proto.RegisterType((*RepositoryImportSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.RepositoryImportSpec") - proto.RegisterType((*RepositoryImportStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.RepositoryImportStatus") - proto.RegisterType((*SignatureCondition)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.SignatureCondition") - proto.RegisterType((*SignatureGenericEntity)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.SignatureGenericEntity") - proto.RegisterType((*SignatureIssuer)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.SignatureIssuer") - proto.RegisterType((*SignatureSubject)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.SignatureSubject") - proto.RegisterType((*TagEvent)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.TagEvent") - proto.RegisterType((*TagEventCondition)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.TagEventCondition") - proto.RegisterType((*TagImportPolicy)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.TagImportPolicy") - proto.RegisterType((*TagReference)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.TagReference") - proto.RegisterType((*TagReferencePolicy)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1.TagReferencePolicy") -} -func (m *DockerImageReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DockerImageReference) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Registry))) - i += copy(dAtA[i:], m.Registry) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i += copy(dAtA[i:], m.Namespace) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Tag))) - i += copy(dAtA[i:], m.Tag) - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID))) - i += copy(dAtA[i:], m.ID) - return i, nil -} - -func (m *Image) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Image) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DockerImageReference))) - i += copy(dAtA[i:], m.DockerImageReference) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.DockerImageMetadata.Size())) - n2, err := m.DockerImageMetadata.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DockerImageMetadataVersion))) - i += copy(dAtA[i:], m.DockerImageMetadataVersion) - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DockerImageManifest))) - i += copy(dAtA[i:], m.DockerImageManifest) - if len(m.DockerImageLayers) > 0 { - for _, msg := range m.DockerImageLayers { - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Signatures) > 0 { - for _, msg := range m.Signatures { - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.DockerImageSignatures) > 0 { - for _, b := range m.DockerImageSignatures { - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) - } - } - dAtA[i] = 0x4a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DockerImageManifestMediaType))) - i += copy(dAtA[i:], m.DockerImageManifestMediaType) - dAtA[i] = 0x52 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DockerImageConfig))) - i += copy(dAtA[i:], m.DockerImageConfig) - return i, nil -} - -func (m *ImageImportSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageImportSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.From.Size())) - n3, err := m.From.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - if m.To != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.To.Size())) - n4, err := m.To.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - } - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ImportPolicy.Size())) - n5, err := m.ImportPolicy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - dAtA[i] = 0x20 - i++ - if m.IncludeManifest { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ReferencePolicy.Size())) - n6, err := m.ReferencePolicy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - return i, nil -} - -func (m *ImageImportStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageImportStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n7, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - if m.Image != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Image.Size())) - n8, err := m.Image.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 - } - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Tag))) - i += copy(dAtA[i:], m.Tag) - return i, nil -} - -func (m *ImageLayer) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageLayer) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - dAtA[i] = 0x10 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LayerSize)) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MediaType))) - i += copy(dAtA[i:], m.MediaType) - return i, nil -} - -func (m *ImageList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n9, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ImageLookupPolicy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageLookupPolicy) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0x18 - i++ - if m.Local { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - return i, nil -} - -func (m *ImageSignature) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageSignature) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n10, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - if m.Content != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Content))) - i += copy(dAtA[i:], m.Content) - } - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ImageIdentity))) - i += copy(dAtA[i:], m.ImageIdentity) - if len(m.SignedClaims) > 0 { - keysForSignedClaims := make([]string, 0, len(m.SignedClaims)) - for k := range m.SignedClaims { - keysForSignedClaims = append(keysForSignedClaims, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSignedClaims) - for _, k := range keysForSignedClaims { - dAtA[i] = 0x32 - i++ - v := m.SignedClaims[string(k)] - mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) - } - } - if m.Created != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Created.Size())) - n11, err := m.Created.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 - } - if m.IssuedBy != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.IssuedBy.Size())) - n12, err := m.IssuedBy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n12 - } - if m.IssuedTo != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.IssuedTo.Size())) - n13, err := m.IssuedTo.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 - } - return i, nil -} - -func (m *ImageStream) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageStream) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n14, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n14 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n15, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n15 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n16, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n16 - return i, nil -} - -func (m *ImageStreamImage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageStreamImage) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n17, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n17 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Image.Size())) - n18, err := m.Image.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n18 - return i, nil -} - -func (m *ImageStreamImport) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageStreamImport) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n19, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n19 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n20, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n20 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n21, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n21 - return i, nil -} - -func (m *ImageStreamImportSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageStreamImportSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0x8 - i++ - if m.Import { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if m.Repository != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Repository.Size())) - n22, err := m.Repository.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n22 - } - if len(m.Images) > 0 { - for _, msg := range m.Images { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ImageStreamImportStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageStreamImportStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Import != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Import.Size())) - n23, err := m.Import.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n23 - } - if m.Repository != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Repository.Size())) - n24, err := m.Repository.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n24 - } - if len(m.Images) > 0 { - for _, msg := range m.Images { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ImageStreamList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageStreamList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n25, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n25 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ImageStreamMapping) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageStreamMapping) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n26, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n26 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Image.Size())) - n27, err := m.Image.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n27 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Tag))) - i += copy(dAtA[i:], m.Tag) - return i, nil -} - -func (m *ImageStreamSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageStreamSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DockerImageRepository))) - i += copy(dAtA[i:], m.DockerImageRepository) - if len(m.Tags) > 0 { - for _, msg := range m.Tags { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LookupPolicy.Size())) - n28, err := m.LookupPolicy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n28 - return i, nil -} - -func (m *ImageStreamStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageStreamStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DockerImageRepository))) - i += copy(dAtA[i:], m.DockerImageRepository) - if len(m.Tags) > 0 { - for _, msg := range m.Tags { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PublicDockerImageRepository))) - i += copy(dAtA[i:], m.PublicDockerImageRepository) - return i, nil -} - -func (m *ImageStreamTag) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageStreamTag) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n29, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n29 - if m.Tag != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Tag.Size())) - n30, err := m.Tag.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n30 - } - dAtA[i] = 0x18 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Generation)) - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Image.Size())) - n31, err := m.Image.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n31 - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LookupPolicy.Size())) - n32, err := m.LookupPolicy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n32 - return i, nil -} - -func (m *ImageStreamTagList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageStreamTagList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n33, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n33 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *NamedTagEventList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NamedTagEventList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Tag))) - i += copy(dAtA[i:], m.Tag) - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *RepositoryImportSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RepositoryImportSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.From.Size())) - n34, err := m.From.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n34 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ImportPolicy.Size())) - n35, err := m.ImportPolicy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n35 - dAtA[i] = 0x18 - i++ - if m.IncludeManifest { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ReferencePolicy.Size())) - n36, err := m.ReferencePolicy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n36 - return i, nil -} - -func (m *RepositoryImportStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RepositoryImportStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n37, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n37 - if len(m.Images) > 0 { - for _, msg := range m.Images { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.AdditionalTags) > 0 { - for _, s := range m.AdditionalTags { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *SignatureCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignatureCondition) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i += copy(dAtA[i:], m.Status) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LastProbeTime.Size())) - n38, err := m.LastProbeTime.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n38 - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LastTransitionTime.Size())) - n39, err := m.LastTransitionTime.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n39 - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i += copy(dAtA[i:], m.Reason) - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) - return i, nil -} - -func (m *SignatureGenericEntity) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignatureGenericEntity) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Organization))) - i += copy(dAtA[i:], m.Organization) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CommonName))) - i += copy(dAtA[i:], m.CommonName) - return i, nil -} - -func (m *SignatureIssuer) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignatureIssuer) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.SignatureGenericEntity.Size())) - n40, err := m.SignatureGenericEntity.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n40 - return i, nil -} - -func (m *SignatureSubject) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignatureSubject) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.SignatureGenericEntity.Size())) - n41, err := m.SignatureGenericEntity.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n41 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PublicKeyID))) - i += copy(dAtA[i:], m.PublicKeyID) - return i, nil -} - -func (m *TagEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TagEvent) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Created.Size())) - n42, err := m.Created.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n42 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DockerImageReference))) - i += copy(dAtA[i:], m.DockerImageReference) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Image))) - i += copy(dAtA[i:], m.Image) - dAtA[i] = 0x20 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Generation)) - return i, nil -} - -func (m *TagEventCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TagEventCondition) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i += copy(dAtA[i:], m.Status) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LastTransitionTime.Size())) - n43, err := m.LastTransitionTime.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n43 - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i += copy(dAtA[i:], m.Reason) - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) - dAtA[i] = 0x30 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Generation)) - return i, nil -} - -func (m *TagImportPolicy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TagImportPolicy) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0x8 - i++ - if m.Insecure { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x10 - i++ - if m.Scheduled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - return i, nil -} - -func (m *TagReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TagReference) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - if len(m.Annotations) > 0 { - keysForAnnotations := make([]string, 0, len(m.Annotations)) - for k := range m.Annotations { - keysForAnnotations = append(keysForAnnotations, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) - for _, k := range keysForAnnotations { - dAtA[i] = 0x12 - i++ - v := m.Annotations[string(k)] - mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) - } - } - if m.From != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.From.Size())) - n44, err := m.From.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n44 - } - dAtA[i] = 0x20 - i++ - if m.Reference { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if m.Generation != nil { - dAtA[i] = 0x28 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.Generation)) - } - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ImportPolicy.Size())) - n45, err := m.ImportPolicy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n45 - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ReferencePolicy.Size())) - n46, err := m.ReferencePolicy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n46 - return i, nil -} - -func (m *TagReferencePolicy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TagReferencePolicy) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - return i, nil -} - -func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - dAtA[offset+4] = uint8(v >> 32) - dAtA[offset+5] = uint8(v >> 40) - dAtA[offset+6] = uint8(v >> 48) - dAtA[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *DockerImageReference) Size() (n int) { - var l int - _ = l - l = len(m.Registry) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Tag) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ID) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Image) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DockerImageReference) - n += 1 + l + sovGenerated(uint64(l)) - l = m.DockerImageMetadata.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DockerImageMetadataVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DockerImageManifest) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.DockerImageLayers) > 0 { - for _, e := range m.DockerImageLayers { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Signatures) > 0 { - for _, e := range m.Signatures { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.DockerImageSignatures) > 0 { - for _, b := range m.DockerImageSignatures { - l = len(b) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.DockerImageManifestMediaType) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DockerImageConfig) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageImportSpec) Size() (n int) { - var l int - _ = l - l = m.From.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.To != nil { - l = m.To.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.ImportPolicy.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - l = m.ReferencePolicy.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageImportStatus) Size() (n int) { - var l int - _ = l - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Image != nil { - l = m.Image.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.Tag) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageLayer) Size() (n int) { - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.LayerSize)) - l = len(m.MediaType) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ImageLookupPolicy) Size() (n int) { - var l int - _ = l - n += 2 - return n -} - -func (m *ImageSignature) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.Content != nil { - l = len(m.Content) - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.ImageIdentity) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.SignedClaims) > 0 { - for k, v := range m.SignedClaims { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.IssuedBy != nil { - l = m.IssuedBy.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.IssuedTo != nil { - l = m.IssuedTo.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ImageStream) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageStreamImage) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Image.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageStreamImport) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageStreamImportSpec) Size() (n int) { - var l int - _ = l - n += 2 - if m.Repository != nil { - l = m.Repository.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Images) > 0 { - for _, e := range m.Images { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ImageStreamImportStatus) Size() (n int) { - var l int - _ = l - if m.Import != nil { - l = m.Import.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Repository != nil { - l = m.Repository.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Images) > 0 { - for _, e := range m.Images { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ImageStreamList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ImageStreamMapping) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Image.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Tag) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageStreamSpec) Size() (n int) { - var l int - _ = l - l = len(m.DockerImageRepository) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Tags) > 0 { - for _, e := range m.Tags { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.LookupPolicy.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageStreamStatus) Size() (n int) { - var l int - _ = l - l = len(m.DockerImageRepository) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Tags) > 0 { - for _, e := range m.Tags { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.PublicDockerImageRepository) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageStreamTag) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Tag != nil { - l = m.Tag.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 1 + sovGenerated(uint64(m.Generation)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.Image.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LookupPolicy.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageStreamTagList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NamedTagEventList) Size() (n int) { - var l int - _ = l - l = len(m.Tag) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RepositoryImportSpec) Size() (n int) { - var l int - _ = l - l = m.From.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.ImportPolicy.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - l = m.ReferencePolicy.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RepositoryImportStatus) Size() (n int) { - var l int - _ = l - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Images) > 0 { - for _, e := range m.Images { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.AdditionalTags) > 0 { - for _, s := range m.AdditionalTags { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *SignatureCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastProbeTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SignatureGenericEntity) Size() (n int) { - var l int - _ = l - l = len(m.Organization) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.CommonName) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SignatureIssuer) Size() (n int) { - var l int - _ = l - l = m.SignatureGenericEntity.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SignatureSubject) Size() (n int) { - var l int - _ = l - l = m.SignatureGenericEntity.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.PublicKeyID) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *TagEvent) Size() (n int) { - var l int - _ = l - l = m.Created.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DockerImageReference) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Image) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Generation)) - return n -} - -func (m *TagEventCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Generation)) - return n -} - -func (m *TagImportPolicy) Size() (n int) { - var l int - _ = l - n += 2 - n += 2 - return n -} - -func (m *TagReference) Size() (n int) { - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Annotations) > 0 { - for k, v := range m.Annotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if m.From != nil { - l = m.From.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - if m.Generation != nil { - n += 1 + sovGenerated(uint64(*m.Generation)) - } - l = m.ImportPolicy.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.ReferencePolicy.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *TagReferencePolicy) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *DockerImageReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DockerImageReference{`, - `Registry:` + fmt.Sprintf("%v", this.Registry) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Tag:` + fmt.Sprintf("%v", this.Tag) + `,`, - `ID:` + fmt.Sprintf("%v", this.ID) + `,`, - `}`, - }, "") - return s -} -func (this *Image) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Image{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `DockerImageReference:` + fmt.Sprintf("%v", this.DockerImageReference) + `,`, - `DockerImageMetadata:` + strings.Replace(strings.Replace(this.DockerImageMetadata.String(), "RawExtension", "k8s_io_apimachinery_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`, - `DockerImageMetadataVersion:` + fmt.Sprintf("%v", this.DockerImageMetadataVersion) + `,`, - `DockerImageManifest:` + fmt.Sprintf("%v", this.DockerImageManifest) + `,`, - `DockerImageLayers:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.DockerImageLayers), "ImageLayer", "ImageLayer", 1), `&`, ``, 1) + `,`, - `Signatures:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Signatures), "ImageSignature", "ImageSignature", 1), `&`, ``, 1) + `,`, - `DockerImageSignatures:` + fmt.Sprintf("%v", this.DockerImageSignatures) + `,`, - `DockerImageManifestMediaType:` + fmt.Sprintf("%v", this.DockerImageManifestMediaType) + `,`, - `DockerImageConfig:` + fmt.Sprintf("%v", this.DockerImageConfig) + `,`, - `}`, - }, "") - return s -} -func (this *ImageImportSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageImportSpec{`, - `From:` + strings.Replace(strings.Replace(this.From.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `To:` + strings.Replace(fmt.Sprintf("%v", this.To), "LocalObjectReference", "k8s_io_kubernetes_pkg_api_v1.LocalObjectReference", 1) + `,`, - `ImportPolicy:` + strings.Replace(strings.Replace(this.ImportPolicy.String(), "TagImportPolicy", "TagImportPolicy", 1), `&`, ``, 1) + `,`, - `IncludeManifest:` + fmt.Sprintf("%v", this.IncludeManifest) + `,`, - `ReferencePolicy:` + strings.Replace(strings.Replace(this.ReferencePolicy.String(), "TagReferencePolicy", "TagReferencePolicy", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageImportStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageImportStatus{`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "Status", "k8s_io_apimachinery_pkg_apis_meta_v1.Status", 1), `&`, ``, 1) + `,`, - `Image:` + strings.Replace(fmt.Sprintf("%v", this.Image), "Image", "Image", 1) + `,`, - `Tag:` + fmt.Sprintf("%v", this.Tag) + `,`, - `}`, - }, "") - return s -} -func (this *ImageLayer) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageLayer{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `LayerSize:` + fmt.Sprintf("%v", this.LayerSize) + `,`, - `MediaType:` + fmt.Sprintf("%v", this.MediaType) + `,`, - `}`, - }, "") - return s -} -func (this *ImageList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Image", "Image", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageLookupPolicy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageLookupPolicy{`, - `Local:` + fmt.Sprintf("%v", this.Local) + `,`, - `}`, - }, "") - return s -} -func (this *ImageSignature) String() string { - if this == nil { - return "nil" - } - keysForSignedClaims := make([]string, 0, len(this.SignedClaims)) - for k := range this.SignedClaims { - keysForSignedClaims = append(keysForSignedClaims, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSignedClaims) - mapStringForSignedClaims := "map[string]string{" - for _, k := range keysForSignedClaims { - mapStringForSignedClaims += fmt.Sprintf("%v: %v,", k, this.SignedClaims[k]) - } - mapStringForSignedClaims += "}" - s := strings.Join([]string{`&ImageSignature{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Content:` + valueToStringGenerated(this.Content) + `,`, - `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "SignatureCondition", "SignatureCondition", 1), `&`, ``, 1) + `,`, - `ImageIdentity:` + fmt.Sprintf("%v", this.ImageIdentity) + `,`, - `SignedClaims:` + mapStringForSignedClaims + `,`, - `Created:` + strings.Replace(fmt.Sprintf("%v", this.Created), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1) + `,`, - `IssuedBy:` + strings.Replace(fmt.Sprintf("%v", this.IssuedBy), "SignatureIssuer", "SignatureIssuer", 1) + `,`, - `IssuedTo:` + strings.Replace(fmt.Sprintf("%v", this.IssuedTo), "SignatureSubject", "SignatureSubject", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageStream) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageStream{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ImageStreamSpec", "ImageStreamSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ImageStreamStatus", "ImageStreamStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageStreamImage) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageStreamImage{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Image:` + strings.Replace(strings.Replace(this.Image.String(), "Image", "Image", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageStreamImport) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageStreamImport{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ImageStreamImportSpec", "ImageStreamImportSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ImageStreamImportStatus", "ImageStreamImportStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageStreamImportSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageStreamImportSpec{`, - `Import:` + fmt.Sprintf("%v", this.Import) + `,`, - `Repository:` + strings.Replace(fmt.Sprintf("%v", this.Repository), "RepositoryImportSpec", "RepositoryImportSpec", 1) + `,`, - `Images:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Images), "ImageImportSpec", "ImageImportSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageStreamImportStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageStreamImportStatus{`, - `Import:` + strings.Replace(fmt.Sprintf("%v", this.Import), "ImageStream", "ImageStream", 1) + `,`, - `Repository:` + strings.Replace(fmt.Sprintf("%v", this.Repository), "RepositoryImportStatus", "RepositoryImportStatus", 1) + `,`, - `Images:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Images), "ImageImportStatus", "ImageImportStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageStreamList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageStreamList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ImageStream", "ImageStream", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageStreamMapping) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageStreamMapping{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Image:` + strings.Replace(strings.Replace(this.Image.String(), "Image", "Image", 1), `&`, ``, 1) + `,`, - `Tag:` + fmt.Sprintf("%v", this.Tag) + `,`, - `}`, - }, "") - return s -} -func (this *ImageStreamSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageStreamSpec{`, - `DockerImageRepository:` + fmt.Sprintf("%v", this.DockerImageRepository) + `,`, - `Tags:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Tags), "TagReference", "TagReference", 1), `&`, ``, 1) + `,`, - `LookupPolicy:` + strings.Replace(strings.Replace(this.LookupPolicy.String(), "ImageLookupPolicy", "ImageLookupPolicy", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageStreamStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageStreamStatus{`, - `DockerImageRepository:` + fmt.Sprintf("%v", this.DockerImageRepository) + `,`, - `Tags:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Tags), "NamedTagEventList", "NamedTagEventList", 1), `&`, ``, 1) + `,`, - `PublicDockerImageRepository:` + fmt.Sprintf("%v", this.PublicDockerImageRepository) + `,`, - `}`, - }, "") - return s -} -func (this *ImageStreamTag) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageStreamTag{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Tag:` + strings.Replace(fmt.Sprintf("%v", this.Tag), "TagReference", "TagReference", 1) + `,`, - `Generation:` + fmt.Sprintf("%v", this.Generation) + `,`, - `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "TagEventCondition", "TagEventCondition", 1), `&`, ``, 1) + `,`, - `Image:` + strings.Replace(strings.Replace(this.Image.String(), "Image", "Image", 1), `&`, ``, 1) + `,`, - `LookupPolicy:` + strings.Replace(strings.Replace(this.LookupPolicy.String(), "ImageLookupPolicy", "ImageLookupPolicy", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageStreamTagList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageStreamTagList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ImageStreamTag", "ImageStreamTag", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *NamedTagEventList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NamedTagEventList{`, - `Tag:` + fmt.Sprintf("%v", this.Tag) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "TagEvent", "TagEvent", 1), `&`, ``, 1) + `,`, - `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "TagEventCondition", "TagEventCondition", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RepositoryImportSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RepositoryImportSpec{`, - `From:` + strings.Replace(strings.Replace(this.From.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `ImportPolicy:` + strings.Replace(strings.Replace(this.ImportPolicy.String(), "TagImportPolicy", "TagImportPolicy", 1), `&`, ``, 1) + `,`, - `IncludeManifest:` + fmt.Sprintf("%v", this.IncludeManifest) + `,`, - `ReferencePolicy:` + strings.Replace(strings.Replace(this.ReferencePolicy.String(), "TagReferencePolicy", "TagReferencePolicy", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RepositoryImportStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RepositoryImportStatus{`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "Status", "k8s_io_apimachinery_pkg_apis_meta_v1.Status", 1), `&`, ``, 1) + `,`, - `Images:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Images), "ImageImportStatus", "ImageImportStatus", 1), `&`, ``, 1) + `,`, - `AdditionalTags:` + fmt.Sprintf("%v", this.AdditionalTags) + `,`, - `}`, - }, "") - return s -} -func (this *SignatureCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignatureCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastProbeTime:` + strings.Replace(strings.Replace(this.LastProbeTime.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *SignatureGenericEntity) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignatureGenericEntity{`, - `Organization:` + fmt.Sprintf("%v", this.Organization) + `,`, - `CommonName:` + fmt.Sprintf("%v", this.CommonName) + `,`, - `}`, - }, "") - return s -} -func (this *SignatureIssuer) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignatureIssuer{`, - `SignatureGenericEntity:` + strings.Replace(strings.Replace(this.SignatureGenericEntity.String(), "SignatureGenericEntity", "SignatureGenericEntity", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *SignatureSubject) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignatureSubject{`, - `SignatureGenericEntity:` + strings.Replace(strings.Replace(this.SignatureGenericEntity.String(), "SignatureGenericEntity", "SignatureGenericEntity", 1), `&`, ``, 1) + `,`, - `PublicKeyID:` + fmt.Sprintf("%v", this.PublicKeyID) + `,`, - `}`, - }, "") - return s -} -func (this *TagEvent) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TagEvent{`, - `Created:` + strings.Replace(strings.Replace(this.Created.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `DockerImageReference:` + fmt.Sprintf("%v", this.DockerImageReference) + `,`, - `Image:` + fmt.Sprintf("%v", this.Image) + `,`, - `Generation:` + fmt.Sprintf("%v", this.Generation) + `,`, - `}`, - }, "") - return s -} -func (this *TagEventCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TagEventCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `Generation:` + fmt.Sprintf("%v", this.Generation) + `,`, - `}`, - }, "") - return s -} -func (this *TagImportPolicy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TagImportPolicy{`, - `Insecure:` + fmt.Sprintf("%v", this.Insecure) + `,`, - `Scheduled:` + fmt.Sprintf("%v", this.Scheduled) + `,`, - `}`, - }, "") - return s -} -func (this *TagReference) String() string { - if this == nil { - return "nil" - } - keysForAnnotations := make([]string, 0, len(this.Annotations)) - for k := range this.Annotations { - keysForAnnotations = append(keysForAnnotations, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) - mapStringForAnnotations := "map[string]string{" - for _, k := range keysForAnnotations { - mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k]) - } - mapStringForAnnotations += "}" - s := strings.Join([]string{`&TagReference{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Annotations:` + mapStringForAnnotations + `,`, - `From:` + strings.Replace(fmt.Sprintf("%v", this.From), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1) + `,`, - `Reference:` + fmt.Sprintf("%v", this.Reference) + `,`, - `Generation:` + valueToStringGenerated(this.Generation) + `,`, - `ImportPolicy:` + strings.Replace(strings.Replace(this.ImportPolicy.String(), "TagImportPolicy", "TagImportPolicy", 1), `&`, ``, 1) + `,`, - `ReferencePolicy:` + strings.Replace(strings.Replace(this.ReferencePolicy.String(), "TagReferencePolicy", "TagReferencePolicy", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *TagReferencePolicy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TagReferencePolicy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *DockerImageReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DockerImageReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DockerImageReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Registry", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Registry = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tag", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tag = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Image) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Image: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Image: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerImageReference", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DockerImageReference = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerImageMetadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.DockerImageMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerImageMetadataVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DockerImageMetadataVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerImageManifest", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DockerImageManifest = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerImageLayers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DockerImageLayers = append(m.DockerImageLayers, ImageLayer{}) - if err := m.DockerImageLayers[len(m.DockerImageLayers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signatures", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Signatures = append(m.Signatures, ImageSignature{}) - if err := m.Signatures[len(m.Signatures)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerImageSignatures", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DockerImageSignatures = append(m.DockerImageSignatures, make([]byte, postIndex-iNdEx)) - copy(m.DockerImageSignatures[len(m.DockerImageSignatures)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerImageManifestMediaType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DockerImageManifestMediaType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerImageConfig", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DockerImageConfig = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageImportSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageImportSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageImportSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.From.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.To == nil { - m.To = &k8s_io_kubernetes_pkg_api_v1.LocalObjectReference{} - } - if err := m.To.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImportPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ImportPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeManifest", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeManifest = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReferencePolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ReferencePolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageImportStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageImportStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageImportStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Image == nil { - m.Image = &Image{} - } - if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tag", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tag = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageLayer) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageLayer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageLayer: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LayerSize", wireType) - } - m.LayerSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LayerSize |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MediaType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MediaType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Image{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageLookupPolicy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageLookupPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageLookupPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Local", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Local = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageSignature) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageSignature: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageSignature: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Content = append(m.Content[:0], dAtA[iNdEx:postIndex]...) - if m.Content == nil { - m.Content = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, SignatureCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImageIdentity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ImageIdentity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignedClaims", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.SignedClaims == nil { - m.SignedClaims = make(map[string]string) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue := string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - m.SignedClaims[mapkey] = mapvalue - } else { - var mapvalue string - m.SignedClaims[mapkey] = mapvalue - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IssuedBy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IssuedBy == nil { - m.IssuedBy = &SignatureIssuer{} - } - if err := m.IssuedBy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IssuedTo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IssuedTo == nil { - m.IssuedTo = &SignatureSubject{} - } - if err := m.IssuedTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageStream) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageStream: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageStream: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageStreamImage) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageStreamImage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageStreamImage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageStreamImport) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageStreamImport: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageStreamImport: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageStreamImportSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageStreamImportSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageStreamImportSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Import", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Import = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Repository", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Repository == nil { - m.Repository = &RepositoryImportSpec{} - } - if err := m.Repository.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Images", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Images = append(m.Images, ImageImportSpec{}) - if err := m.Images[len(m.Images)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageStreamImportStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageStreamImportStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageStreamImportStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Import", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Import == nil { - m.Import = &ImageStream{} - } - if err := m.Import.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Repository", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Repository == nil { - m.Repository = &RepositoryImportStatus{} - } - if err := m.Repository.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Images", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Images = append(m.Images, ImageImportStatus{}) - if err := m.Images[len(m.Images)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageStreamList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageStreamList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageStreamList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ImageStream{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageStreamMapping) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageStreamMapping: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageStreamMapping: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tag", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tag = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageStreamSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageStreamSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageStreamSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerImageRepository", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DockerImageRepository = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, TagReference{}) - if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LookupPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LookupPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageStreamStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageStreamStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageStreamStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerImageRepository", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DockerImageRepository = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, NamedTagEventList{}) - if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicDockerImageRepository", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicDockerImageRepository = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageStreamTag) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageStreamTag: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageStreamTag: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tag", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Tag == nil { - m.Tag = &TagReference{} - } - if err := m.Tag.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Generation", wireType) - } - m.Generation = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Generation |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, TagEventCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LookupPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LookupPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageStreamTagList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageStreamTagList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageStreamTagList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ImageStreamTag{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NamedTagEventList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NamedTagEventList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NamedTagEventList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tag", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tag = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, TagEvent{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, TagEventCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RepositoryImportSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RepositoryImportSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RepositoryImportSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.From.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImportPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ImportPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeManifest", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeManifest = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReferencePolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ReferencePolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RepositoryImportStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RepositoryImportStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RepositoryImportStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Images", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Images = append(m.Images, ImageImportStatus{}) - if err := m.Images[len(m.Images)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AdditionalTags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AdditionalTags = append(m.AdditionalTags, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignatureCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignatureCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignatureCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = SignatureConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_kubernetes_pkg_api_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastProbeTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastProbeTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignatureGenericEntity) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignatureGenericEntity: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignatureGenericEntity: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Organization", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Organization = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommonName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CommonName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignatureIssuer) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignatureIssuer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignatureIssuer: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignatureGenericEntity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.SignatureGenericEntity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignatureSubject) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignatureSubject: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignatureSubject: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignatureGenericEntity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.SignatureGenericEntity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKeyID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKeyID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TagEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TagEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TagEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DockerImageReference", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DockerImageReference = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Image = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Generation", wireType) - } - m.Generation = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Generation |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TagEventCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TagEventCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TagEventCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = TagEventConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_kubernetes_pkg_api_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Generation", wireType) - } - m.Generation = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Generation |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TagImportPolicy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TagImportPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TagImportPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Insecure", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Insecure = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Scheduled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Scheduled = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TagReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TagReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TagReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.Annotations == nil { - m.Annotations = make(map[string]string) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue := string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - m.Annotations[mapkey] = mapvalue - } else { - var mapvalue string - m.Annotations[mapkey] = mapvalue - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.From == nil { - m.From = &k8s_io_kubernetes_pkg_api_v1.ObjectReference{} - } - if err := m.From.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Reference", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Reference = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Generation", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Generation = &v - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImportPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ImportPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReferencePolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ReferencePolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TagReferencePolicy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TagReferencePolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TagReferencePolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = TagReferencePolicyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/openshift/origin/pkg/image/apis/image/v1/generated.proto", fileDescriptorGenerated) -} - -var fileDescriptorGenerated = []byte{ - // 2327 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x1a, 0xdd, 0x6f, 0x1b, 0x49, - 0xbd, 0xbb, 0xeb, 0xaf, 0xfc, 0xec, 0x26, 0xcd, 0x5c, 0xd3, 0xf3, 0xa5, 0x3d, 0xa7, 0xda, 0xd2, - 0x53, 0x41, 0x3d, 0x9b, 0xe6, 0x00, 0x95, 0x22, 0xee, 0xa8, 0xe3, 0xb4, 0xf2, 0x35, 0xa1, 0x61, - 0xe2, 0xbb, 0x07, 0x38, 0xe9, 0x98, 0xac, 0x27, 0x9b, 0x21, 0xf6, 0xae, 0xb5, 0xbb, 0xce, 0xe1, - 0x1e, 0x42, 0xf7, 0x74, 0x02, 0x84, 0x04, 0xe2, 0x91, 0x57, 0x84, 0xc4, 0x7f, 0x50, 0xf1, 0x17, - 0x50, 0xf1, 0x80, 0x4e, 0x48, 0xa0, 0x43, 0x3a, 0x45, 0xd4, 0xc0, 0x1b, 0x12, 0x2f, 0x88, 0x87, - 0x13, 0x42, 0x68, 0x67, 0x67, 0x3f, 0xbd, 0x76, 0x53, 0x3b, 0x75, 0x05, 0x6f, 0xf1, 0xfc, 0x3e, - 0xe7, 0xf7, 0x3d, 0xbf, 0x0d, 0x6c, 0xe8, 0xcc, 0x39, 0xe8, 0xef, 0x55, 0x35, 0xb3, 0x5b, 0x33, - 0x7b, 0xd4, 0xb0, 0x0f, 0xd8, 0xbe, 0x53, 0x33, 0x2d, 0xa6, 0x33, 0xa3, 0xd6, 0x3b, 0xd4, 0x6b, - 0xac, 0x4b, 0x74, 0x5a, 0x23, 0x3d, 0x66, 0x8b, 0x3f, 0x8f, 0x6e, 0xd4, 0x74, 0x6a, 0x50, 0x8b, - 0x38, 0xb4, 0x5d, 0xed, 0x59, 0xa6, 0x63, 0xa2, 0xd7, 0x42, 0x26, 0xd5, 0x80, 0x49, 0xd5, 0x63, - 0x52, 0xed, 0x1d, 0xea, 0x55, 0x4e, 0x59, 0x75, 0x99, 0x88, 0x3f, 0x8f, 0x6e, 0xac, 0xbe, 0x1a, - 0x91, 0xac, 0x9b, 0xba, 0x59, 0xe3, 0xbc, 0xf6, 0xfa, 0xfb, 0xfc, 0x17, 0xff, 0xc1, 0xff, 0xf2, - 0x64, 0xac, 0x7e, 0xe1, 0xf0, 0xa6, 0x5d, 0x65, 0xa6, 0xab, 0x49, 0x97, 0x68, 0x07, 0xcc, 0xa0, - 0xd6, 0x80, 0x2b, 0xc8, 0x55, 0xeb, 0x52, 0x87, 0xa4, 0x68, 0xb6, 0x5a, 0x1b, 0x47, 0x65, 0xf5, - 0x0d, 0x87, 0x75, 0xe9, 0x08, 0xc1, 0x97, 0x9e, 0x44, 0x60, 0x6b, 0x07, 0xb4, 0x4b, 0x46, 0xe8, - 0x5e, 0x1b, 0x47, 0xd7, 0x77, 0x58, 0xa7, 0xc6, 0x0c, 0xc7, 0x76, 0xac, 0x11, 0xa2, 0xeb, 0x82, - 0xe8, 0xb0, 0xbf, 0x47, 0x2d, 0x83, 0x3a, 0xd4, 0xf6, 0x6f, 0x94, 0x72, 0x17, 0xf5, 0xf7, 0x12, - 0x9c, 0x6f, 0x98, 0xda, 0x21, 0xb5, 0x9a, 0xae, 0x0d, 0x31, 0xdd, 0xa7, 0x16, 0x35, 0x34, 0x8a, - 0xae, 0x43, 0xc1, 0xa2, 0x3a, 0xb3, 0x1d, 0x6b, 0x50, 0x96, 0x2e, 0x4b, 0xd7, 0x16, 0xea, 0xe7, - 0x1e, 0x1d, 0xaf, 0x9d, 0x19, 0x1e, 0xaf, 0x15, 0xb0, 0x38, 0xc7, 0x01, 0x06, 0xaa, 0xc1, 0x82, - 0x41, 0xba, 0xd4, 0xee, 0x11, 0x8d, 0x96, 0x65, 0x8e, 0xbe, 0x2c, 0xd0, 0x17, 0xbe, 0xee, 0x03, - 0x70, 0x88, 0x83, 0x2e, 0x43, 0xc6, 0xfd, 0x51, 0x56, 0x38, 0x6e, 0x49, 0xe0, 0x66, 0x5c, 0x5c, - 0xcc, 0x21, 0xe8, 0x65, 0x50, 0x1c, 0xa2, 0x97, 0x33, 0x1c, 0xa1, 0x28, 0x10, 0x94, 0x16, 0xd1, - 0xb1, 0x7b, 0x8e, 0x56, 0x41, 0x66, 0x8d, 0x72, 0x96, 0x43, 0x41, 0x40, 0xe5, 0x66, 0x03, 0xcb, - 0xac, 0xa1, 0xfe, 0x33, 0x0f, 0x59, 0x7e, 0x1d, 0xf4, 0x6d, 0x28, 0xb8, 0x5e, 0x6c, 0x13, 0x87, - 0xf0, 0x5b, 0x14, 0xd7, 0x3f, 0x5f, 0xf5, 0xec, 0x53, 0x8d, 0x1a, 0x95, 0xc7, 0x13, 0x8f, 0x24, - 0x17, 0xbb, 0x7a, 0x74, 0xa3, 0x7a, 0x7f, 0xef, 0x3b, 0x54, 0x73, 0xb6, 0xa9, 0x43, 0xea, 0x48, - 0x70, 0x87, 0xf0, 0x0c, 0x07, 0x5c, 0xd1, 0x0e, 0x9c, 0x6f, 0xa7, 0xd8, 0x4f, 0x18, 0xe1, 0x92, - 0xa0, 0x4d, 0xb5, 0x31, 0x4e, 0xa5, 0x44, 0xdf, 0x83, 0x17, 0x22, 0xe7, 0xdb, 0xbe, 0xfa, 0x0a, - 0x57, 0xff, 0xd5, 0xb1, 0xea, 0x8b, 0x58, 0xaa, 0x62, 0xf2, 0xde, 0xe6, 0x77, 0x1d, 0x6a, 0xd8, - 0xcc, 0x34, 0xea, 0x17, 0x85, 0xfc, 0x17, 0x1a, 0xa3, 0x1c, 0x71, 0x9a, 0x18, 0xb4, 0x07, 0xab, - 0x29, 0xc7, 0x6f, 0x53, 0xcb, 0xe5, 0x27, 0xbc, 0xa1, 0x0a, 0xae, 0xab, 0x8d, 0xb1, 0x98, 0x78, - 0x02, 0x17, 0xb4, 0x1d, 0xbf, 0x21, 0x31, 0xd8, 0x3e, 0xb5, 0x1d, 0xe1, 0xcc, 0x54, 0x95, 0x05, - 0x0a, 0x4e, 0xa3, 0x43, 0x3f, 0x90, 0x60, 0x39, 0x72, 0xbe, 0x45, 0x06, 0xd4, 0xb2, 0xcb, 0xb9, - 0xcb, 0xca, 0xb5, 0xe2, 0xfa, 0x1b, 0xd5, 0x29, 0xca, 0x48, 0x35, 0xe4, 0x53, 0x7f, 0x49, 0xa8, - 0xb3, 0xdc, 0x48, 0x4a, 0xc0, 0xa3, 0x42, 0xd1, 0x7b, 0x00, 0x36, 0xd3, 0x0d, 0xe2, 0xf4, 0x2d, - 0x6a, 0x97, 0xf3, 0x5c, 0x85, 0x8d, 0xe9, 0x55, 0xd8, 0xf5, 0x79, 0x85, 0x41, 0x18, 0x1c, 0xd9, - 0x38, 0x22, 0x0a, 0xdd, 0x87, 0x95, 0x88, 0x36, 0x21, 0x52, 0xb9, 0x70, 0x59, 0xb9, 0x56, 0xaa, - 0xbf, 0x34, 0x3c, 0x5e, 0x5b, 0x69, 0xa4, 0x21, 0xe0, 0x74, 0x3a, 0x74, 0x00, 0x97, 0x52, 0x6c, - 0xbd, 0x4d, 0xdb, 0x8c, 0xb4, 0x06, 0x3d, 0x5a, 0x5e, 0xe0, 0xce, 0xfa, 0x8c, 0x50, 0xeb, 0x52, - 0x63, 0x02, 0x2e, 0x9e, 0xc8, 0x09, 0xdd, 0x8d, 0x79, 0x6f, 0xc3, 0x34, 0xf6, 0x99, 0x5e, 0x06, - 0xce, 0x3e, 0xcd, 0xf8, 0x1e, 0x02, 0x1e, 0xa5, 0x51, 0xff, 0xa3, 0xc0, 0x12, 0xff, 0xdd, 0xec, - 0xf6, 0x4c, 0xcb, 0xd9, 0xed, 0x51, 0x0d, 0xdd, 0x87, 0xcc, 0xbe, 0x65, 0x76, 0x45, 0xf2, 0x07, - 0xd9, 0x13, 0x16, 0x47, 0x3f, 0xf5, 0xc3, 0xa4, 0x0f, 0x32, 0x31, 0x2c, 0x4b, 0x77, 0x2c, 0xb3, - 0x8b, 0x39, 0x23, 0xf4, 0x26, 0xc8, 0x8e, 0xc9, 0xb3, 0xbb, 0xb8, 0xbe, 0x3e, 0x99, 0xdd, 0x96, - 0xa9, 0x91, 0x4e, 0x92, 0x67, 0xce, 0xad, 0x53, 0x2d, 0x13, 0xcb, 0x8e, 0x89, 0xbe, 0x0f, 0x25, - 0xc6, 0x55, 0xdd, 0x31, 0x3b, 0x4c, 0x1b, 0x88, 0x14, 0x6f, 0x4c, 0x15, 0x2f, 0x2d, 0xa2, 0x37, - 0x23, 0xbc, 0xea, 0xe7, 0x85, 0xee, 0xa5, 0xe8, 0x29, 0x8e, 0xc9, 0x43, 0xb7, 0x61, 0x89, 0x19, - 0x5a, 0xa7, 0xdf, 0x0e, 0x73, 0xd0, 0x4d, 0xf0, 0x42, 0xfd, 0x45, 0x41, 0xbc, 0xd4, 0x8c, 0x83, - 0x71, 0x12, 0x1f, 0xfd, 0x48, 0x82, 0x25, 0xcb, 0xbf, 0x9c, 0xb8, 0x46, 0x96, 0x5f, 0xe3, 0xee, - 0xb4, 0xd7, 0xc0, 0x71, 0x76, 0xa1, 0x32, 0x09, 0x00, 0x4e, 0x0a, 0x56, 0xff, 0x26, 0xc1, 0x72, - 0x34, 0x00, 0x1c, 0xe2, 0xf4, 0x6d, 0xd4, 0x82, 0x9c, 0xcd, 0xff, 0x12, 0x41, 0x70, 0xfd, 0x64, - 0x1d, 0xc0, 0xa3, 0xae, 0x2f, 0x0a, 0xe9, 0x39, 0xef, 0x37, 0x16, 0xbc, 0xd0, 0xb7, 0x20, 0xcb, - 0x95, 0x16, 0xa1, 0x70, 0x6b, 0xfa, 0x24, 0xaf, 0x2f, 0x0c, 0x8f, 0xd7, 0xbc, 0x7e, 0x85, 0x3d, - 0x9e, 0x7e, 0xef, 0x53, 0xd2, 0x7b, 0x9f, 0xfa, 0xa1, 0x04, 0x10, 0x56, 0x9d, 0xa0, 0x97, 0x4a, - 0x63, 0x7b, 0xe9, 0x55, 0xc8, 0xd8, 0xec, 0x81, 0xa7, 0xab, 0x12, 0x76, 0x66, 0x4e, 0xbe, 0xcb, - 0x1e, 0x50, 0xcc, 0xc1, 0x6e, 0x17, 0xef, 0x06, 0x09, 0xae, 0xc4, 0xbb, 0x78, 0x98, 0xcd, 0x21, - 0x8e, 0xfa, 0x5b, 0x09, 0x16, 0x3c, 0x45, 0x98, 0xed, 0xa0, 0x77, 0x46, 0x9a, 0x6d, 0xf5, 0x64, - 0xa6, 0x76, 0xa9, 0x79, 0xab, 0x0d, 0x46, 0x0c, 0xff, 0x24, 0xd2, 0x68, 0xdf, 0x85, 0x2c, 0x73, - 0x68, 0xd7, 0x2e, 0xcb, 0xbc, 0xaa, 0xce, 0x62, 0xf0, 0xb3, 0x42, 0x4c, 0xb6, 0xe9, 0x32, 0xc4, - 0x1e, 0x5f, 0xf5, 0xa6, 0x08, 0x9e, 0x2d, 0xd3, 0x3c, 0xec, 0xf7, 0x44, 0x8a, 0x5c, 0x81, 0x6c, - 0xc7, 0x4d, 0x63, 0x6e, 0x8e, 0x42, 0x48, 0xc9, 0x73, 0x1b, 0x7b, 0x30, 0xf5, 0xdf, 0x39, 0x58, - 0x8c, 0xd7, 0xcf, 0x39, 0x0c, 0x1e, 0x97, 0x21, 0xe3, 0xb8, 0x7e, 0x92, 0xe3, 0x5e, 0xe7, 0x2e, - 0xe2, 0x10, 0x74, 0x15, 0xf2, 0x9a, 0x69, 0x38, 0xd4, 0x70, 0xb8, 0xf6, 0xa5, 0x7a, 0x71, 0x78, - 0xbc, 0x96, 0xdf, 0xf0, 0x8e, 0xb0, 0x0f, 0x43, 0xef, 0x03, 0x68, 0xa6, 0xd1, 0x66, 0x0e, 0x33, - 0x0d, 0xbb, 0x9c, 0xe1, 0xd6, 0x9d, 0x2e, 0x79, 0x83, 0xeb, 0x6f, 0xf8, 0xfc, 0xc2, 0x3b, 0x04, - 0x47, 0x36, 0x8e, 0x88, 0x43, 0x5f, 0x81, 0xb3, 0x9c, 0xbc, 0xd9, 0xa6, 0x86, 0xc3, 0x9c, 0x81, - 0x18, 0x02, 0x56, 0x04, 0xd9, 0xd9, 0x66, 0x14, 0x88, 0xe3, 0xb8, 0xe8, 0x27, 0x12, 0x94, 0xdc, - 0x1e, 0x48, 0xdb, 0x1b, 0x1d, 0xc2, 0xba, 0x7e, 0xcf, 0x7f, 0xeb, 0x14, 0x1a, 0x2e, 0xbf, 0x8b, - 0xcf, 0x77, 0xd3, 0x70, 0xac, 0x48, 0x45, 0x8d, 0x82, 0x70, 0x4c, 0x01, 0xf4, 0x0d, 0xc8, 0x6b, - 0x16, 0x75, 0xe7, 0xeb, 0x72, 0x9e, 0x7b, 0xfd, 0x73, 0x27, 0xf3, 0x7a, 0x8b, 0x75, 0xa9, 0x70, - 0x8f, 0x47, 0x8e, 0x7d, 0x3e, 0xc8, 0x80, 0x02, 0xb3, 0xed, 0x3e, 0x6d, 0xd7, 0x07, 0xe5, 0xc2, - 0x0c, 0x0d, 0x22, 0xb8, 0x5a, 0xd3, 0xe5, 0x66, 0xd5, 0x4b, 0x6e, 0x9e, 0x35, 0x05, 0x67, 0x1c, - 0xc8, 0x40, 0xa6, 0x2f, 0xaf, 0x65, 0xf2, 0x26, 0x5f, 0x5c, 0xdf, 0x9c, 0x4d, 0xde, 0x6e, 0x9f, - 0x87, 0x6f, 0x54, 0x60, 0xcb, 0xc4, 0x81, 0x90, 0xd5, 0x37, 0x60, 0x79, 0xc4, 0xd8, 0xe8, 0x1c, - 0x28, 0x87, 0x54, 0xbc, 0x3c, 0xb0, 0xfb, 0x27, 0x3a, 0x0f, 0xd9, 0x23, 0xd2, 0xe9, 0x8b, 0x80, - 0xc7, 0xde, 0x8f, 0x5b, 0xf2, 0x4d, 0x49, 0xfd, 0x8d, 0x0c, 0x45, 0xcf, 0x7b, 0x8e, 0x45, 0x49, - 0x77, 0x0e, 0xb9, 0xb7, 0x0f, 0x19, 0xbb, 0x47, 0x35, 0x51, 0xfb, 0x1b, 0x33, 0xc4, 0x1b, 0xd7, - 0xd8, 0x9d, 0x54, 0xc2, 0x0c, 0x76, 0x7f, 0x61, 0xce, 0x1f, 0x19, 0x41, 0xeb, 0xf2, 0x46, 0x83, - 0x3b, 0x33, 0x4b, 0x9a, 0xd8, 0xd4, 0xd4, 0x3f, 0x48, 0x70, 0x2e, 0x82, 0x3d, 0xaf, 0x37, 0xd4, - 0xbb, 0xa7, 0xd7, 0x4b, 0xc3, 0xd2, 0x1e, 0xe9, 0xa7, 0xea, 0x9f, 0x64, 0x51, 0xdb, 0xfd, 0x7b, - 0xb9, 0xe3, 0xc1, 0x1c, 0x2e, 0xd6, 0x89, 0xc5, 0xc9, 0x9b, 0xb3, 0x7a, 0x2f, 0x9c, 0x6b, 0x53, - 0xa3, 0xc5, 0x49, 0x44, 0xcb, 0xd6, 0x29, 0xc9, 0x9b, 0x1c, 0x33, 0xbf, 0x92, 0x61, 0x25, 0x55, - 0x47, 0xf4, 0x0a, 0xe4, 0xbc, 0x71, 0x93, 0x5b, 0xb7, 0x10, 0x72, 0xf0, 0x70, 0xb0, 0x80, 0xa2, - 0x01, 0x80, 0x45, 0x7b, 0xa6, 0xcd, 0x1c, 0xd3, 0x1a, 0x08, 0x5b, 0x35, 0xa7, 0xd2, 0x1d, 0x07, - 0x6c, 0x22, 0xa6, 0x5a, 0x74, 0xdd, 0x13, 0x42, 0x70, 0x44, 0x18, 0xea, 0xb8, 0x2a, 0x12, 0x9d, - 0xba, 0x26, 0x53, 0x66, 0x4b, 0xe5, 0xa8, 0xc4, 0xf0, 0xa2, 0x2e, 0x6f, 0x2c, 0x64, 0xa8, 0x7f, - 0x97, 0xe1, 0xc5, 0x31, 0xe6, 0x45, 0xed, 0x98, 0xb1, 0x8a, 0xeb, 0x5f, 0x9b, 0xd5, 0x79, 0x75, - 0x48, 0x31, 0xf5, 0xfb, 0x29, 0xa6, 0xbe, 0x77, 0x3a, 0xa6, 0x16, 0x51, 0x32, 0xc1, 0xd8, 0x46, - 0xc2, 0xd8, 0x77, 0x66, 0x36, 0x76, 0x22, 0x32, 0x13, 0xe6, 0xfe, 0xa3, 0x24, 0xde, 0x83, 0x9e, - 0x41, 0xe6, 0x30, 0xa3, 0xd2, 0xf8, 0x8c, 0x3a, 0xbb, 0x0f, 0xd3, 0x27, 0xd5, 0x7f, 0x49, 0x80, - 0x22, 0x58, 0xdb, 0xa4, 0xd7, 0x63, 0x86, 0xfe, 0x7f, 0x50, 0xa8, 0x9f, 0xf4, 0xf0, 0xf9, 0x9d, - 0x1c, 0xf3, 0x28, 0xaf, 0x32, 0xbb, 0xb1, 0xcd, 0x47, 0x18, 0x7a, 0xe2, 0x39, 0xf4, 0xb2, 0x60, - 0xb2, 0xd2, 0x48, 0x43, 0xc2, 0xe9, 0xb4, 0x48, 0x83, 0x8c, 0x43, 0x74, 0xdf, 0x8f, 0xb7, 0x67, - 0x7e, 0xca, 0x46, 0xe6, 0x73, 0xa2, 0xdb, 0x98, 0x33, 0x47, 0x1f, 0x48, 0x50, 0xea, 0x44, 0x1e, - 0x1b, 0xb3, 0x37, 0xf9, 0xe8, 0xd3, 0x25, 0x9c, 0x57, 0xa3, 0xa7, 0x38, 0x26, 0x51, 0xfd, 0x75, - 0xbc, 0x31, 0x8a, 0x5a, 0xf4, 0x4c, 0x4c, 0x7a, 0x10, 0x33, 0xe9, 0x74, 0x97, 0x74, 0x9f, 0xb4, - 0xed, 0x16, 0xd1, 0x37, 0x8f, 0xa8, 0xe1, 0xb8, 0xf9, 0x97, 0x6a, 0x57, 0x0a, 0x17, 0x7b, 0xfd, - 0xbd, 0x0e, 0xd3, 0x52, 0xf5, 0x13, 0xc1, 0x75, 0x45, 0x10, 0x5e, 0xdc, 0x19, 0x8f, 0x8a, 0x27, - 0xf1, 0x51, 0xff, 0x9a, 0xf1, 0x5f, 0x7d, 0xdc, 0x76, 0x2d, 0x32, 0x8f, 0x0c, 0x7c, 0xc7, 0x4b, - 0x10, 0x2f, 0xff, 0x4e, 0x21, 0x2e, 0xf3, 0xb1, 0xa5, 0xfa, 0x3a, 0x80, 0xf8, 0x40, 0xc0, 0x4c, - 0x83, 0x1b, 0x4a, 0x09, 0xf5, 0xb9, 0x1b, 0x40, 0x70, 0x04, 0x0b, 0x3d, 0x48, 0x79, 0x3e, 0xde, - 0x99, 0x56, 0x31, 0xee, 0xd8, 0x93, 0xbf, 0x1e, 0x83, 0x7a, 0x94, 0x7d, 0x46, 0xf5, 0x68, 0x24, - 0x45, 0x73, 0x73, 0x4f, 0xd1, 0x4f, 0xe2, 0xc5, 0xbe, 0x45, 0xf4, 0x39, 0x34, 0xb2, 0x83, 0x78, - 0x23, 0xdb, 0x98, 0xb5, 0x91, 0xb5, 0x88, 0x3e, 0xa6, 0x97, 0xfd, 0x4c, 0x86, 0xe5, 0x91, 0xb4, - 0xf6, 0xfb, 0x80, 0x34, 0xe6, 0xe3, 0xcf, 0x5e, 0x5c, 0xbd, 0xaf, 0xce, 0x14, 0x6e, 0xe9, 0x8a, - 0x25, 0xe2, 0x5a, 0x99, 0x67, 0x5c, 0xab, 0x0f, 0x15, 0x38, 0x9f, 0x36, 0xcb, 0x9e, 0xfe, 0x3a, - 0x3b, 0xb9, 0x82, 0x96, 0x9f, 0xff, 0x0a, 0x5a, 0x39, 0x85, 0x15, 0x74, 0xe6, 0x79, 0xad, 0xa0, - 0x7f, 0x2e, 0xc3, 0x85, 0xf4, 0xd1, 0xf8, 0x19, 0xed, 0xa1, 0xc3, 0xa1, 0x5a, 0x9e, 0xc7, 0x50, - 0x8d, 0x6e, 0xc1, 0x22, 0x69, 0x7b, 0x71, 0x4a, 0x3a, 0x6e, 0xd3, 0xe5, 0xa9, 0xb1, 0x50, 0x47, - 0xc3, 0xe3, 0xb5, 0xc5, 0xdb, 0x31, 0x08, 0x4e, 0x60, 0xaa, 0x9f, 0x28, 0x80, 0x46, 0x77, 0x84, - 0xe8, 0x96, 0xd8, 0x64, 0x7a, 0xd9, 0xfe, 0x4a, 0x74, 0x93, 0xf9, 0xe9, 0xf1, 0xda, 0x85, 0x51, - 0x8a, 0xc8, 0x8e, 0xf3, 0xed, 0xc0, 0xa8, 0xde, 0x1e, 0xf4, 0xf5, 0xb8, 0x99, 0x3e, 0x3d, 0x5e, - 0x9b, 0xf8, 0x3d, 0xbc, 0x1a, 0xf0, 0x4c, 0x98, 0x55, 0x87, 0xb3, 0x1d, 0x62, 0x3b, 0x3b, 0x96, - 0xb9, 0x47, 0x5b, 0x4c, 0x7c, 0xa8, 0x7e, 0xba, 0x75, 0x5e, 0xb0, 0xc3, 0xdc, 0x8a, 0x32, 0xc2, - 0x71, 0xbe, 0xe8, 0x08, 0x90, 0x7b, 0xd0, 0xb2, 0x88, 0x61, 0x7b, 0x97, 0x73, 0xa5, 0x65, 0x9e, - 0x5a, 0xda, 0xaa, 0x90, 0x86, 0xb6, 0x46, 0xb8, 0xe1, 0x14, 0x09, 0xee, 0xe3, 0xdc, 0xa2, 0xc4, - 0x36, 0x0d, 0xb1, 0x71, 0x0d, 0xfc, 0x8d, 0xf9, 0x29, 0x16, 0x50, 0xf4, 0x59, 0xc8, 0x77, 0xa9, - 0x6d, 0xbb, 0x4d, 0x36, 0xc7, 0x11, 0x97, 0x04, 0x62, 0x7e, 0xdb, 0x3b, 0xc6, 0x3e, 0x5c, 0xfd, - 0x50, 0x82, 0xd0, 0x59, 0x7c, 0x5a, 0x60, 0xda, 0xa6, 0xb7, 0xa9, 0xbd, 0x09, 0x25, 0xd3, 0xd2, - 0x89, 0xc1, 0x1e, 0x78, 0xa3, 0x85, 0xe7, 0xea, 0xa0, 0x40, 0xdc, 0x8f, 0xc0, 0x70, 0x0c, 0xd3, - 0x1d, 0x49, 0x34, 0xb3, 0xdb, 0x35, 0x0d, 0xb7, 0x49, 0x08, 0x27, 0x47, 0xca, 0xa7, 0x0f, 0xc1, - 0x11, 0x2c, 0xf5, 0xa1, 0x04, 0x4b, 0x89, 0x75, 0x27, 0xfa, 0x85, 0x04, 0x17, 0xec, 0x54, 0xe5, - 0x44, 0x3a, 0xde, 0x9b, 0x6d, 0xcb, 0x19, 0x63, 0x59, 0xaf, 0x08, 0x0d, 0xc7, 0xd8, 0x03, 0x8f, - 0x51, 0x45, 0xfd, 0x87, 0x04, 0xe7, 0x92, 0x8b, 0xd3, 0xff, 0x0d, 0xd5, 0xd1, 0x17, 0xa1, 0xe8, - 0x4d, 0xcb, 0xf7, 0xe8, 0xa0, 0xd9, 0x10, 0x9e, 0x7a, 0x41, 0x30, 0x2b, 0xee, 0x84, 0x20, 0x1c, - 0xc5, 0x53, 0x7f, 0x2c, 0x43, 0xc1, 0x6f, 0x90, 0xe8, 0xad, 0x70, 0x7d, 0x2e, 0x3d, 0x75, 0x06, - 0x04, 0x81, 0x39, 0xb2, 0x42, 0x3f, 0xfd, 0xff, 0xd1, 0xb8, 0xe2, 0x0f, 0x9e, 0xde, 0x63, 0x22, - 0x7d, 0x78, 0x8c, 0x4f, 0xd3, 0x99, 0x93, 0x4c, 0xd3, 0xea, 0x2f, 0x15, 0x58, 0x1e, 0x99, 0x17, - 0xd0, 0x97, 0x63, 0x15, 0xf2, 0x6a, 0xa2, 0x42, 0xae, 0x8c, 0x10, 0xcc, 0xa1, 0x40, 0xa6, 0xd7, - 0x2d, 0x65, 0x8e, 0x75, 0x2b, 0x73, 0xd2, 0xba, 0x95, 0x9d, 0x5c, 0xb7, 0x12, 0x7e, 0xca, 0x9d, - 0xc8, 0x4f, 0x3d, 0x58, 0x4a, 0x8c, 0x3b, 0xe8, 0x3a, 0x14, 0x98, 0x61, 0x53, 0xad, 0x6f, 0x51, - 0xb1, 0xf0, 0x0c, 0x26, 0xec, 0xa6, 0x38, 0xc7, 0x01, 0x06, 0xaa, 0xc1, 0x82, 0xad, 0x1d, 0xd0, - 0x76, 0xbf, 0x43, 0xdb, 0xdc, 0x35, 0x85, 0xf0, 0x5b, 0xeb, 0xae, 0x0f, 0xc0, 0x21, 0x8e, 0xfa, - 0x30, 0x0b, 0xa5, 0xe8, 0x68, 0x72, 0x82, 0xcf, 0xbe, 0x3f, 0x94, 0xa0, 0x48, 0x0c, 0xc3, 0x74, - 0x88, 0x37, 0xc4, 0x7a, 0x13, 0x02, 0x9e, 0x79, 0x2a, 0xaa, 0xde, 0x0e, 0x99, 0x7a, 0xdf, 0xc6, - 0x82, 0x3c, 0x8f, 0x40, 0x70, 0x54, 0x36, 0xba, 0x27, 0x26, 0x57, 0x65, 0x9a, 0xc9, 0xb5, 0x90, - 0x98, 0x5a, 0x6b, 0xb0, 0x10, 0x0c, 0x5e, 0xe2, 0x5f, 0x16, 0x02, 0xe3, 0x85, 0xa9, 0x1b, 0xe2, - 0xa0, 0x6a, 0xcc, 0xc5, 0x59, 0xee, 0xe2, 0xc5, 0x09, 0x8f, 0xda, 0xe4, 0x58, 0x9c, 0x9b, 0xf3, - 0x58, 0x9c, 0x36, 0xd3, 0xe6, 0x9f, 0xd3, 0x4c, 0xbb, 0xfa, 0x3a, 0x9c, 0x4b, 0x3a, 0xfc, 0xa9, - 0xbe, 0xcf, 0xed, 0x00, 0x1a, 0x95, 0xff, 0xa4, 0xa9, 0x6f, 0x94, 0x22, 0x2c, 0x6a, 0xf5, 0x6b, - 0x8f, 0x1e, 0x57, 0xce, 0x7c, 0xf4, 0xb8, 0x72, 0xe6, 0xe3, 0xc7, 0x95, 0x33, 0x1f, 0x0c, 0x2b, - 0xd2, 0xa3, 0x61, 0x45, 0xfa, 0x68, 0x58, 0x91, 0x3e, 0x1e, 0x56, 0xa4, 0x3f, 0x0f, 0x2b, 0xd2, - 0x4f, 0xff, 0x52, 0x39, 0xf3, 0x4d, 0xf9, 0xe8, 0xc6, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xd9, - 0xa4, 0x06, 0x54, 0x8b, 0x2a, 0x00, 0x00, -} diff --git a/pkg/image/apis/image/v1/generated.proto b/pkg/image/apis/image/v1/generated.proto index bca0e2c04eef..75c613138efe 100644 --- a/pkg/image/apis/image/v1/generated.proto +++ b/pkg/image/apis/image/v1/generated.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.image.apis.image.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,111 +13,120 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // DockerImageReference points to a Docker image. message DockerImageReference { // Registry is the registry that contains the Docker image - optional string registry = 1; + optional string registry = 1 [(gogoproto.customname) = "Registry", (gogoproto.nullable) = false]; // Namespace is the namespace that contains the Docker image - optional string namespace = 2; + optional string namespace = 2 [(gogoproto.customname) = "Namespace", (gogoproto.nullable) = false]; // Name is the name of the Docker image - optional string name = 3; + optional string name = 3 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // Tag is which tag of the Docker image is being referenced - optional string tag = 4; + optional string tag = 4 [(gogoproto.customname) = "Tag", (gogoproto.nullable) = false]; // ID is the identifier for the Docker image - optional string iD = 5; + optional string iD = 5 [(gogoproto.customname) = "ID", (gogoproto.nullable) = false]; } // Image is an immutable representation of a Docker image and metadata at a point in time. message Image { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // DockerImageReference is the string that can be used to pull this image. - optional string dockerImageReference = 2; + optional string dockerImageReference = 2 [(gogoproto.customname) = "DockerImageReference", (gogoproto.nullable) = false]; // DockerImageMetadata contains metadata about this image // +patchStrategy=replace - optional k8s.io.apimachinery.pkg.runtime.RawExtension dockerImageMetadata = 3; + optional k8s.io.apimachinery.pkg.runtime.RawExtension dockerImageMetadata = 3 [(gogoproto.customname) = "DockerImageMetadata", (gogoproto.nullable) = false]; // DockerImageMetadataVersion conveys the version of the object, which if empty defaults to "1.0" - optional string dockerImageMetadataVersion = 4; + optional string dockerImageMetadataVersion = 4 [(gogoproto.customname) = "DockerImageMetadataVersion", (gogoproto.nullable) = false]; // DockerImageManifest is the raw JSON of the manifest - optional string dockerImageManifest = 5; + optional string dockerImageManifest = 5 [(gogoproto.customname) = "DockerImageManifest", (gogoproto.nullable) = false]; // DockerImageLayers represents the layers in the image. May not be set if the image does not define that data. - repeated ImageLayer dockerImageLayers = 6; + repeated ImageLayer dockerImageLayers = 6 [(gogoproto.customname) = "DockerImageLayers", (gogoproto.nullable) = false]; // Signatures holds all signatures of the image. // +patchMergeKey=name // +patchStrategy=merge - repeated ImageSignature signatures = 7; + repeated ImageSignature signatures = 7 [(gogoproto.customname) = "Signatures", (gogoproto.nullable) = false]; // DockerImageSignatures provides the signatures as opaque blobs. This is a part of manifest schema v1. - repeated bytes dockerImageSignatures = 8; + repeated bytes dockerImageSignatures = 8 [(gogoproto.customname) = "DockerImageSignatures"]; // DockerImageManifestMediaType specifies the mediaType of manifest. This is a part of manifest schema v2. - optional string dockerImageManifestMediaType = 9; + optional string dockerImageManifestMediaType = 9 [(gogoproto.customname) = "DockerImageManifestMediaType", (gogoproto.nullable) = false]; // DockerImageConfig is a JSON blob that the runtime uses to set up the container. This is a part of manifest schema v2. - optional string dockerImageConfig = 10; + optional string dockerImageConfig = 10 [(gogoproto.customname) = "DockerImageConfig", (gogoproto.nullable) = false]; } // ImageImportSpec describes a request to import a specific image. message ImageImportSpec { // From is the source of an image to import; only kind DockerImage is allowed - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // To is a tag in the current image stream to assign the imported image to, if name is not specified the default tag from from.name will be used - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference to = 2; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference to = 2 [(gogoproto.customname) = "To"]; // ImportPolicy is the policy controlling how the image is imported - optional TagImportPolicy importPolicy = 3; + optional TagImportPolicy importPolicy = 3 [(gogoproto.customname) = "ImportPolicy", (gogoproto.nullable) = false]; // ReferencePolicy defines how other components should consume the image - optional TagReferencePolicy referencePolicy = 5; + optional TagReferencePolicy referencePolicy = 5 [(gogoproto.customname) = "ReferencePolicy", (gogoproto.nullable) = false]; // IncludeManifest determines if the manifest for each image is returned in the response - optional bool includeManifest = 4; + optional bool includeManifest = 4 [(gogoproto.customname) = "IncludeManifest", (gogoproto.nullable) = false]; } // ImageImportStatus describes the result of an image import. message ImageImportStatus { // Status is the status of the image import, including errors encountered while retrieving the image - optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 1 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; // Image is the metadata of that image, if the image was located - optional Image image = 2; + optional Image image = 2 [(gogoproto.customname) = "Image"]; // Tag is the tag this image was located under, if any - optional string tag = 3; + optional string tag = 3 [(gogoproto.customname) = "Tag", (gogoproto.nullable) = false]; } // ImageLayer represents a single layer of the image. Some images may have multiple layers. Some may have none. message ImageLayer { // Name of the layer as defined by the underlying store. - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // Size of the layer in bytes as defined by the underlying store. - optional int64 size = 2; + optional int64 size = 2 [(gogoproto.customname) = "LayerSize", (gogoproto.nullable) = false]; // MediaType of the referenced object. - optional string mediaType = 3; + optional string mediaType = 3 [(gogoproto.customname) = "MediaType", (gogoproto.nullable) = false]; } // ImageList is a list of Image objects. message ImageList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of images - repeated Image items = 2; + repeated Image items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ImageLookupPolicy describes how an image stream can be used to override the image references @@ -127,7 +137,7 @@ message ImageLookupPolicy { // this image stream, instead of reaching out to a remote registry. The name will // be fully qualified to an image ID if found. The tag's referencePolicy is taken // into account on the replaced value. Only works within the current namespace. - optional bool local = 3; + optional bool local = 3 [(gogoproto.customname) = "Local", (gogoproto.nullable) = false]; } // ImageSignature holds a signature of an image. It allows to verify image identity and possibly other claims @@ -137,36 +147,36 @@ message ImageLookupPolicy { // signature's content by the server. They serve just an informative purpose. message ImageSignature { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Required: Describes a type of stored blob. - optional string type = 2; + optional string type = 2 [(gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Required: An opaque binary string which is an image's signature. - optional bytes content = 3; + optional bytes content = 3 [(gogoproto.customname) = "Content"]; // Conditions represent the latest available observations of a signature's current state. // +patchMergeKey=type // +patchStrategy=merge - repeated SignatureCondition conditions = 4; + repeated SignatureCondition conditions = 4 [(gogoproto.customname) = "Conditions", (gogoproto.nullable) = false]; // A human readable string representing image's identity. It could be a product name and version, or an // image pull spec (e.g. "registry.access.redhat.com/rhel7/rhel:7.2"). - optional string imageIdentity = 5; + optional string imageIdentity = 5 [(gogoproto.customname) = "ImageIdentity", (gogoproto.nullable) = false]; // Contains claims from the signature. - map signedClaims = 6; + map signedClaims = 6 [(gogoproto.customname) = "SignedClaims", (gogoproto.nullable) = false]; // If specified, it is the time of signature's creation. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time created = 7; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time created = 7 [(gogoproto.customname) = "Created"]; // If specified, it holds information about an issuer of signing certificate or key (a person or entity // who signed the signing certificate or key). - optional SignatureIssuer issuedBy = 8; + optional SignatureIssuer issuedBy = 8 [(gogoproto.customname) = "IssuedBy"]; // If specified, it holds information about a subject of signing certificate or key (a person or entity // who signed the image). - optional SignatureSubject issuedTo = 9; + optional SignatureSubject issuedTo = 9 [(gogoproto.customname) = "IssuedTo"]; } // ImageStream stores a mapping of tags to images, metadata overrides that are applied @@ -174,22 +184,22 @@ message ImageSignature { // repository on a registry. message ImageStream { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Spec describes the desired state of this stream - optional ImageStreamSpec spec = 2; + optional ImageStreamSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status describes the current state of this stream - optional ImageStreamStatus status = 3; + optional ImageStreamStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // ImageStreamImage represents an Image that is retrieved by image name from an ImageStream. message ImageStreamImage { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Image associated with the ImageStream and image name. - optional Image image = 2; + optional Image image = 2 [(gogoproto.customname) = "Image", (gogoproto.nullable) = false]; } // The image stream import resource provides an easy way for a user to find and import Docker images @@ -202,280 +212,289 @@ message ImageStreamImage { // to create spec.tags directly into their image streams. message ImageStreamImport { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Spec is a description of the images that the user wishes to import - optional ImageStreamImportSpec spec = 2; + optional ImageStreamImportSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status is the the result of importing the image - optional ImageStreamImportStatus status = 3; + optional ImageStreamImportStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // ImageStreamImportSpec defines what images should be imported. message ImageStreamImportSpec { // Import indicates whether to perform an import - if so, the specified tags are set on the spec // and status of the image stream defined by the type meta. - optional bool import = 1; + optional bool import = 1 [(gogoproto.customname) = "Import", (gogoproto.nullable) = false]; // Repository is an optional import of an entire Docker image repository. A maximum limit on the // number of tags imported this way is imposed by the server. - optional RepositoryImportSpec repository = 2; + optional RepositoryImportSpec repository = 2 [(gogoproto.customname) = "Repository"]; // Images are a list of individual images to import. - repeated ImageImportSpec images = 3; + repeated ImageImportSpec images = 3 [(gogoproto.customname) = "Images", (gogoproto.nullable) = false]; } // ImageStreamImportStatus contains information about the status of an image stream import. message ImageStreamImportStatus { // Import is the image stream that was successfully updated or created when 'to' was set. - optional ImageStream import = 1; + optional ImageStream import = 1 [(gogoproto.customname) = "Import"]; // Repository is set if spec.repository was set to the outcome of the import - optional RepositoryImportStatus repository = 2; + optional RepositoryImportStatus repository = 2 [(gogoproto.customname) = "Repository"]; // Images is set with the result of importing spec.images - repeated ImageImportStatus images = 3; + repeated ImageImportStatus images = 3 [(gogoproto.customname) = "Images", (gogoproto.nullable) = false]; } // ImageStreamList is a list of ImageStream objects. message ImageStreamList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of imageStreams - repeated ImageStream items = 2; + repeated ImageStream items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ImageStreamMapping represents a mapping from a single tag to a Docker image as // well as the reference to the Docker image stream the image came from. message ImageStreamMapping { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Image is a Docker image. - optional Image image = 2; + optional Image image = 2 [(gogoproto.customname) = "Image", (gogoproto.nullable) = false]; // Tag is a string value this image can be located with inside the stream. - optional string tag = 3; + optional string tag = 3 [(gogoproto.customname) = "Tag", (gogoproto.nullable) = false]; } // ImageStreamSpec represents options for ImageStreams. message ImageStreamSpec { // lookupPolicy controls how other resources reference images within this namespace. - optional ImageLookupPolicy lookupPolicy = 3; + optional ImageLookupPolicy lookupPolicy = 3 [(gogoproto.customname) = "LookupPolicy", (gogoproto.nullable) = false]; // dockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server - optional string dockerImageRepository = 1; + // Deprecated: This field is deprecated as of v3.7 and will be removed in a future release + // Specify the source for the tags to be imported in each tag via the spec.tags.from reference instead. + optional string dockerImageRepository = 1 [(gogoproto.customname) = "DockerImageRepository", (gogoproto.nullable) = false]; // tags map arbitrary string values to specific image locators - repeated TagReference tags = 2; + repeated TagReference tags = 2 [(gogoproto.customname) = "Tags", (gogoproto.nullable) = false]; } // ImageStreamStatus contains information about the state of this image stream. message ImageStreamStatus { // DockerImageRepository represents the effective location this stream may be accessed at. // May be empty until the server determines where the repository is located - optional string dockerImageRepository = 1; + optional string dockerImageRepository = 1 [(gogoproto.customname) = "DockerImageRepository", (gogoproto.nullable) = false]; // PublicDockerImageRepository represents the public location from where the image can // be pulled outside the cluster. This field may be empty if the administrator // has not exposed the integrated registry externally. - optional string publicDockerImageRepository = 3; + optional string publicDockerImageRepository = 3 [(gogoproto.customname) = "PublicDockerImageRepository", (gogoproto.nullable) = false]; // Tags are a historical record of images associated with each tag. The first entry in the // TagEvent array is the currently tagged image. - repeated NamedTagEventList tags = 2; + repeated NamedTagEventList tags = 2 [(gogoproto.customname) = "Tags", (gogoproto.nullable) = false]; } // ImageStreamTag represents an Image that is retrieved by tag name from an ImageStream. message ImageStreamTag { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // tag is the spec tag associated with this image stream tag, and it may be null // if only pushes have occurred to this image stream. - optional TagReference tag = 2; + optional TagReference tag = 2 [(gogoproto.customname) = "Tag"]; // generation is the current generation of the tagged image - if tag is provided // and this value is not equal to the tag generation, a user has requested an // import that has not completed, or conditions will be filled out indicating any // error. - optional int64 generation = 3; + optional int64 generation = 3 [(gogoproto.customname) = "Generation", (gogoproto.nullable) = false]; // lookupPolicy indicates whether this tag will handle image references in this // namespace. - optional ImageLookupPolicy lookupPolicy = 6; + optional ImageLookupPolicy lookupPolicy = 6 [(gogoproto.customname) = "LookupPolicy", (gogoproto.nullable) = false]; // conditions is an array of conditions that apply to the image stream tag. - repeated TagEventCondition conditions = 4; + repeated TagEventCondition conditions = 4 [(gogoproto.customname) = "Conditions", (gogoproto.nullable) = false]; // image associated with the ImageStream and tag. - optional Image image = 5; + optional Image image = 5 [(gogoproto.customname) = "Image", (gogoproto.nullable) = false]; } // ImageStreamTagList is a list of ImageStreamTag objects. message ImageStreamTagList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of image stream tags - repeated ImageStreamTag items = 2; + repeated ImageStreamTag items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // NamedTagEventList relates a tag to its image history. message NamedTagEventList { // Tag is the tag for which the history is recorded - optional string tag = 1; + optional string tag = 1 [(gogoproto.customname) = "Tag", (gogoproto.nullable) = false]; // Standard object's metadata. - repeated TagEvent items = 2; + repeated TagEvent items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; // Conditions is an array of conditions that apply to the tag event list. - repeated TagEventCondition conditions = 3; + repeated TagEventCondition conditions = 3 [(gogoproto.customname) = "Conditions", (gogoproto.nullable) = false]; } // RepositoryImportSpec describes a request to import images from a Docker image repository. message RepositoryImportSpec { // From is the source for the image repository to import; only kind DockerImage and a name of a Docker image repository is allowed - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 1 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // ImportPolicy is the policy controlling how the image is imported - optional TagImportPolicy importPolicy = 2; + optional TagImportPolicy importPolicy = 2 [(gogoproto.customname) = "ImportPolicy", (gogoproto.nullable) = false]; // ReferencePolicy defines how other components should consume the image - optional TagReferencePolicy referencePolicy = 4; + optional TagReferencePolicy referencePolicy = 4 [(gogoproto.customname) = "ReferencePolicy", (gogoproto.nullable) = false]; // IncludeManifest determines if the manifest for each image is returned in the response - optional bool includeManifest = 3; + optional bool includeManifest = 3 [(gogoproto.customname) = "IncludeManifest", (gogoproto.nullable) = false]; } // RepositoryImportStatus describes the result of an image repository import message RepositoryImportStatus { // Status reflects whether any failure occurred during import - optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 1 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; // Images is a list of images successfully retrieved by the import of the repository. - repeated ImageImportStatus images = 2; + repeated ImageImportStatus images = 2 [(gogoproto.customname) = "Images", (gogoproto.nullable) = false]; // AdditionalTags are tags that exist in the repository but were not imported because // a maximum limit of automatic imports was applied. - repeated string additionalTags = 3; + repeated string additionalTags = 3 [(gogoproto.customname) = "AdditionalTags"]; } // SignatureCondition describes an image signature condition of particular kind at particular probe time. message SignatureCondition { // Type of signature condition, Complete or Failed. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "SignatureConditionType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Status of the condition, one of True, False, Unknown. - optional string status = 2; + optional string status = 2 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.ConditionStatus", (gogoproto.customname) = "Status", (gogoproto.nullable) = false]; // Last time the condition was checked. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3 [(gogoproto.customname) = "LastProbeTime", (gogoproto.nullable) = false]; // Last time the condition transit from one status to another. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4 [(gogoproto.customname) = "LastTransitionTime", (gogoproto.nullable) = false]; // (brief) reason for the condition's last transition. - optional string reason = 5; + optional string reason = 5 [(gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // Human readable message indicating details about last transition. - optional string message = 6; + optional string message = 6 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; } // SignatureGenericEntity holds a generic information about a person or entity who is an issuer or a subject // of signing certificate or key. message SignatureGenericEntity { // Organization name. - optional string organization = 1; + optional string organization = 1 [(gogoproto.customname) = "Organization", (gogoproto.nullable) = false]; // Common name (e.g. openshift-signing-service). - optional string commonName = 2; + optional string commonName = 2 [(gogoproto.customname) = "CommonName", (gogoproto.nullable) = false]; } // SignatureIssuer holds information about an issuer of signing certificate or key. message SignatureIssuer { - optional SignatureGenericEntity signatureGenericEntity = 1; + optional SignatureGenericEntity signatureGenericEntity = 1 [(gogoproto.customname) = "SignatureGenericEntity", (gogoproto.nullable) = false]; } // SignatureSubject holds information about a person or entity who created the signature. message SignatureSubject { - optional SignatureGenericEntity signatureGenericEntity = 1; + optional SignatureGenericEntity signatureGenericEntity = 1 [(gogoproto.customname) = "SignatureGenericEntity", (gogoproto.nullable) = false]; // If present, it is a human readable key id of public key belonging to the subject used to verify image // signature. It should contain at least 64 lowest bits of public key's fingerprint (e.g. // 0x685ebe62bf278440). - optional string publicKeyID = 2; + optional string publicKeyID = 2 [(gogoproto.customname) = "PublicKeyID", (gogoproto.nullable) = false]; } // TagEvent is used by ImageStreamStatus to keep a historical record of images associated with a tag. message TagEvent { // Created holds the time the TagEvent was created - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time created = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time created = 1 [(gogoproto.customname) = "Created", (gogoproto.nullable) = false]; // DockerImageReference is the string that can be used to pull this image - optional string dockerImageReference = 2; + optional string dockerImageReference = 2 [(gogoproto.customname) = "DockerImageReference", (gogoproto.nullable) = false]; // Image is the image - optional string image = 3; + optional string image = 3 [(gogoproto.customname) = "Image", (gogoproto.nullable) = false]; // Generation is the spec tag generation that resulted in this tag being updated - optional int64 generation = 4; + optional int64 generation = 4 [(gogoproto.customname) = "Generation", (gogoproto.nullable) = false]; } // TagEventCondition contains condition information for a tag event. message TagEventCondition { // Type of tag event condition, currently only ImportSuccess - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "TagEventConditionType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Status of the condition, one of True, False, Unknown. - optional string status = 2; + optional string status = 2 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.ConditionStatus", (gogoproto.customname) = "Status", (gogoproto.nullable) = false]; // LastTransitionTIme is the time the condition transitioned from one status to another. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3 [(gogoproto.customname) = "LastTransitionTime", (gogoproto.nullable) = false]; // Reason is a brief machine readable explanation for the condition's last transition. - optional string reason = 4; + optional string reason = 4 [(gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // Message is a human readable description of the details about last transition, complementing reason. - optional string message = 5; + optional string message = 5 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; // Generation is the spec tag generation that this status corresponds to - optional int64 generation = 6; + optional int64 generation = 6 [(gogoproto.customname) = "Generation", (gogoproto.nullable) = false]; } // TagImportPolicy controls how images related to this tag will be imported. message TagImportPolicy { // Insecure is true if the server may bypass certificate verification or connect directly over HTTP during image import. - optional bool insecure = 1; + optional bool insecure = 1 [(gogoproto.customname) = "Insecure", (gogoproto.nullable) = false]; // Scheduled indicates to the server that this tag should be periodically checked to ensure it is up to date, and imported - optional bool scheduled = 2; + optional bool scheduled = 2 [(gogoproto.customname) = "Scheduled", (gogoproto.nullable) = false]; } // TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track. message TagReference { // Name of the tag - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; - // Annotations associated with images using this tag - map annotations = 2; + // Optional; if specified, annotations that are applied to images retrieved via ImageStreamTags. + map annotations = 2 [(gogoproto.customname) = "Annotations", (gogoproto.nullable) = false]; - // From is a reference to an image stream tag or image stream this tag should track - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 3; + // Optional; if specified, a reference to another image that this tag should point to. Valid values + // are ImageStreamTag, ImageStreamImage, and DockerImage. + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference from = 3 [(gogoproto.customname) = "From"]; - // Reference states if the tag will be imported. Default value is false, which means the tag will be imported. - optional bool reference = 4; + // Reference states if the tag will be imported. Default value is false, which means the tag will + // be imported. + optional bool reference = 4 [(gogoproto.customname) = "Reference", (gogoproto.nullable) = false]; - // Generation is the image stream generation that updated this tag - setting it to 0 is an indication that the generation must be updated. - // Legacy clients will send this as nil, which means the client doesn't know or care. - optional int64 generation = 5; + // Generation is a counter that tracks mutations to the spec tag (user intent). When a tag reference + // is changed the generation is set to match the current stream generation (which is incremented every + // time spec is changed). Other processes in the system like the image importer observe that the + // generation of spec tag is newer than the generation recorded in the status and use that as a trigger + // to import the newest remote tag. To trigger a new import, clients may set this value to zero which + // will reset the generation to the latest stream generation. Legacy clients will send this value as + // nil which will be merged with the current tag generation. + optional int64 generation = 5 [(gogoproto.customname) = "Generation"]; - // Import is information that controls how images may be imported by the server. - optional TagImportPolicy importPolicy = 6; + // ImportPolicy is information that controls how images may be imported by the server. + optional TagImportPolicy importPolicy = 6 [(gogoproto.customname) = "ImportPolicy", (gogoproto.nullable) = false]; - // ReferencePolicy defines how other components should consume the image - optional TagReferencePolicy referencePolicy = 7; + // ReferencePolicy defines how other components should consume the image. + optional TagReferencePolicy referencePolicy = 7 [(gogoproto.customname) = "ReferencePolicy", (gogoproto.nullable) = false]; } // TagReferencePolicy describes how pull-specs for images in this image stream tag are generated when @@ -490,6 +509,6 @@ message TagReferencePolicy { // image to be managed from the image stream's namespace, so others on the platform can access a remote // image but have no access to the remote secret. It also allows the image layers to be mirrored into // the local registry which the images can still be pulled even if the upstream registry is unavailable. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "TagReferencePolicyType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; } diff --git a/pkg/image/apis/image/v1/swagger_doc.go b/pkg/image/apis/image/v1/swagger_doc.go index 241909a8202b..37600ffc68bd 100644 --- a/pkg/image/apis/image/v1/swagger_doc.go +++ b/pkg/image/apis/image/v1/swagger_doc.go @@ -185,7 +185,7 @@ func (ImageStreamMapping) SwaggerDoc() map[string]string { var map_ImageStreamSpec = map[string]string{ "": "ImageStreamSpec represents options for ImageStreams.", "lookupPolicy": "lookupPolicy controls how other resources reference images within this namespace.", - "dockerImageRepository": "dockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server", + "dockerImageRepository": "dockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server Deprecated: This field is deprecated as of v3.7 and will be removed in a future release Specify the source for the tags to be imported in each tag via the spec.tags.from reference instead.", "tags": "tags map arbitrary string values to specific image locators", } @@ -342,12 +342,12 @@ func (TagImportPolicy) SwaggerDoc() map[string]string { var map_TagReference = map[string]string{ "": "TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.", "name": "Name of the tag", - "annotations": "Annotations associated with images using this tag", - "from": "From is a reference to an image stream tag or image stream this tag should track", + "annotations": "Optional; if specified, annotations that are applied to images retrieved via ImageStreamTags.", + "from": "Optional; if specified, a reference to another image that this tag should point to. Valid values are ImageStreamTag, ImageStreamImage, and DockerImage.", "reference": "Reference states if the tag will be imported. Default value is false, which means the tag will be imported.", - "generation": "Generation is the image stream generation that updated this tag - setting it to 0 is an indication that the generation must be updated. Legacy clients will send this as nil, which means the client doesn't know or care.", - "importPolicy": "Import is information that controls how images may be imported by the server.", - "referencePolicy": "ReferencePolicy defines how other components should consume the image", + "generation": "Generation is a counter that tracks mutations to the spec tag (user intent). When a tag reference is changed the generation is set to match the current stream generation (which is incremented every time spec is changed). Other processes in the system like the image importer observe that the generation of spec tag is newer than the generation recorded in the status and use that as a trigger to import the newest remote tag. To trigger a new import, clients may set this value to zero which will reset the generation to the latest stream generation. Legacy clients will send this value as nil which will be merged with the current tag generation.", + "importPolicy": "ImportPolicy is information that controls how images may be imported by the server.", + "referencePolicy": "ReferencePolicy defines how other components should consume the image.", } func (TagReference) SwaggerDoc() map[string]string { diff --git a/pkg/image/apis/image/v1/types.go b/pkg/image/apis/image/v1/types.go index 52c337649f37..3c73be357e7d 100644 --- a/pkg/image/apis/image/v1/types.go +++ b/pkg/image/apis/image/v1/types.go @@ -173,6 +173,8 @@ type ImageStreamSpec struct { // lookupPolicy controls how other resources reference images within this namespace. LookupPolicy ImageLookupPolicy `json:"lookupPolicy,omitempty" protobuf:"bytes,3,opt,name=lookupPolicy"` // dockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server + // Deprecated: This field is deprecated as of v3.7 and will be removed in a future release + // Specify the source for the tags to be imported in each tag via the spec.tags.from reference instead. DockerImageRepository string `json:"dockerImageRepository,omitempty" protobuf:"bytes,1,opt,name=dockerImageRepository"` // tags map arbitrary string values to specific image locators Tags []TagReference `json:"tags,omitempty" protobuf:"bytes,2,rep,name=tags"` @@ -193,18 +195,25 @@ type ImageLookupPolicy struct { type TagReference struct { // Name of the tag Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - // Annotations associated with images using this tag + // Optional; if specified, annotations that are applied to images retrieved via ImageStreamTags. Annotations map[string]string `json:"annotations" protobuf:"bytes,2,rep,name=annotations"` - // From is a reference to an image stream tag or image stream this tag should track + // Optional; if specified, a reference to another image that this tag should point to. Valid values + // are ImageStreamTag, ImageStreamImage, and DockerImage. From *kapi.ObjectReference `json:"from,omitempty" protobuf:"bytes,3,opt,name=from"` - // Reference states if the tag will be imported. Default value is false, which means the tag will be imported. + // Reference states if the tag will be imported. Default value is false, which means the tag will + // be imported. Reference bool `json:"reference,omitempty" protobuf:"varint,4,opt,name=reference"` - // Generation is the image stream generation that updated this tag - setting it to 0 is an indication that the generation must be updated. - // Legacy clients will send this as nil, which means the client doesn't know or care. + // Generation is a counter that tracks mutations to the spec tag (user intent). When a tag reference + // is changed the generation is set to match the current stream generation (which is incremented every + // time spec is changed). Other processes in the system like the image importer observe that the + // generation of spec tag is newer than the generation recorded in the status and use that as a trigger + // to import the newest remote tag. To trigger a new import, clients may set this value to zero which + // will reset the generation to the latest stream generation. Legacy clients will send this value as + // nil which will be merged with the current tag generation. Generation *int64 `json:"generation" protobuf:"varint,5,opt,name=generation"` - // Import is information that controls how images may be imported by the server. + // ImportPolicy is information that controls how images may be imported by the server. ImportPolicy TagImportPolicy `json:"importPolicy,omitempty" protobuf:"bytes,6,opt,name=importPolicy"` - // ReferencePolicy defines how other components should consume the image + // ReferencePolicy defines how other components should consume the image. ReferencePolicy TagReferencePolicy `json:"referencePolicy,omitempty" protobuf:"bytes,7,opt,name=referencePolicy"` } diff --git a/pkg/network/apis/network/v1/generated.pb.go b/pkg/network/apis/network/v1/generated.pb.go deleted file mode 100644 index b5cacf7954fe..000000000000 --- a/pkg/network/apis/network/v1/generated.pb.go +++ /dev/null @@ -1,2296 +0,0 @@ -// Code generated by protoc-gen-gogo. -// source: github.com/openshift/origin/pkg/network/apis/network/v1/generated.proto -// DO NOT EDIT! - -/* - Package v1 is a generated protocol buffer package. - - It is generated from these files: - github.com/openshift/origin/pkg/network/apis/network/v1/generated.proto - - It has these top-level messages: - ClusterNetwork - ClusterNetworkList - EgressNetworkPolicy - EgressNetworkPolicyList - EgressNetworkPolicyPeer - EgressNetworkPolicyRule - EgressNetworkPolicySpec - HostSubnet - HostSubnetList - NetNamespace - NetNamespaceList -*/ -package v1 - -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import strings "strings" -import reflect "reflect" - -import io "io" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *ClusterNetwork) Reset() { *m = ClusterNetwork{} } -func (*ClusterNetwork) ProtoMessage() {} -func (*ClusterNetwork) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } - -func (m *ClusterNetworkList) Reset() { *m = ClusterNetworkList{} } -func (*ClusterNetworkList) ProtoMessage() {} -func (*ClusterNetworkList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } - -func (m *EgressNetworkPolicy) Reset() { *m = EgressNetworkPolicy{} } -func (*EgressNetworkPolicy) ProtoMessage() {} -func (*EgressNetworkPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } - -func (m *EgressNetworkPolicyList) Reset() { *m = EgressNetworkPolicyList{} } -func (*EgressNetworkPolicyList) ProtoMessage() {} -func (*EgressNetworkPolicyList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } - -func (m *EgressNetworkPolicyPeer) Reset() { *m = EgressNetworkPolicyPeer{} } -func (*EgressNetworkPolicyPeer) ProtoMessage() {} -func (*EgressNetworkPolicyPeer) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } - -func (m *EgressNetworkPolicyRule) Reset() { *m = EgressNetworkPolicyRule{} } -func (*EgressNetworkPolicyRule) ProtoMessage() {} -func (*EgressNetworkPolicyRule) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } - -func (m *EgressNetworkPolicySpec) Reset() { *m = EgressNetworkPolicySpec{} } -func (*EgressNetworkPolicySpec) ProtoMessage() {} -func (*EgressNetworkPolicySpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } - -func (m *HostSubnet) Reset() { *m = HostSubnet{} } -func (*HostSubnet) ProtoMessage() {} -func (*HostSubnet) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } - -func (m *HostSubnetList) Reset() { *m = HostSubnetList{} } -func (*HostSubnetList) ProtoMessage() {} -func (*HostSubnetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } - -func (m *NetNamespace) Reset() { *m = NetNamespace{} } -func (*NetNamespace) ProtoMessage() {} -func (*NetNamespace) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } - -func (m *NetNamespaceList) Reset() { *m = NetNamespaceList{} } -func (*NetNamespaceList) ProtoMessage() {} -func (*NetNamespaceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } - -func init() { - proto.RegisterType((*ClusterNetwork)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.network.apis.network.v1.ClusterNetwork") - proto.RegisterType((*ClusterNetworkList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.network.apis.network.v1.ClusterNetworkList") - proto.RegisterType((*EgressNetworkPolicy)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.network.apis.network.v1.EgressNetworkPolicy") - proto.RegisterType((*EgressNetworkPolicyList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.network.apis.network.v1.EgressNetworkPolicyList") - proto.RegisterType((*EgressNetworkPolicyPeer)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.network.apis.network.v1.EgressNetworkPolicyPeer") - proto.RegisterType((*EgressNetworkPolicyRule)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.network.apis.network.v1.EgressNetworkPolicyRule") - proto.RegisterType((*EgressNetworkPolicySpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.network.apis.network.v1.EgressNetworkPolicySpec") - proto.RegisterType((*HostSubnet)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.network.apis.network.v1.HostSubnet") - proto.RegisterType((*HostSubnetList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.network.apis.network.v1.HostSubnetList") - proto.RegisterType((*NetNamespace)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.network.apis.network.v1.NetNamespace") - proto.RegisterType((*NetNamespaceList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.network.apis.network.v1.NetNamespaceList") -} -func (m *ClusterNetwork) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterNetwork) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Network))) - i += copy(dAtA[i:], m.Network) - dAtA[i] = 0x18 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.HostSubnetLength)) - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceNetwork))) - i += copy(dAtA[i:], m.ServiceNetwork) - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PluginName))) - i += copy(dAtA[i:], m.PluginName) - return i, nil -} - -func (m *ClusterNetworkList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterNetworkList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n2, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *EgressNetworkPolicy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EgressNetworkPolicy) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n3, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n4, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - return i, nil -} - -func (m *EgressNetworkPolicyList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EgressNetworkPolicyList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n5, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *EgressNetworkPolicyPeer) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EgressNetworkPolicyPeer) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CIDRSelector))) - i += copy(dAtA[i:], m.CIDRSelector) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DNSName))) - i += copy(dAtA[i:], m.DNSName) - return i, nil -} - -func (m *EgressNetworkPolicyRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EgressNetworkPolicyRule) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.To.Size())) - n6, err := m.To.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - return i, nil -} - -func (m *EgressNetworkPolicySpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EgressNetworkPolicySpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Egress) > 0 { - for _, msg := range m.Egress { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *HostSubnet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HostSubnet) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n7, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Host))) - i += copy(dAtA[i:], m.Host) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.HostIP))) - i += copy(dAtA[i:], m.HostIP) - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Subnet))) - i += copy(dAtA[i:], m.Subnet) - return i, nil -} - -func (m *HostSubnetList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HostSubnetList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n8, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *NetNamespace) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetNamespace) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n9, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.NetName))) - i += copy(dAtA[i:], m.NetName) - dAtA[i] = 0x18 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.NetID)) - return i, nil -} - -func (m *NetNamespaceList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetNamespaceList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n10, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - dAtA[offset+4] = uint8(v >> 32) - dAtA[offset+5] = uint8(v >> 40) - dAtA[offset+6] = uint8(v >> 48) - dAtA[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *ClusterNetwork) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Network) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.HostSubnetLength)) - l = len(m.ServiceNetwork) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.PluginName) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ClusterNetworkList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *EgressNetworkPolicy) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *EgressNetworkPolicyList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *EgressNetworkPolicyPeer) Size() (n int) { - var l int - _ = l - l = len(m.CIDRSelector) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DNSName) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *EgressNetworkPolicyRule) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = m.To.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *EgressNetworkPolicySpec) Size() (n int) { - var l int - _ = l - if len(m.Egress) > 0 { - for _, e := range m.Egress { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *HostSubnet) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Host) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.HostIP) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Subnet) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *HostSubnetList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NetNamespace) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.NetName) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.NetID)) - return n -} - -func (m *NetNamespaceList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *ClusterNetwork) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterNetwork{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Network:` + fmt.Sprintf("%v", this.Network) + `,`, - `HostSubnetLength:` + fmt.Sprintf("%v", this.HostSubnetLength) + `,`, - `ServiceNetwork:` + fmt.Sprintf("%v", this.ServiceNetwork) + `,`, - `PluginName:` + fmt.Sprintf("%v", this.PluginName) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterNetworkList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterNetworkList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ClusterNetwork", "ClusterNetwork", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *EgressNetworkPolicy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EgressNetworkPolicy{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "EgressNetworkPolicySpec", "EgressNetworkPolicySpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *EgressNetworkPolicyList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EgressNetworkPolicyList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "EgressNetworkPolicy", "EgressNetworkPolicy", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *EgressNetworkPolicyPeer) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EgressNetworkPolicyPeer{`, - `CIDRSelector:` + fmt.Sprintf("%v", this.CIDRSelector) + `,`, - `DNSName:` + fmt.Sprintf("%v", this.DNSName) + `,`, - `}`, - }, "") - return s -} -func (this *EgressNetworkPolicyRule) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EgressNetworkPolicyRule{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `To:` + strings.Replace(strings.Replace(this.To.String(), "EgressNetworkPolicyPeer", "EgressNetworkPolicyPeer", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *EgressNetworkPolicySpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EgressNetworkPolicySpec{`, - `Egress:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Egress), "EgressNetworkPolicyRule", "EgressNetworkPolicyRule", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *HostSubnet) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HostSubnet{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Host:` + fmt.Sprintf("%v", this.Host) + `,`, - `HostIP:` + fmt.Sprintf("%v", this.HostIP) + `,`, - `Subnet:` + fmt.Sprintf("%v", this.Subnet) + `,`, - `}`, - }, "") - return s -} -func (this *HostSubnetList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HostSubnetList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "HostSubnet", "HostSubnet", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *NetNamespace) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NetNamespace{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `NetName:` + fmt.Sprintf("%v", this.NetName) + `,`, - `NetID:` + fmt.Sprintf("%v", this.NetID) + `,`, - `}`, - }, "") - return s -} -func (this *NetNamespaceList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NetNamespaceList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "NetNamespace", "NetNamespace", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *ClusterNetwork) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterNetwork: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterNetwork: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Network = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostSubnetLength", wireType) - } - m.HostSubnetLength = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HostSubnetLength |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceNetwork", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceNetwork = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PluginName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PluginName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterNetworkList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterNetworkList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterNetworkList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ClusterNetwork{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EgressNetworkPolicy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EgressNetworkPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EgressNetworkPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EgressNetworkPolicyList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EgressNetworkPolicyList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EgressNetworkPolicyList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, EgressNetworkPolicy{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EgressNetworkPolicyPeer) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EgressNetworkPolicyPeer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EgressNetworkPolicyPeer: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CIDRSelector", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CIDRSelector = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DNSName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DNSName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EgressNetworkPolicyRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EgressNetworkPolicyRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EgressNetworkPolicyRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = EgressNetworkPolicyRuleType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.To.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EgressNetworkPolicySpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EgressNetworkPolicySpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EgressNetworkPolicySpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Egress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Egress = append(m.Egress, EgressNetworkPolicyRule{}) - if err := m.Egress[len(m.Egress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HostSubnet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HostSubnet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HostSubnet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Host = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostIP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostIP = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subnet", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subnet = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HostSubnetList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HostSubnetList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HostSubnetList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, HostSubnet{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetNamespace) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetNamespace: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetNamespace: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NetName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NetName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NetID", wireType) - } - m.NetID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NetID |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetNamespaceList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetNamespaceList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetNamespaceList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, NetNamespace{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/openshift/origin/pkg/network/apis/network/v1/generated.proto", fileDescriptorGenerated) -} - -var fileDescriptorGenerated = []byte{ - // 835 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x41, 0x6f, 0xe3, 0x44, - 0x14, 0xce, 0x64, 0xd3, 0xee, 0x76, 0xda, 0x0d, 0x95, 0x41, 0x60, 0x15, 0xc9, 0x8d, 0x8c, 0x84, - 0x82, 0x10, 0x36, 0x2d, 0x08, 0xf6, 0x04, 0x92, 0xdb, 0xd5, 0x6e, 0xa5, 0x12, 0xa2, 0xc9, 0x9e, - 0x10, 0x07, 0x1c, 0xe7, 0xad, 0x33, 0x1b, 0xc7, 0x63, 0x3c, 0xe3, 0x40, 0x2e, 0x88, 0x9f, 0x80, - 0xc4, 0x1f, 0xe2, 0x98, 0xe3, 0xde, 0xe8, 0x01, 0x55, 0xdb, 0x70, 0x83, 0x7f, 0xc0, 0x09, 0xcd, - 0x78, 0xe2, 0x24, 0x8d, 0x23, 0x50, 0xb4, 0xcd, 0x29, 0x19, 0x7f, 0xef, 0x7b, 0xef, 0x7b, 0xef, - 0xcd, 0x7b, 0x83, 0x9f, 0x84, 0x54, 0xf4, 0xb3, 0xae, 0x13, 0xb0, 0xa1, 0xcb, 0x12, 0x88, 0x79, - 0x9f, 0x3e, 0x17, 0x2e, 0x4b, 0x69, 0x48, 0x63, 0x37, 0x19, 0x84, 0x6e, 0x0c, 0xe2, 0x07, 0x96, - 0x0e, 0x5c, 0x3f, 0xa1, 0xbc, 0x38, 0x8c, 0x4e, 0xdc, 0x10, 0x62, 0x48, 0x7d, 0x01, 0x3d, 0x27, - 0x49, 0x99, 0x60, 0xc6, 0xe7, 0x73, 0x47, 0x4e, 0xe1, 0xc8, 0xc9, 0x1d, 0x39, 0xc9, 0x20, 0x74, - 0x34, 0xd7, 0x91, 0x8e, 0x8a, 0xc3, 0xe8, 0xe4, 0xe8, 0xa3, 0x05, 0x05, 0x21, 0x0b, 0x99, 0xab, - 0xfc, 0x75, 0xb3, 0xe7, 0xea, 0xa4, 0x0e, 0xea, 0x5f, 0x1e, 0xe7, 0xe8, 0xd3, 0xc1, 0x23, 0xee, - 0x50, 0x26, 0xf5, 0x0c, 0xfd, 0xa0, 0x4f, 0x63, 0x48, 0xc7, 0x4a, 0xa8, 0x12, 0x38, 0x04, 0xe1, - 0x97, 0xa8, 0x3b, 0x72, 0xd7, 0xb1, 0xd2, 0x2c, 0x16, 0x74, 0x08, 0x2b, 0x84, 0xcf, 0xfe, 0x8b, - 0xc0, 0x83, 0x3e, 0x0c, 0xfd, 0x15, 0xde, 0x27, 0xeb, 0x78, 0x99, 0xa0, 0x91, 0x4b, 0x63, 0xc1, - 0x45, 0x7a, 0x9b, 0x64, 0xff, 0x5e, 0xc5, 0xf5, 0xb3, 0x28, 0xe3, 0x02, 0xd2, 0x56, 0x5e, 0x18, - 0xe3, 0x3b, 0xfc, 0x40, 0xe6, 0xd2, 0xf3, 0x85, 0x6f, 0xa2, 0x06, 0x6a, 0xee, 0x9f, 0x7e, 0xec, - 0xe4, 0xae, 0x9d, 0x45, 0xd7, 0xaa, 0xb2, 0xaa, 0xa2, 0xd2, 0xda, 0x19, 0x9d, 0x38, 0x5f, 0x77, - 0x5f, 0x40, 0x20, 0xbe, 0x02, 0xe1, 0x7b, 0xc6, 0xe4, 0xfa, 0xb8, 0x32, 0xbd, 0x3e, 0xc6, 0xf3, - 0x6f, 0xa4, 0xf0, 0x6a, 0x7c, 0x80, 0xef, 0xeb, 0x2e, 0x98, 0xd5, 0x06, 0x6a, 0xee, 0x79, 0x6f, - 0x68, 0xf3, 0xfb, 0x5a, 0x03, 0x99, 0xe1, 0xc6, 0x39, 0x3e, 0xec, 0x33, 0x2e, 0x78, 0xd6, 0x8d, - 0x41, 0x44, 0x10, 0x87, 0xa2, 0x6f, 0xde, 0x6b, 0xa0, 0xe6, 0x43, 0xcf, 0xd4, 0x9c, 0xc3, 0xa7, - 0x8c, 0x8b, 0x8e, 0xc2, 0x2f, 0x15, 0x4e, 0x56, 0x18, 0xc6, 0x17, 0xb8, 0xce, 0x21, 0x1d, 0xd1, - 0x00, 0x74, 0x00, 0xb3, 0xa6, 0xe2, 0xbe, 0xad, 0x7d, 0xd4, 0x3b, 0x4b, 0x28, 0xb9, 0x65, 0x6d, - 0x9c, 0x62, 0x9c, 0x44, 0x59, 0x48, 0xe3, 0x96, 0x3f, 0x04, 0x73, 0x47, 0x71, 0x8b, 0x14, 0xdb, - 0x05, 0x42, 0x16, 0xac, 0xec, 0x57, 0x08, 0x1b, 0xcb, 0x95, 0xbd, 0xa4, 0x5c, 0x18, 0xdf, 0xae, - 0x54, 0xd7, 0xf9, 0x7f, 0xd5, 0x95, 0x6c, 0x55, 0xdb, 0x43, 0x1d, 0xf8, 0xc1, 0xec, 0xcb, 0x42, - 0x65, 0x23, 0xbc, 0x43, 0x05, 0x0c, 0xb9, 0x59, 0x6d, 0xdc, 0x6b, 0xee, 0x9f, 0x3e, 0x71, 0x36, - 0x1c, 0x0d, 0x67, 0x59, 0xb9, 0xf7, 0x50, 0xc7, 0xdc, 0xb9, 0x90, 0xde, 0x49, 0x1e, 0xc4, 0xfe, - 0x1b, 0xe1, 0x37, 0x1f, 0x87, 0x29, 0x70, 0xae, 0xed, 0xda, 0x2c, 0xa2, 0xc1, 0x78, 0x0b, 0x37, - 0x28, 0xc5, 0x35, 0x9e, 0x40, 0xa0, 0xae, 0xcf, 0xfe, 0x69, 0x7b, 0xe3, 0x34, 0x4b, 0xd4, 0x77, - 0x12, 0x08, 0xbc, 0x03, 0x1d, 0xbd, 0x26, 0x4f, 0x44, 0xc5, 0xb2, 0xff, 0x42, 0xf8, 0x9d, 0x12, - 0xfb, 0x2d, 0x74, 0xf5, 0xfb, 0xe5, 0xae, 0x5e, 0xbe, 0xce, 0x74, 0xd7, 0xb4, 0xf6, 0xa7, 0xd2, - 0x5c, 0xdb, 0x00, 0xa9, 0xf1, 0x08, 0x1f, 0x04, 0xb4, 0x97, 0x76, 0x20, 0x82, 0x40, 0xb0, 0x54, - 0xe5, 0xbb, 0xe7, 0xbd, 0xa5, 0xdd, 0x1c, 0x9c, 0x5d, 0x9c, 0x93, 0x19, 0x46, 0x96, 0x2c, 0xe5, - 0xdc, 0xf7, 0x62, 0xae, 0x66, 0xe8, 0xd6, 0xdc, 0x9f, 0xb7, 0x3a, 0x6a, 0x80, 0x66, 0xb8, 0x3d, - 0x29, 0x2f, 0x36, 0xc9, 0x22, 0x30, 0xbe, 0xc4, 0x35, 0x31, 0x4e, 0x40, 0x07, 0xfe, 0x70, 0xd6, - 0xaa, 0x67, 0xe3, 0x04, 0xfe, 0xb9, 0x3e, 0x7e, 0x77, 0x0d, 0x4d, 0xc2, 0x44, 0x11, 0x8d, 0x08, - 0x57, 0x05, 0xbb, 0x8b, 0xbb, 0x23, 0xeb, 0xe3, 0x61, 0x2d, 0xa8, 0xfa, 0x8c, 0x91, 0xaa, 0x60, - 0xf6, 0xaf, 0xe5, 0xa9, 0xc8, 0x9b, 0x65, 0xfc, 0x88, 0x77, 0x41, 0x41, 0x26, 0x52, 0xad, 0x7d, - 0xad, 0x6a, 0x64, 0xd6, 0x5e, 0x5d, 0xab, 0xd9, 0xcd, 0x0d, 0x88, 0x8e, 0x27, 0xd7, 0x13, 0x9e, - 0x6f, 0xce, 0x2d, 0x8c, 0x6c, 0x03, 0xd7, 0xe4, 0x5e, 0xd6, 0x9d, 0x2f, 0x06, 0x4c, 0x6a, 0x20, - 0x0a, 0x31, 0xde, 0xc7, 0xbb, 0xf2, 0xf7, 0xa2, 0xad, 0x36, 0xfc, 0xde, 0x5c, 0xfa, 0x53, 0xf5, - 0x95, 0x68, 0x54, 0xda, 0xe5, 0xdb, 0x5d, 0x6f, 0xf1, 0xc2, 0x2e, 0xcf, 0x85, 0x68, 0xd4, 0xbe, - 0x42, 0xb8, 0xbe, 0xf0, 0x38, 0xdc, 0xfd, 0x9c, 0xf6, 0x97, 0xe7, 0xf4, 0x6c, 0xe3, 0x66, 0xce, - 0x55, 0xaf, 0x19, 0xcf, 0xdf, 0x10, 0x3e, 0x68, 0x81, 0x90, 0xa3, 0xc2, 0x13, 0x3f, 0x80, 0xad, - 0x3d, 0xda, 0x71, 0xc9, 0xf0, 0x6a, 0x21, 0x64, 0x86, 0x1b, 0xef, 0xe1, 0x9d, 0x18, 0x04, 0xed, - 0xe9, 0x97, 0xba, 0x48, 0xa1, 0x05, 0xe2, 0xe2, 0x9c, 0xe4, 0x98, 0xfd, 0x07, 0xc2, 0x87, 0x8b, - 0x29, 0x6c, 0xa1, 0x3f, 0x2f, 0x96, 0xfb, 0xf3, 0x78, 0xe3, 0xfe, 0x2c, 0xea, 0x2e, 0xef, 0x90, - 0xd7, 0x9c, 0xdc, 0x58, 0x95, 0x97, 0x37, 0x56, 0xe5, 0xea, 0xc6, 0xaa, 0xfc, 0x3c, 0xb5, 0xd0, - 0x64, 0x6a, 0xa1, 0x97, 0x53, 0x0b, 0x5d, 0x4d, 0x2d, 0xf4, 0x6a, 0x6a, 0xa1, 0x5f, 0xfe, 0xb4, - 0x2a, 0xdf, 0x54, 0x47, 0x27, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x76, 0x7b, 0xeb, 0xac, 0x08, - 0x0b, 0x00, 0x00, -} diff --git a/pkg/network/apis/network/v1/generated.proto b/pkg/network/apis/network/v1/generated.proto index 6b08c1927c8b..0ee49008116f 100644 --- a/pkg/network/apis/network/v1/generated.proto +++ b/pkg/network/apis/network/v1/generated.proto @@ -5,12 +5,22 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.network.apis.network.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // ClusterNetwork describes the cluster network. There is normally only one object of this type, @@ -18,28 +28,28 @@ option go_package = "v1"; // when the cluster is brought up for the first time. message ClusterNetwork { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Network is a CIDR string specifying the global overlay network's L3 space - optional string network = 2; + optional string network = 2 [(gogoproto.customname) = "Network", (gogoproto.nullable) = false]; // HostSubnetLength is the number of bits of network to allocate to each node. eg, 8 would mean that each node would have a /24 slice of the overlay network for its pods - optional uint32 hostsubnetlength = 3; + optional uint32 hostsubnetlength = 3 [(gogoproto.customname) = "HostSubnetLength", (gogoproto.nullable) = false]; // ServiceNetwork is the CIDR range that Service IP addresses are allocated from - optional string serviceNetwork = 4; + optional string serviceNetwork = 4 [(gogoproto.customname) = "ServiceNetwork", (gogoproto.nullable) = false]; // PluginName is the name of the network plugin being used - optional string pluginName = 5; + optional string pluginName = 5 [(gogoproto.customname) = "PluginName", (gogoproto.nullable) = false]; } // ClusterNetworkList is a collection of ClusterNetworks message ClusterNetworkList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of cluster networks - repeated ClusterNetwork items = 2; + repeated ClusterNetwork items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // EgressNetworkPolicy describes the current egress network policy for a Namespace. When using @@ -49,68 +59,68 @@ message ClusterNetworkList { // is present) then the traffic will be allowed by default. message EgressNetworkPolicy { // metadata for EgressNetworkPolicy - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // spec is the specification of the current egress network policy - optional EgressNetworkPolicySpec spec = 2; + optional EgressNetworkPolicySpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; } // EgressNetworkPolicyList is a collection of EgressNetworkPolicy message EgressNetworkPolicyList { // metadata for EgressNetworkPolicyList - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // items is the list of policies - repeated EgressNetworkPolicy items = 2; + repeated EgressNetworkPolicy items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // EgressNetworkPolicyPeer specifies a target to apply egress network policy to message EgressNetworkPolicyPeer { // cidrSelector is the CIDR range to allow/deny traffic to. If this is set, dnsName must be unset - optional string cidrSelector = 1; + optional string cidrSelector = 1 [(gogoproto.customname) = "CIDRSelector", (gogoproto.nullable) = false]; // dnsName is the domain name to allow/deny traffic to. If this is set, cidrSelector must be unset - optional string dnsName = 2; + optional string dnsName = 2 [(gogoproto.customname) = "DNSName", (gogoproto.nullable) = false]; } // EgressNetworkPolicyRule contains a single egress network policy rule message EgressNetworkPolicyRule { // type marks this as an "Allow" or "Deny" rule - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "EgressNetworkPolicyRuleType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // to is the target that traffic is allowed/denied to - optional EgressNetworkPolicyPeer to = 2; + optional EgressNetworkPolicyPeer to = 2 [(gogoproto.customname) = "To", (gogoproto.nullable) = false]; } // EgressNetworkPolicySpec provides a list of policies on outgoing network traffic message EgressNetworkPolicySpec { // egress contains the list of egress policy rules - repeated EgressNetworkPolicyRule egress = 1; + repeated EgressNetworkPolicyRule egress = 1 [(gogoproto.customname) = "Egress", (gogoproto.nullable) = false]; } // HostSubnet describes the container subnet network on a node. The HostSubnet object must have the // same name as the Node object it corresponds to. message HostSubnet { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Host is the name of the node. (This is the same as the object's name, but both fields must be set.) - optional string host = 2; + optional string host = 2 [(gogoproto.customname) = "Host", (gogoproto.nullable) = false]; // HostIP is the IP address to be used as a VTEP by other nodes in the overlay network - optional string hostIP = 3; + optional string hostIP = 3 [(gogoproto.customname) = "HostIP", (gogoproto.nullable) = false]; // Subnet is the CIDR range of the overlay network assigned to the node for its pods - optional string subnet = 4; + optional string subnet = 4 [(gogoproto.customname) = "Subnet", (gogoproto.nullable) = false]; } // HostSubnetList is a collection of HostSubnets message HostSubnetList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of host subnets - repeated HostSubnet items = 2; + repeated HostSubnet items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // NetNamespace describes a single isolated network. When using the redhat/openshift-ovs-multitenant @@ -118,21 +128,21 @@ message HostSubnetList { // (When using redhat/openshift-ovs-subnet, NetNamespaces are not used.) message NetNamespace { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // NetName is the name of the network namespace. (This is the same as the object's name, but both fields must be set.) - optional string netname = 2; + optional string netname = 2 [(gogoproto.customname) = "NetName", (gogoproto.nullable) = false]; // NetID is the network identifier of the network namespace assigned to each overlay network packet. This can be manipulated with the "oc adm pod-network" commands. - optional uint32 netid = 3; + optional uint32 netid = 3 [(gogoproto.customname) = "NetID", (gogoproto.nullable) = false]; } // NetNamespaceList is a collection of NetNamespaces message NetNamespaceList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of net namespaces - repeated NetNamespace items = 2; + repeated NetNamespace items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } diff --git a/pkg/oauth/apis/oauth/v1/generated.pb.go b/pkg/oauth/apis/oauth/v1/generated.pb.go deleted file mode 100644 index 4599e7a1e9e0..000000000000 --- a/pkg/oauth/apis/oauth/v1/generated.pb.go +++ /dev/null @@ -1,3324 +0,0 @@ -// Code generated by protoc-gen-gogo. -// source: github.com/openshift/origin/pkg/oauth/apis/oauth/v1/generated.proto -// DO NOT EDIT! - -/* - Package v1 is a generated protocol buffer package. - - It is generated from these files: - github.com/openshift/origin/pkg/oauth/apis/oauth/v1/generated.proto - - It has these top-level messages: - ClusterRoleScopeRestriction - OAuthAccessToken - OAuthAccessTokenList - OAuthAuthorizeToken - OAuthAuthorizeTokenList - OAuthClient - OAuthClientAuthorization - OAuthClientAuthorizationList - OAuthClientList - OAuthRedirectReference - RedirectReference - ScopeRestriction -*/ -package v1 - -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import strings "strings" -import reflect "reflect" - -import io "io" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *ClusterRoleScopeRestriction) Reset() { *m = ClusterRoleScopeRestriction{} } -func (*ClusterRoleScopeRestriction) ProtoMessage() {} -func (*ClusterRoleScopeRestriction) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{0} -} - -func (m *OAuthAccessToken) Reset() { *m = OAuthAccessToken{} } -func (*OAuthAccessToken) ProtoMessage() {} -func (*OAuthAccessToken) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } - -func (m *OAuthAccessTokenList) Reset() { *m = OAuthAccessTokenList{} } -func (*OAuthAccessTokenList) ProtoMessage() {} -func (*OAuthAccessTokenList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } - -func (m *OAuthAuthorizeToken) Reset() { *m = OAuthAuthorizeToken{} } -func (*OAuthAuthorizeToken) ProtoMessage() {} -func (*OAuthAuthorizeToken) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } - -func (m *OAuthAuthorizeTokenList) Reset() { *m = OAuthAuthorizeTokenList{} } -func (*OAuthAuthorizeTokenList) ProtoMessage() {} -func (*OAuthAuthorizeTokenList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } - -func (m *OAuthClient) Reset() { *m = OAuthClient{} } -func (*OAuthClient) ProtoMessage() {} -func (*OAuthClient) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } - -func (m *OAuthClientAuthorization) Reset() { *m = OAuthClientAuthorization{} } -func (*OAuthClientAuthorization) ProtoMessage() {} -func (*OAuthClientAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{6} -} - -func (m *OAuthClientAuthorizationList) Reset() { *m = OAuthClientAuthorizationList{} } -func (*OAuthClientAuthorizationList) ProtoMessage() {} -func (*OAuthClientAuthorizationList) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{7} -} - -func (m *OAuthClientList) Reset() { *m = OAuthClientList{} } -func (*OAuthClientList) ProtoMessage() {} -func (*OAuthClientList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } - -func (m *OAuthRedirectReference) Reset() { *m = OAuthRedirectReference{} } -func (*OAuthRedirectReference) ProtoMessage() {} -func (*OAuthRedirectReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } - -func (m *RedirectReference) Reset() { *m = RedirectReference{} } -func (*RedirectReference) ProtoMessage() {} -func (*RedirectReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } - -func (m *ScopeRestriction) Reset() { *m = ScopeRestriction{} } -func (*ScopeRestriction) ProtoMessage() {} -func (*ScopeRestriction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } - -func init() { - proto.RegisterType((*ClusterRoleScopeRestriction)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.oauth.apis.oauth.v1.ClusterRoleScopeRestriction") - proto.RegisterType((*OAuthAccessToken)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.oauth.apis.oauth.v1.OAuthAccessToken") - proto.RegisterType((*OAuthAccessTokenList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.oauth.apis.oauth.v1.OAuthAccessTokenList") - proto.RegisterType((*OAuthAuthorizeToken)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.oauth.apis.oauth.v1.OAuthAuthorizeToken") - proto.RegisterType((*OAuthAuthorizeTokenList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.oauth.apis.oauth.v1.OAuthAuthorizeTokenList") - proto.RegisterType((*OAuthClient)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.oauth.apis.oauth.v1.OAuthClient") - proto.RegisterType((*OAuthClientAuthorization)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.oauth.apis.oauth.v1.OAuthClientAuthorization") - proto.RegisterType((*OAuthClientAuthorizationList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.oauth.apis.oauth.v1.OAuthClientAuthorizationList") - proto.RegisterType((*OAuthClientList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.oauth.apis.oauth.v1.OAuthClientList") - proto.RegisterType((*OAuthRedirectReference)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.oauth.apis.oauth.v1.OAuthRedirectReference") - proto.RegisterType((*RedirectReference)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.oauth.apis.oauth.v1.RedirectReference") - proto.RegisterType((*ScopeRestriction)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.oauth.apis.oauth.v1.ScopeRestriction") -} -func (m *ClusterRoleScopeRestriction) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRoleScopeRestriction) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.RoleNames) > 0 { - for _, s := range m.RoleNames { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.Namespaces) > 0 { - for _, s := range m.Namespaces { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - dAtA[i] = 0x18 - i++ - if m.AllowEscalation { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - return i, nil -} - -func (m *OAuthAccessToken) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OAuthAccessToken) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClientName))) - i += copy(dAtA[i:], m.ClientName) - dAtA[i] = 0x18 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ExpiresIn)) - if len(m.Scopes) > 0 { - for _, s := range m.Scopes { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RedirectURI))) - i += copy(dAtA[i:], m.RedirectURI) - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UserName))) - i += copy(dAtA[i:], m.UserName) - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UserUID))) - i += copy(dAtA[i:], m.UserUID) - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AuthorizeToken))) - i += copy(dAtA[i:], m.AuthorizeToken) - dAtA[i] = 0x4a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RefreshToken))) - i += copy(dAtA[i:], m.RefreshToken) - return i, nil -} - -func (m *OAuthAccessTokenList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OAuthAccessTokenList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n2, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *OAuthAuthorizeToken) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OAuthAuthorizeToken) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n3, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClientName))) - i += copy(dAtA[i:], m.ClientName) - dAtA[i] = 0x18 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ExpiresIn)) - if len(m.Scopes) > 0 { - for _, s := range m.Scopes { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RedirectURI))) - i += copy(dAtA[i:], m.RedirectURI) - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.State))) - i += copy(dAtA[i:], m.State) - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UserName))) - i += copy(dAtA[i:], m.UserName) - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UserUID))) - i += copy(dAtA[i:], m.UserUID) - dAtA[i] = 0x4a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CodeChallenge))) - i += copy(dAtA[i:], m.CodeChallenge) - dAtA[i] = 0x52 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CodeChallengeMethod))) - i += copy(dAtA[i:], m.CodeChallengeMethod) - return i, nil -} - -func (m *OAuthAuthorizeTokenList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OAuthAuthorizeTokenList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n4, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *OAuthClient) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OAuthClient) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n5, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Secret))) - i += copy(dAtA[i:], m.Secret) - if len(m.AdditionalSecrets) > 0 { - for _, s := range m.AdditionalSecrets { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - dAtA[i] = 0x20 - i++ - if m.RespondWithChallenges { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if len(m.RedirectURIs) > 0 { - for _, s := range m.RedirectURIs { - dAtA[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.GrantMethod))) - i += copy(dAtA[i:], m.GrantMethod) - if len(m.ScopeRestrictions) > 0 { - for _, msg := range m.ScopeRestrictions { - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *OAuthClientAuthorization) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OAuthClientAuthorization) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n6, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClientName))) - i += copy(dAtA[i:], m.ClientName) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UserName))) - i += copy(dAtA[i:], m.UserName) - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UserUID))) - i += copy(dAtA[i:], m.UserUID) - if len(m.Scopes) > 0 { - for _, s := range m.Scopes { - dAtA[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *OAuthClientAuthorizationList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OAuthClientAuthorizationList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n7, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *OAuthClientList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OAuthClientList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n8, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *OAuthRedirectReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OAuthRedirectReference) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n9, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Reference.Size())) - n10, err := m.Reference.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 - return i, nil -} - -func (m *RedirectReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RedirectReference) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) - i += copy(dAtA[i:], m.Group) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i += copy(dAtA[i:], m.Kind) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - return i, nil -} - -func (m *ScopeRestriction) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScopeRestriction) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ExactValues) > 0 { - for _, s := range m.ExactValues { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if m.ClusterRole != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ClusterRole.Size())) - n11, err := m.ClusterRole.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 - } - return i, nil -} - -func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - dAtA[offset+4] = uint8(v >> 32) - dAtA[offset+5] = uint8(v >> 40) - dAtA[offset+6] = uint8(v >> 48) - dAtA[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *ClusterRoleScopeRestriction) Size() (n int) { - var l int - _ = l - if len(m.RoleNames) > 0 { - for _, s := range m.RoleNames { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Namespaces) > 0 { - for _, s := range m.Namespaces { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 2 - return n -} - -func (m *OAuthAccessToken) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ClientName) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.ExpiresIn)) - if len(m.Scopes) > 0 { - for _, s := range m.Scopes { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.RedirectURI) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UserName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UserUID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.AuthorizeToken) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.RefreshToken) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *OAuthAccessTokenList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *OAuthAuthorizeToken) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ClientName) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.ExpiresIn)) - if len(m.Scopes) > 0 { - for _, s := range m.Scopes { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.RedirectURI) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.State) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UserName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UserUID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.CodeChallenge) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.CodeChallengeMethod) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *OAuthAuthorizeTokenList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *OAuthClient) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Secret) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.AdditionalSecrets) > 0 { - for _, s := range m.AdditionalSecrets { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 2 - if len(m.RedirectURIs) > 0 { - for _, s := range m.RedirectURIs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.GrantMethod) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.ScopeRestrictions) > 0 { - for _, e := range m.ScopeRestrictions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *OAuthClientAuthorization) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ClientName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UserName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UserUID) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Scopes) > 0 { - for _, s := range m.Scopes { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *OAuthClientAuthorizationList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *OAuthClientList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *OAuthRedirectReference) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Reference.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RedirectReference) Size() (n int) { - var l int - _ = l - l = len(m.Group) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ScopeRestriction) Size() (n int) { - var l int - _ = l - if len(m.ExactValues) > 0 { - for _, s := range m.ExactValues { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.ClusterRole != nil { - l = m.ClusterRole.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func sovGenerated(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *ClusterRoleScopeRestriction) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterRoleScopeRestriction{`, - `RoleNames:` + fmt.Sprintf("%v", this.RoleNames) + `,`, - `Namespaces:` + fmt.Sprintf("%v", this.Namespaces) + `,`, - `AllowEscalation:` + fmt.Sprintf("%v", this.AllowEscalation) + `,`, - `}`, - }, "") - return s -} -func (this *OAuthAccessToken) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&OAuthAccessToken{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `ClientName:` + fmt.Sprintf("%v", this.ClientName) + `,`, - `ExpiresIn:` + fmt.Sprintf("%v", this.ExpiresIn) + `,`, - `Scopes:` + fmt.Sprintf("%v", this.Scopes) + `,`, - `RedirectURI:` + fmt.Sprintf("%v", this.RedirectURI) + `,`, - `UserName:` + fmt.Sprintf("%v", this.UserName) + `,`, - `UserUID:` + fmt.Sprintf("%v", this.UserUID) + `,`, - `AuthorizeToken:` + fmt.Sprintf("%v", this.AuthorizeToken) + `,`, - `RefreshToken:` + fmt.Sprintf("%v", this.RefreshToken) + `,`, - `}`, - }, "") - return s -} -func (this *OAuthAccessTokenList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&OAuthAccessTokenList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "OAuthAccessToken", "OAuthAccessToken", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *OAuthAuthorizeToken) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&OAuthAuthorizeToken{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `ClientName:` + fmt.Sprintf("%v", this.ClientName) + `,`, - `ExpiresIn:` + fmt.Sprintf("%v", this.ExpiresIn) + `,`, - `Scopes:` + fmt.Sprintf("%v", this.Scopes) + `,`, - `RedirectURI:` + fmt.Sprintf("%v", this.RedirectURI) + `,`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, - `UserName:` + fmt.Sprintf("%v", this.UserName) + `,`, - `UserUID:` + fmt.Sprintf("%v", this.UserUID) + `,`, - `CodeChallenge:` + fmt.Sprintf("%v", this.CodeChallenge) + `,`, - `CodeChallengeMethod:` + fmt.Sprintf("%v", this.CodeChallengeMethod) + `,`, - `}`, - }, "") - return s -} -func (this *OAuthAuthorizeTokenList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&OAuthAuthorizeTokenList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "OAuthAuthorizeToken", "OAuthAuthorizeToken", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *OAuthClient) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&OAuthClient{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Secret:` + fmt.Sprintf("%v", this.Secret) + `,`, - `AdditionalSecrets:` + fmt.Sprintf("%v", this.AdditionalSecrets) + `,`, - `RespondWithChallenges:` + fmt.Sprintf("%v", this.RespondWithChallenges) + `,`, - `RedirectURIs:` + fmt.Sprintf("%v", this.RedirectURIs) + `,`, - `GrantMethod:` + fmt.Sprintf("%v", this.GrantMethod) + `,`, - `ScopeRestrictions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ScopeRestrictions), "ScopeRestriction", "ScopeRestriction", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *OAuthClientAuthorization) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&OAuthClientAuthorization{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `ClientName:` + fmt.Sprintf("%v", this.ClientName) + `,`, - `UserName:` + fmt.Sprintf("%v", this.UserName) + `,`, - `UserUID:` + fmt.Sprintf("%v", this.UserUID) + `,`, - `Scopes:` + fmt.Sprintf("%v", this.Scopes) + `,`, - `}`, - }, "") - return s -} -func (this *OAuthClientAuthorizationList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&OAuthClientAuthorizationList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "OAuthClientAuthorization", "OAuthClientAuthorization", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *OAuthClientList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&OAuthClientList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "OAuthClient", "OAuthClient", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *OAuthRedirectReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&OAuthRedirectReference{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Reference:` + strings.Replace(strings.Replace(this.Reference.String(), "RedirectReference", "RedirectReference", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RedirectReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RedirectReference{`, - `Group:` + fmt.Sprintf("%v", this.Group) + `,`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *ScopeRestriction) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScopeRestriction{`, - `ExactValues:` + fmt.Sprintf("%v", this.ExactValues) + `,`, - `ClusterRole:` + strings.Replace(fmt.Sprintf("%v", this.ClusterRole), "ClusterRoleScopeRestriction", "ClusterRoleScopeRestriction", 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *ClusterRoleScopeRestriction) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRoleScopeRestriction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRoleScopeRestriction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleNames", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RoleNames = append(m.RoleNames, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespaces = append(m.Namespaces, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowEscalation", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowEscalation = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OAuthAccessToken) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OAuthAccessToken: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OAuthAccessToken: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClientName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpiresIn", wireType) - } - m.ExpiresIn = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExpiresIn |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Scopes = append(m.Scopes, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RedirectURI", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RedirectURI = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserUID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserUID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthorizeToken", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AuthorizeToken = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RefreshToken", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RefreshToken = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OAuthAccessTokenList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OAuthAccessTokenList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OAuthAccessTokenList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, OAuthAccessToken{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OAuthAuthorizeToken) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OAuthAuthorizeToken: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OAuthAuthorizeToken: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClientName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpiresIn", wireType) - } - m.ExpiresIn = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExpiresIn |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Scopes = append(m.Scopes, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RedirectURI", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RedirectURI = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.State = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserUID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserUID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CodeChallenge", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CodeChallenge = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CodeChallengeMethod", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CodeChallengeMethod = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OAuthAuthorizeTokenList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OAuthAuthorizeTokenList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OAuthAuthorizeTokenList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, OAuthAuthorizeToken{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OAuthClient) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OAuthClient: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OAuthClient: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secret", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Secret = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AdditionalSecrets", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AdditionalSecrets = append(m.AdditionalSecrets, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RespondWithChallenges", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.RespondWithChallenges = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RedirectURIs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RedirectURIs = append(m.RedirectURIs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GrantMethod", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GrantMethod = GrantHandlerType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScopeRestrictions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ScopeRestrictions = append(m.ScopeRestrictions, ScopeRestriction{}) - if err := m.ScopeRestrictions[len(m.ScopeRestrictions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OAuthClientAuthorization) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OAuthClientAuthorization: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OAuthClientAuthorization: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClientName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserUID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserUID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Scopes = append(m.Scopes, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OAuthClientAuthorizationList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OAuthClientAuthorizationList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OAuthClientAuthorizationList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, OAuthClientAuthorization{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OAuthClientList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OAuthClientList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OAuthClientList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, OAuthClient{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OAuthRedirectReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OAuthRedirectReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OAuthRedirectReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reference", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Reference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RedirectReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RedirectReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RedirectReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScopeRestriction) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScopeRestriction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScopeRestriction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExactValues", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExactValues = append(m.ExactValues, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterRole", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ClusterRole == nil { - m.ClusterRole = &ClusterRoleScopeRestriction{} - } - if err := m.ClusterRole.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/openshift/origin/pkg/oauth/apis/oauth/v1/generated.proto", fileDescriptorGenerated) -} - -var fileDescriptorGenerated = []byte{ - // 1176 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0x26, 0x76, 0x62, 0x8f, 0x9b, 0x0f, 0x4f, 0x9a, 0x76, 0x49, 0xc1, 0x8e, 0x5c, 0x09, - 0x82, 0x80, 0x35, 0x49, 0x0b, 0xaa, 0x84, 0x84, 0xb0, 0x4d, 0x68, 0x23, 0x48, 0x8b, 0x26, 0x0d, - 0x48, 0x88, 0x03, 0x93, 0xf5, 0x8b, 0x3d, 0xcd, 0x7a, 0x77, 0x35, 0x33, 0x4e, 0x5b, 0xc4, 0x01, - 0x89, 0x03, 0x37, 0xc4, 0x3f, 0xc2, 0x9f, 0xc0, 0x01, 0x21, 0xa4, 0x1c, 0x7b, 0x42, 0x3d, 0x59, - 0x8d, 0x91, 0x38, 0x23, 0x71, 0xe3, 0x84, 0x76, 0x76, 0xbc, 0x1f, 0xfe, 0x20, 0x34, 0x91, 0x22, - 0x0e, 0xdc, 0xc6, 0xef, 0xfd, 0x7e, 0xef, 0xbd, 0x99, 0xf9, 0xbd, 0xe7, 0x59, 0xd4, 0x68, 0x31, - 0xd9, 0xee, 0xee, 0x5b, 0xb6, 0xd7, 0xa9, 0x7a, 0x3e, 0xb8, 0xa2, 0xcd, 0x0e, 0x64, 0xd5, 0xe3, - 0xac, 0xc5, 0xdc, 0xaa, 0x7f, 0xd8, 0xaa, 0x7a, 0xb4, 0x2b, 0xdb, 0x55, 0xea, 0x33, 0xa1, 0x97, - 0x47, 0x1b, 0xd5, 0x16, 0xb8, 0xc0, 0xa9, 0x84, 0xa6, 0xe5, 0x73, 0x4f, 0x7a, 0xf8, 0x46, 0x1c, - 0xc4, 0x8a, 0x82, 0x58, 0x61, 0x10, 0xcb, 0x3f, 0x6c, 0x59, 0x8a, 0x69, 0x05, 0x41, 0xf4, 0xf2, - 0x68, 0x63, 0xf5, 0x8d, 0x44, 0xe6, 0x96, 0xd7, 0xf2, 0xaa, 0x2a, 0xd6, 0x7e, 0xf7, 0x40, 0xfd, - 0x52, 0x3f, 0xd4, 0x2a, 0xcc, 0xb1, 0x7a, 0xf3, 0xf0, 0x96, 0xb0, 0x98, 0x17, 0x54, 0xd2, 0xa1, - 0x76, 0x9b, 0xb9, 0xc0, 0x1f, 0xab, 0x02, 0x55, 0x69, 0x1d, 0x90, 0x74, 0x4c, 0x65, 0xab, 0xd5, - 0x49, 0x2c, 0xde, 0x75, 0x25, 0xeb, 0xc0, 0x08, 0xe1, 0xed, 0xd3, 0x08, 0xc2, 0x6e, 0x43, 0x87, - 0x8e, 0xf0, 0x6e, 0x4c, 0xe2, 0x75, 0x25, 0x73, 0xaa, 0xcc, 0x95, 0x42, 0xf2, 0x61, 0x52, 0xe5, - 0x47, 0x03, 0x5d, 0x6b, 0x38, 0x5d, 0x21, 0x81, 0x13, 0xcf, 0x81, 0x5d, 0xdb, 0xf3, 0x81, 0x80, - 0x90, 0x9c, 0xd9, 0x92, 0x79, 0x2e, 0x7e, 0x0d, 0xe5, 0xb9, 0xe7, 0xc0, 0x5d, 0xda, 0x01, 0x61, - 0x1a, 0x6b, 0x33, 0xeb, 0xf9, 0xfa, 0x7c, 0xbf, 0x57, 0xce, 0x93, 0x81, 0x91, 0xc4, 0x7e, 0x6c, - 0x21, 0xe4, 0x06, 0x0b, 0x9f, 0xda, 0x20, 0xcc, 0x69, 0x85, 0x5e, 0xe8, 0xf7, 0xca, 0xe8, 0x6e, - 0x64, 0x25, 0x09, 0x04, 0xae, 0xa1, 0x45, 0xea, 0x38, 0xde, 0xc3, 0x2d, 0x61, 0x53, 0x87, 0x06, - 0xf9, 0xcc, 0x99, 0x35, 0x63, 0x3d, 0x57, 0xbf, 0x7a, 0xdc, 0x2b, 0x4f, 0xf5, 0x7b, 0xe5, 0xc5, - 0x5a, 0xda, 0x4d, 0x86, 0xf1, 0x95, 0x6f, 0x33, 0x68, 0xe9, 0x5e, 0xad, 0x2b, 0xdb, 0x35, 0xdb, - 0x06, 0x21, 0xee, 0x7b, 0x87, 0xe0, 0xe2, 0x2f, 0x50, 0x2e, 0xb8, 0x8d, 0x26, 0x95, 0xd4, 0x34, - 0xd6, 0x8c, 0xf5, 0xc2, 0xe6, 0x9b, 0x56, 0x78, 0x38, 0x56, 0xf2, 0x70, 0x94, 0x2e, 0x94, 0x22, - 0x02, 0xb4, 0x75, 0xb4, 0x61, 0xdd, 0xdb, 0x7f, 0x00, 0xb6, 0xdc, 0x01, 0x49, 0xeb, 0x58, 0x97, - 0x80, 0x62, 0x1b, 0x89, 0xa2, 0xe2, 0x4d, 0x84, 0x6c, 0x87, 0x81, 0x2b, 0x83, 0x9d, 0x99, 0xd3, - 0x6b, 0xc6, 0x7a, 0x3e, 0x66, 0x34, 0x22, 0x0f, 0x49, 0xa0, 0x70, 0x15, 0xe5, 0xe1, 0x91, 0xcf, - 0x38, 0x88, 0xed, 0x70, 0x9f, 0x33, 0xf5, 0xa2, 0xa6, 0xe4, 0xb7, 0x06, 0x0e, 0x12, 0x63, 0x70, - 0x05, 0xcd, 0x8a, 0xe0, 0x3e, 0x84, 0x99, 0x51, 0x47, 0x89, 0xfa, 0xbd, 0xf2, 0xac, 0xba, 0x21, - 0x41, 0xb4, 0x07, 0xbf, 0x85, 0x0a, 0x1c, 0x9a, 0x8c, 0x83, 0x2d, 0xf7, 0xc8, 0xb6, 0x99, 0x55, - 0x95, 0x2c, 0xeb, 0xb0, 0x05, 0x12, 0xbb, 0x48, 0x12, 0x87, 0x5f, 0x47, 0xb9, 0xae, 0x00, 0xae, - 0xaa, 0x9f, 0x55, 0x9c, 0x25, 0xcd, 0xc9, 0xed, 0x69, 0x3b, 0x89, 0x10, 0xf8, 0x55, 0x34, 0x17, - 0xac, 0xf7, 0xb6, 0xdf, 0x37, 0xe7, 0x14, 0x78, 0x51, 0x83, 0xe7, 0xf6, 0x42, 0x33, 0x19, 0xf8, - 0xf1, 0xbb, 0x68, 0x21, 0xe8, 0x2e, 0x8f, 0xb3, 0x2f, 0x41, 0x5d, 0x86, 0x99, 0x53, 0x8c, 0x2b, - 0x9a, 0xb1, 0x50, 0x4b, 0x79, 0xc9, 0x10, 0x1a, 0xdf, 0x42, 0x97, 0x38, 0x1c, 0x70, 0x10, 0xed, - 0x90, 0x9d, 0x57, 0xec, 0xcb, 0x9a, 0x7d, 0x89, 0x24, 0x7c, 0x24, 0x85, 0xac, 0x3c, 0x33, 0xd0, - 0xe5, 0x61, 0x25, 0x7c, 0xc4, 0x84, 0xc4, 0x9f, 0x8f, 0xa8, 0xc1, 0xfa, 0x77, 0x6a, 0x08, 0xd8, - 0x4a, 0x0b, 0xd1, 0xd9, 0x0c, 0x2c, 0x09, 0x25, 0x3c, 0x40, 0x59, 0x26, 0xa1, 0x13, 0xca, 0xbd, - 0xb0, 0xb9, 0x65, 0x9d, 0x61, 0x10, 0x59, 0xc3, 0x75, 0xd7, 0xe7, 0x75, 0xc6, 0xec, 0x76, 0x10, - 0x9b, 0x84, 0x29, 0x2a, 0x3f, 0x65, 0xd0, 0x72, 0x08, 0x4d, 0x1f, 0xda, 0xff, 0x7a, 0x3f, 0x4d, - 0xef, 0xd7, 0x51, 0x56, 0x48, 0x2a, 0x07, 0x62, 0x8f, 0x8e, 0x77, 0x37, 0x30, 0x92, 0xd0, 0x97, - 0x6a, 0x8a, 0xb9, 0xe7, 0x69, 0x8a, 0xdc, 0x29, 0x4d, 0xf1, 0x0e, 0x9a, 0xb7, 0xbd, 0x26, 0x34, - 0xda, 0xd4, 0x71, 0xc0, 0x6d, 0x81, 0x56, 0xf5, 0x8a, 0x26, 0xcc, 0x37, 0x92, 0x4e, 0x92, 0xc6, - 0xe2, 0x1d, 0xb4, 0x9c, 0x32, 0xec, 0x80, 0x6c, 0x7b, 0x4d, 0x13, 0xa9, 0x10, 0xd7, 0x74, 0x88, - 0xe5, 0xc6, 0x28, 0x84, 0x8c, 0xe3, 0x55, 0x7e, 0x37, 0xd0, 0xd5, 0x31, 0x1a, 0xba, 0x80, 0x4e, - 0xe9, 0xa4, 0x3b, 0xe5, 0xce, 0x39, 0x3a, 0x25, 0x55, 0xfa, 0x84, 0x66, 0xf9, 0x39, 0x83, 0x0a, - 0x0a, 0x1d, 0xca, 0xf3, 0x02, 0x9a, 0xe4, 0x65, 0x34, 0x2b, 0xc0, 0xe6, 0x20, 0x75, 0x83, 0x2c, - 0x68, 0xf4, 0xec, 0xae, 0xb2, 0x12, 0xed, 0xc5, 0x0d, 0x54, 0xa4, 0xcd, 0x26, 0x0b, 0xfe, 0xbf, - 0xa8, 0x13, 0xfa, 0x84, 0x39, 0xa3, 0x24, 0xbf, 0xd2, 0xef, 0x95, 0x8b, 0xb5, 0x61, 0x27, 0x19, - 0xc5, 0xe3, 0x5d, 0xb4, 0xc2, 0x41, 0xf8, 0x9e, 0xdb, 0xfc, 0x94, 0xc9, 0x76, 0x74, 0xcb, 0x41, - 0xef, 0x04, 0xff, 0xa0, 0x2f, 0xe9, 0xdc, 0x2b, 0x64, 0x1c, 0x88, 0x8c, 0xe7, 0xe2, 0x9b, 0xc1, - 0xf4, 0x8d, 0xba, 0x46, 0x98, 0x59, 0x55, 0xd4, 0x52, 0x38, 0x79, 0x63, 0x3b, 0x49, 0xa1, 0xf0, - 0x36, 0x2a, 0xb4, 0x38, 0x75, 0xa5, 0x56, 0x66, 0xd8, 0x62, 0xaf, 0x0c, 0x7a, 0xf2, 0x76, 0xec, - 0xfa, 0xab, 0x57, 0x5e, 0x52, 0x3f, 0xef, 0x50, 0xb7, 0xe9, 0x00, 0xbf, 0xff, 0xd8, 0x07, 0x92, - 0xe4, 0xe2, 0xef, 0x0c, 0x54, 0x14, 0x43, 0x6f, 0x10, 0x61, 0xce, 0x9d, 0x63, 0xb4, 0x0e, 0xbf, - 0x68, 0xea, 0x2f, 0xe8, 0xc2, 0x8a, 0xc3, 0x1e, 0x41, 0x46, 0x53, 0x57, 0x7e, 0x98, 0x46, 0x66, - 0x42, 0x45, 0x03, 0xe5, 0xa9, 0xc7, 0xc7, 0x7f, 0x74, 0xee, 0x26, 0xc7, 0xd8, 0xcc, 0xf3, 0x8c, - 0xb1, 0xcc, 0x29, 0x63, 0x2c, 0x9e, 0xcf, 0xd9, 0x49, 0xf3, 0xb9, 0xf2, 0x87, 0x81, 0x5e, 0x9c, - 0x74, 0x5e, 0x17, 0x30, 0x63, 0x78, 0x7a, 0xc6, 0xec, 0x9c, 0x7d, 0xc6, 0x8c, 0xa9, 0x7f, 0xc2, - 0xa0, 0xf9, 0xd5, 0x40, 0x8b, 0x09, 0xca, 0x05, 0xec, 0x12, 0xd2, 0xbb, 0x7c, 0xef, 0xbc, 0xbb, - 0x9c, 0xb0, 0xb1, 0x3f, 0x0d, 0x74, 0x45, 0xa1, 0x06, 0xbd, 0x4f, 0xe0, 0x00, 0x38, 0xb8, 0x36, - 0x5c, 0x80, 0xf2, 0x1f, 0xa2, 0x3c, 0x1f, 0xa4, 0x53, 0xc2, 0x2f, 0x6c, 0x7e, 0x70, 0xa6, 0x7d, - 0x8e, 0x14, 0x1f, 0xbf, 0x42, 0x22, 0x13, 0x89, 0x73, 0x55, 0xbe, 0x42, 0xc5, 0xd1, 0xfd, 0x5e, - 0x47, 0xd9, 0x16, 0xf7, 0xba, 0xbe, 0xda, 0x6c, 0xe2, 0xfd, 0x70, 0x3b, 0x30, 0x92, 0xd0, 0x87, - 0xd7, 0x50, 0xe6, 0x90, 0xb9, 0x4d, 0xdd, 0xa6, 0x97, 0x34, 0x26, 0xf3, 0x21, 0x73, 0x9b, 0x44, - 0x79, 0x02, 0x84, 0x1b, 0xb7, 0x65, 0x84, 0x50, 0x2d, 0xa9, 0x3c, 0x95, 0x5f, 0x0c, 0xb4, 0x34, - 0xe6, 0x23, 0x2c, 0xe7, 0x30, 0x09, 0x9c, 0x3a, 0x83, 0x6f, 0xb0, 0xc5, 0x60, 0xb2, 0x6e, 0x3d, - 0xa2, 0xb6, 0xfc, 0x84, 0x3a, 0x5d, 0x10, 0x24, 0x02, 0xe0, 0x6f, 0x0c, 0x54, 0xb0, 0xe3, 0x2f, - 0x3a, 0x7d, 0x76, 0x1f, 0x9f, 0xe9, 0xec, 0xfe, 0xe1, 0xcb, 0x30, 0x2c, 0x21, 0x01, 0x20, 0xc9, - 0xac, 0xf5, 0xf5, 0xe3, 0x93, 0xd2, 0xd4, 0x93, 0x93, 0xd2, 0xd4, 0xd3, 0x93, 0xd2, 0xd4, 0xd7, - 0xfd, 0x92, 0x71, 0xdc, 0x2f, 0x19, 0x4f, 0xfa, 0x25, 0xe3, 0x69, 0xbf, 0x64, 0x3c, 0xeb, 0x97, - 0x8c, 0xef, 0x7f, 0x2b, 0x4d, 0x7d, 0x36, 0x7d, 0xb4, 0xf1, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xd1, 0x13, 0x3e, 0xfd, 0xff, 0x0f, 0x00, 0x00, -} diff --git a/pkg/oauth/apis/oauth/v1/generated.proto b/pkg/oauth/apis/oauth/v1/generated.proto index d7accff7d38c..fe638c89591a 100644 --- a/pkg/oauth/apis/oauth/v1/generated.proto +++ b/pkg/oauth/apis/oauth/v1/generated.proto @@ -5,204 +5,214 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.oauth.apis.oauth.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // ClusterRoleScopeRestriction describes restrictions on cluster role scopes message ClusterRoleScopeRestriction { // RoleNames is the list of cluster roles that can referenced. * means anything - repeated string roleNames = 1; + repeated string roleNames = 1 [(gogoproto.customname) = "RoleNames"]; // Namespaces is the list of namespaces that can be referenced. * means any of them (including *) - repeated string namespaces = 2; + repeated string namespaces = 2 [(gogoproto.customname) = "Namespaces"]; // AllowEscalation indicates whether you can request roles and their escalating resources - optional bool allowEscalation = 3; + optional bool allowEscalation = 3 [(gogoproto.customname) = "AllowEscalation", (gogoproto.nullable) = false]; } // OAuthAccessToken describes an OAuth access token message OAuthAccessToken { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // ClientName references the client that created this token. - optional string clientName = 2; + optional string clientName = 2 [(gogoproto.customname) = "ClientName", (gogoproto.nullable) = false]; // ExpiresIn is the seconds from CreationTime before this token expires. - optional int64 expiresIn = 3; + optional int64 expiresIn = 3 [(gogoproto.customname) = "ExpiresIn", (gogoproto.nullable) = false]; // Scopes is an array of the requested scopes. - repeated string scopes = 4; + repeated string scopes = 4 [(gogoproto.customname) = "Scopes"]; // RedirectURI is the redirection associated with the token. - optional string redirectURI = 5; + optional string redirectURI = 5 [(gogoproto.customname) = "RedirectURI", (gogoproto.nullable) = false]; // UserName is the user name associated with this token - optional string userName = 6; + optional string userName = 6 [(gogoproto.customname) = "UserName", (gogoproto.nullable) = false]; // UserUID is the unique UID associated with this token - optional string userUID = 7; + optional string userUID = 7 [(gogoproto.customname) = "UserUID", (gogoproto.nullable) = false]; // AuthorizeToken contains the token that authorized this token - optional string authorizeToken = 8; + optional string authorizeToken = 8 [(gogoproto.customname) = "AuthorizeToken", (gogoproto.nullable) = false]; // RefreshToken is the value by which this token can be renewed. Can be blank. - optional string refreshToken = 9; + optional string refreshToken = 9 [(gogoproto.customname) = "RefreshToken", (gogoproto.nullable) = false]; } // OAuthAccessTokenList is a collection of OAuth access tokens message OAuthAccessTokenList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of OAuth access tokens - repeated OAuthAccessToken items = 2; + repeated OAuthAccessToken items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // OAuthAuthorizeToken describes an OAuth authorization token message OAuthAuthorizeToken { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // ClientName references the client that created this token. - optional string clientName = 2; + optional string clientName = 2 [(gogoproto.customname) = "ClientName", (gogoproto.nullable) = false]; // ExpiresIn is the seconds from CreationTime before this token expires. - optional int64 expiresIn = 3; + optional int64 expiresIn = 3 [(gogoproto.customname) = "ExpiresIn", (gogoproto.nullable) = false]; // Scopes is an array of the requested scopes. - repeated string scopes = 4; + repeated string scopes = 4 [(gogoproto.customname) = "Scopes"]; // RedirectURI is the redirection associated with the token. - optional string redirectURI = 5; + optional string redirectURI = 5 [(gogoproto.customname) = "RedirectURI", (gogoproto.nullable) = false]; // State data from request - optional string state = 6; + optional string state = 6 [(gogoproto.customname) = "State", (gogoproto.nullable) = false]; // UserName is the user name associated with this token - optional string userName = 7; + optional string userName = 7 [(gogoproto.customname) = "UserName", (gogoproto.nullable) = false]; // UserUID is the unique UID associated with this token. UserUID and UserName must both match // for this token to be valid. - optional string userUID = 8; + optional string userUID = 8 [(gogoproto.customname) = "UserUID", (gogoproto.nullable) = false]; // CodeChallenge is the optional code_challenge associated with this authorization code, as described in rfc7636 - optional string codeChallenge = 9; + optional string codeChallenge = 9 [(gogoproto.customname) = "CodeChallenge", (gogoproto.nullable) = false]; // CodeChallengeMethod is the optional code_challenge_method associated with this authorization code, as described in rfc7636 - optional string codeChallengeMethod = 10; + optional string codeChallengeMethod = 10 [(gogoproto.customname) = "CodeChallengeMethod", (gogoproto.nullable) = false]; } // OAuthAuthorizeTokenList is a collection of OAuth authorization tokens message OAuthAuthorizeTokenList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of OAuth authorization tokens - repeated OAuthAuthorizeToken items = 2; + repeated OAuthAuthorizeToken items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // OAuthClient describes an OAuth client message OAuthClient { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Secret is the unique secret associated with a client - optional string secret = 2; + optional string secret = 2 [(gogoproto.customname) = "Secret", (gogoproto.nullable) = false]; // AdditionalSecrets holds other secrets that may be used to identify the client. This is useful for rotation // and for service account token validation - repeated string additionalSecrets = 3; + repeated string additionalSecrets = 3 [(gogoproto.customname) = "AdditionalSecrets"]; // RespondWithChallenges indicates whether the client wants authentication needed responses made in the form of challenges instead of redirects - optional bool respondWithChallenges = 4; + optional bool respondWithChallenges = 4 [(gogoproto.customname) = "RespondWithChallenges", (gogoproto.nullable) = false]; // RedirectURIs is the valid redirection URIs associated with a client // +patchStrategy=merge - repeated string redirectURIs = 5; + repeated string redirectURIs = 5 [(gogoproto.customname) = "RedirectURIs"]; // GrantMethod determines how to handle grants for this client. If no method is provided, the // cluster default grant handling method will be used. Valid grant handling methods are: // - auto: always approves grant requests, useful for trusted clients // - prompt: prompts the end user for approval of grant requests, useful for third-party clients // - deny: always denies grant requests, useful for black-listed clients - optional string grantMethod = 6; + optional string grantMethod = 6 [(gogoproto.casttype) = "GrantHandlerType", (gogoproto.customname) = "GrantMethod", (gogoproto.nullable) = false]; // ScopeRestrictions describes which scopes this client can request. Each requested scope // is checked against each restriction. If any restriction matches, then the scope is allowed. // If no restriction matches, then the scope is denied. - repeated ScopeRestriction scopeRestrictions = 7; + repeated ScopeRestriction scopeRestrictions = 7 [(gogoproto.customname) = "ScopeRestrictions", (gogoproto.nullable) = false]; } // OAuthClientAuthorization describes an authorization created by an OAuth client message OAuthClientAuthorization { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // ClientName references the client that created this authorization - optional string clientName = 2; + optional string clientName = 2 [(gogoproto.customname) = "ClientName", (gogoproto.nullable) = false]; // UserName is the user name that authorized this client - optional string userName = 3; + optional string userName = 3 [(gogoproto.customname) = "UserName", (gogoproto.nullable) = false]; // UserUID is the unique UID associated with this authorization. UserUID and UserName // must both match for this authorization to be valid. - optional string userUID = 4; + optional string userUID = 4 [(gogoproto.customname) = "UserUID", (gogoproto.nullable) = false]; // Scopes is an array of the granted scopes. - repeated string scopes = 5; + repeated string scopes = 5 [(gogoproto.customname) = "Scopes"]; } // OAuthClientAuthorizationList is a collection of OAuth client authorizations message OAuthClientAuthorizationList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of OAuth client authorizations - repeated OAuthClientAuthorization items = 2; + repeated OAuthClientAuthorization items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // OAuthClientList is a collection of OAuth clients message OAuthClientList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of OAuth clients - repeated OAuthClient items = 2; + repeated OAuthClient items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // OAuthRedirectReference is a reference to an OAuth redirect object. message OAuthRedirectReference { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // The reference to an redirect object in the current namespace. - optional RedirectReference reference = 2; + optional RedirectReference reference = 2 [(gogoproto.customname) = "Reference", (gogoproto.nullable) = false]; } // RedirectReference specifies the target in the current namespace that resolves into redirect URIs. Only the 'Route' kind is currently allowed. message RedirectReference { // The group of the target that is being referred to. - optional string group = 1; + optional string group = 1 [(gogoproto.customname) = "Group", (gogoproto.nullable) = false]; // The kind of the target that is being referred to. Currently, only 'Route' is allowed. - optional string kind = 2; + optional string kind = 2 [(gogoproto.customname) = "Kind", (gogoproto.nullable) = false]; // The name of the target that is being referred to. e.g. name of the Route. - optional string name = 3; + optional string name = 3 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; } // ScopeRestriction describe one restriction on scopes. Exactly one option must be non-nil. message ScopeRestriction { // ExactValues means the scope has to match a particular set of strings exactly - repeated string literals = 1; + repeated string literals = 1 [(gogoproto.customname) = "ExactValues"]; // ClusterRole describes a set of restrictions for cluster role scoping. - optional ClusterRoleScopeRestriction clusterRole = 2; + optional ClusterRoleScopeRestriction clusterRole = 2 [(gogoproto.customname) = "ClusterRole"]; } diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index cb1f124d2281..5f8f73e3ed3e 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -6149,7 +6149,7 @@ func GetOpenAPIDefinitions(ref openapi.ReferenceCallback) map[string]openapi.Ope }, "dockerImageRepository": { SchemaProps: spec.SchemaProps{ - Description: "dockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server", + Description: "dockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server Deprecated: This field is deprecated as of v3.7 and will be removed in a future release Specify the source for the tags to be imported in each tag via the spec.tags.from reference instead.", Type: []string{"string"}, Format: "", }, @@ -6715,7 +6715,7 @@ func GetOpenAPIDefinitions(ref openapi.ReferenceCallback) map[string]openapi.Ope }, "annotations": { SchemaProps: spec.SchemaProps{ - Description: "Annotations associated with images using this tag", + Description: "Optional; if specified, annotations that are applied to images retrieved via ImageStreamTags.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Schema: &spec.Schema{ @@ -6729,7 +6729,7 @@ func GetOpenAPIDefinitions(ref openapi.ReferenceCallback) map[string]openapi.Ope }, "from": { SchemaProps: spec.SchemaProps{ - Description: "From is a reference to an image stream tag or image stream this tag should track", + Description: "Optional; if specified, a reference to another image that this tag should point to. Valid values are ImageStreamTag, ImageStreamImage, and DockerImage.", Ref: ref("k8s.io/kubernetes/pkg/api/v1.ObjectReference"), }, }, @@ -6742,20 +6742,20 @@ func GetOpenAPIDefinitions(ref openapi.ReferenceCallback) map[string]openapi.Ope }, "generation": { SchemaProps: spec.SchemaProps{ - Description: "Generation is the image stream generation that updated this tag - setting it to 0 is an indication that the generation must be updated. Legacy clients will send this as nil, which means the client doesn't know or care.", + Description: "Generation is a counter that tracks mutations to the spec tag (user intent). When a tag reference is changed the generation is set to match the current stream generation (which is incremented every time spec is changed). Other processes in the system like the image importer observe that the generation of spec tag is newer than the generation recorded in the status and use that as a trigger to import the newest remote tag. To trigger a new import, clients may set this value to zero which will reset the generation to the latest stream generation. Legacy clients will send this value as nil which will be merged with the current tag generation.", Type: []string{"integer"}, Format: "int64", }, }, "importPolicy": { SchemaProps: spec.SchemaProps{ - Description: "Import is information that controls how images may be imported by the server.", + Description: "ImportPolicy is information that controls how images may be imported by the server.", Ref: ref("github.com/openshift/origin/pkg/image/apis/image/v1.TagImportPolicy"), }, }, "referencePolicy": { SchemaProps: spec.SchemaProps{ - Description: "ReferencePolicy defines how other components should consume the image", + Description: "ReferencePolicy defines how other components should consume the image.", Ref: ref("github.com/openshift/origin/pkg/image/apis/image/v1.TagReferencePolicy"), }, }, diff --git a/pkg/project/apis/project/v1/generated.pb.go b/pkg/project/apis/project/v1/generated.pb.go deleted file mode 100644 index 2b24903743b4..000000000000 --- a/pkg/project/apis/project/v1/generated.pb.go +++ /dev/null @@ -1,1094 +0,0 @@ -// Code generated by protoc-gen-gogo. -// source: github.com/openshift/origin/pkg/project/apis/project/v1/generated.proto -// DO NOT EDIT! - -/* - Package v1 is a generated protocol buffer package. - - It is generated from these files: - github.com/openshift/origin/pkg/project/apis/project/v1/generated.proto - - It has these top-level messages: - Project - ProjectList - ProjectRequest - ProjectSpec - ProjectStatus -*/ -package v1 - -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" - -import strings "strings" -import reflect "reflect" - -import io "io" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *Project) Reset() { *m = Project{} } -func (*Project) ProtoMessage() {} -func (*Project) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } - -func (m *ProjectList) Reset() { *m = ProjectList{} } -func (*ProjectList) ProtoMessage() {} -func (*ProjectList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } - -func (m *ProjectRequest) Reset() { *m = ProjectRequest{} } -func (*ProjectRequest) ProtoMessage() {} -func (*ProjectRequest) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } - -func (m *ProjectSpec) Reset() { *m = ProjectSpec{} } -func (*ProjectSpec) ProtoMessage() {} -func (*ProjectSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } - -func (m *ProjectStatus) Reset() { *m = ProjectStatus{} } -func (*ProjectStatus) ProtoMessage() {} -func (*ProjectStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } - -func init() { - proto.RegisterType((*Project)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.project.apis.project.v1.Project") - proto.RegisterType((*ProjectList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.project.apis.project.v1.ProjectList") - proto.RegisterType((*ProjectRequest)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.project.apis.project.v1.ProjectRequest") - proto.RegisterType((*ProjectSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.project.apis.project.v1.ProjectSpec") - proto.RegisterType((*ProjectStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.project.apis.project.v1.ProjectStatus") -} -func (m *Project) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Project) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n2, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n3, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - return i, nil -} - -func (m *ProjectList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ProjectList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n4, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ProjectRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ProjectRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n5, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DisplayName))) - i += copy(dAtA[i:], m.DisplayName) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Description))) - i += copy(dAtA[i:], m.Description) - return i, nil -} - -func (m *ProjectSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ProjectSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Finalizers) > 0 { - for _, s := range m.Finalizers { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *ProjectStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ProjectStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) - i += copy(dAtA[i:], m.Phase) - return i, nil -} - -func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - dAtA[offset+4] = uint8(v >> 32) - dAtA[offset+5] = uint8(v >> 40) - dAtA[offset+6] = uint8(v >> 48) - dAtA[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *Project) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ProjectList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ProjectRequest) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DisplayName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Description) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ProjectSpec) Size() (n int) { - var l int - _ = l - if len(m.Finalizers) > 0 { - for _, s := range m.Finalizers { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ProjectStatus) Size() (n int) { - var l int - _ = l - l = len(m.Phase) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Project) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Project{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ProjectSpec", "ProjectSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ProjectStatus", "ProjectStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ProjectList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ProjectList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Project", "Project", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ProjectRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ProjectRequest{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `DisplayName:` + fmt.Sprintf("%v", this.DisplayName) + `,`, - `Description:` + fmt.Sprintf("%v", this.Description) + `,`, - `}`, - }, "") - return s -} -func (this *ProjectSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ProjectSpec{`, - `Finalizers:` + fmt.Sprintf("%v", this.Finalizers) + `,`, - `}`, - }, "") - return s -} -func (this *ProjectStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ProjectStatus{`, - `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Project) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Project: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Project: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProjectList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProjectList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProjectList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Project{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProjectRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProjectRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DisplayName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProjectSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProjectSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProjectSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Finalizers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Finalizers = append(m.Finalizers, k8s_io_kubernetes_pkg_api_v1.FinalizerName(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProjectStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProjectStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProjectStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Phase = k8s_io_kubernetes_pkg_api_v1.NamespacePhase(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/openshift/origin/pkg/project/apis/project/v1/generated.proto", fileDescriptorGenerated) -} - -var fileDescriptorGenerated = []byte{ - // 580 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x53, 0xbb, 0x6f, 0xd3, 0x40, - 0x18, 0x8f, 0x93, 0xa6, 0x34, 0x17, 0x5a, 0x21, 0xb3, 0x44, 0x19, 0x9c, 0x28, 0x53, 0xc4, 0xe3, - 0x4c, 0xca, 0x73, 0xe8, 0x80, 0xac, 0xaa, 0x08, 0x89, 0x47, 0x65, 0x36, 0xd4, 0x81, 0x8b, 0xf3, - 0xc5, 0x39, 0x12, 0xdb, 0x87, 0xef, 0x1c, 0xa9, 0x4c, 0xfc, 0x09, 0xfc, 0x4f, 0x2c, 0x19, 0x2b, - 0xa6, 0x4e, 0x51, 0x63, 0xfe, 0x8b, 0x4e, 0xe8, 0xce, 0x17, 0xc7, 0x28, 0x6d, 0x41, 0x54, 0xea, - 0xe6, 0xef, 0xbb, 0xef, 0xf7, 0xf8, 0x1e, 0x46, 0xaf, 0x7c, 0x2a, 0x46, 0x49, 0x1f, 0x7b, 0x51, - 0x60, 0x47, 0x0c, 0x42, 0x3e, 0xa2, 0x43, 0x61, 0x47, 0x31, 0xf5, 0x69, 0x68, 0xb3, 0xb1, 0x6f, - 0xb3, 0x38, 0xfa, 0x0c, 0x9e, 0xb0, 0x09, 0xa3, 0x3c, 0x0f, 0xa6, 0x3d, 0xdb, 0x87, 0x10, 0x62, - 0x22, 0x60, 0x80, 0x59, 0x1c, 0x89, 0xc8, 0x7c, 0xbe, 0x22, 0xc2, 0x39, 0x11, 0xce, 0x88, 0x30, - 0x1b, 0xfb, 0x58, 0x63, 0xb1, 0x24, 0xca, 0x83, 0x69, 0xaf, 0xf9, 0xb0, 0xe0, 0xc0, 0x8f, 0xfc, - 0xc8, 0x56, 0x7c, 0xfd, 0x64, 0xa8, 0x22, 0x15, 0xa8, 0xaf, 0x4c, 0xa7, 0xf9, 0x64, 0xfc, 0x82, - 0x63, 0x1a, 0x49, 0x3f, 0x01, 0xf1, 0x46, 0x34, 0x84, 0xf8, 0x58, 0x19, 0x55, 0x06, 0x03, 0x10, - 0xe4, 0x02, 0x77, 0x4d, 0xfb, 0x32, 0x54, 0x9c, 0x84, 0x82, 0x06, 0xb0, 0x06, 0x78, 0xf6, 0x37, - 0x00, 0xf7, 0x46, 0x10, 0x90, 0x35, 0xdc, 0xe3, 0xcb, 0x70, 0x89, 0xa0, 0x13, 0x9b, 0x86, 0x82, - 0x8b, 0x78, 0x0d, 0xf4, 0x40, 0x83, 0xc6, 0x49, 0x1f, 0xe2, 0x10, 0x04, 0xf0, 0x65, 0x47, 0x17, - 0xf4, 0xd2, 0xf9, 0x51, 0x46, 0xb7, 0x0e, 0xb3, 0xf9, 0x99, 0x9f, 0xd0, 0x96, 0x6c, 0x79, 0x40, - 0x04, 0x69, 0x18, 0x6d, 0xa3, 0x5b, 0xdf, 0x7d, 0x84, 0x33, 0x32, 0x5c, 0x74, 0xa0, 0x16, 0xa0, - 0x06, 0x2f, 0xab, 0xf1, 0xb4, 0x87, 0xdf, 0xf7, 0x25, 0xfe, 0x2d, 0x08, 0xe2, 0x98, 0xb3, 0x79, - 0xab, 0x94, 0xce, 0x5b, 0x68, 0x95, 0x73, 0x73, 0x56, 0x73, 0x88, 0x36, 0x38, 0x03, 0xaf, 0x51, - 0x56, 0xec, 0xfb, 0xf8, 0x3f, 0xd7, 0x8c, 0xb5, 0xe3, 0x0f, 0x0c, 0x3c, 0xe7, 0xb6, 0x56, 0xdc, - 0x90, 0x91, 0xab, 0xf8, 0xcd, 0x10, 0x6d, 0x72, 0x41, 0x44, 0xc2, 0x1b, 0x15, 0xa5, 0x74, 0x70, - 0x6d, 0x25, 0xc5, 0xe6, 0xec, 0x68, 0xad, 0xcd, 0x2c, 0x76, 0xb5, 0x4a, 0xe7, 0xa7, 0x81, 0xea, - 0xba, 0xf2, 0x0d, 0xe5, 0xc2, 0x3c, 0x5a, 0x9b, 0x24, 0xfe, 0xb7, 0x49, 0x4a, 0xb4, 0x9a, 0xe3, - 0x1d, 0xad, 0xb4, 0xb5, 0xcc, 0x14, 0xa6, 0x08, 0xa8, 0x4a, 0x05, 0x04, 0xbc, 0x51, 0x6e, 0x57, - 0xba, 0xf5, 0xdd, 0x97, 0xd7, 0x6d, 0xce, 0xd9, 0xd6, 0x62, 0xd5, 0xd7, 0x92, 0xd6, 0xcd, 0xd8, - 0x3b, 0x67, 0x06, 0xda, 0xd1, 0x15, 0x2e, 0x7c, 0x49, 0x80, 0xdf, 0xc4, 0x85, 0x3c, 0x45, 0xf5, - 0x01, 0xe5, 0x6c, 0x42, 0x8e, 0xdf, 0x91, 0x00, 0xd4, 0xa1, 0xd4, 0x9c, 0xbb, 0x1a, 0x52, 0xdf, - 0x5f, 0x3d, 0xb9, 0xc5, 0x3a, 0x05, 0x03, 0xee, 0xc5, 0x94, 0x09, 0x1a, 0x85, 0x6a, 0xeb, 0x45, - 0xd8, 0xea, 0xc9, 0x2d, 0xd6, 0x75, 0xc6, 0xf9, 0xda, 0xe4, 0xf1, 0x98, 0x47, 0x08, 0x0d, 0x69, - 0x48, 0x26, 0xf4, 0x2b, 0xc4, 0xbc, 0x61, 0xb4, 0x2b, 0xdd, 0x9a, 0xb3, 0x27, 0xad, 0x1e, 0xe4, - 0xd9, 0xf3, 0x79, 0xeb, 0xde, 0x55, 0x3f, 0x18, 0xce, 0x4b, 0x95, 0xc9, 0x02, 0x5f, 0xc7, 0x43, - 0xdb, 0x7f, 0x5c, 0x93, 0xe9, 0xa2, 0x2a, 0x1b, 0x11, 0x0e, 0x6a, 0x94, 0x35, 0x67, 0x6f, 0xb9, - 0x85, 0x43, 0x99, 0x3c, 0x9f, 0xb7, 0xee, 0x5f, 0x29, 0x24, 0xf9, 0x39, 0x23, 0x1e, 0xa8, 0x72, - 0x37, 0xa3, 0x72, 0xba, 0xb3, 0x85, 0x55, 0x3a, 0x59, 0x58, 0xa5, 0xd3, 0x85, 0x55, 0xfa, 0x96, - 0x5a, 0xc6, 0x2c, 0xb5, 0x8c, 0x93, 0xd4, 0x32, 0x4e, 0x53, 0xcb, 0x38, 0x4b, 0x2d, 0xe3, 0xfb, - 0x2f, 0xab, 0xf4, 0xb1, 0x3c, 0xed, 0xfd, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xd2, 0xc9, 0x63, 0x01, - 0xad, 0x05, 0x00, 0x00, -} diff --git a/pkg/project/apis/project/v1/generated.proto b/pkg/project/apis/project/v1/generated.proto index f19ff14cb7ca..5e92e342bd5d 100644 --- a/pkg/project/apis/project/v1/generated.proto +++ b/pkg/project/apis/project/v1/generated.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.project.apis.project.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,6 +13,15 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // Projects are the unit of isolation and collaboration in OpenShift. A project has one or more members, @@ -28,45 +38,45 @@ option go_package = "v1"; // to administrators, while end users should use the requestproject resource. message Project { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Spec defines the behavior of the Namespace. - optional ProjectSpec spec = 2; + optional ProjectSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status describes the current status of a Namespace - optional ProjectStatus status = 3; + optional ProjectStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // ProjectList is a list of Project objects. message ProjectList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of projects - repeated Project items = 2; + repeated Project items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ProjecRequest is the set of options necessary to fully qualify a project request message ProjectRequest { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // DisplayName is the display name to apply to a project - optional string displayName = 2; + optional string displayName = 2 [(gogoproto.customname) = "DisplayName", (gogoproto.nullable) = false]; // Description is the description to apply to a project - optional string description = 3; + optional string description = 3 [(gogoproto.customname) = "Description", (gogoproto.nullable) = false]; } // ProjectSpec describes the attributes on a Project message ProjectSpec { // Finalizers is an opaque list of values that must be empty to permanently remove object from storage - repeated string finalizers = 1; + repeated string finalizers = 1 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.FinalizerName", (gogoproto.customname) = "Finalizers"]; } // ProjectStatus is information about the current status of a Project message ProjectStatus { // Phase is the current lifecycle phase of the project - optional string phase = 1; + optional string phase = 1 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.NamespacePhase", (gogoproto.customname) = "Phase", (gogoproto.nullable) = false]; } diff --git a/pkg/quota/apis/quota/v1/generated.pb.go b/pkg/quota/apis/quota/v1/generated.pb.go deleted file mode 100644 index 4fd7b11c9918..000000000000 --- a/pkg/quota/apis/quota/v1/generated.pb.go +++ /dev/null @@ -1,1857 +0,0 @@ -// Code generated by protoc-gen-gogo. -// source: github.com/openshift/origin/pkg/quota/apis/quota/v1/generated.proto -// DO NOT EDIT! - -/* - Package v1 is a generated protocol buffer package. - - It is generated from these files: - github.com/openshift/origin/pkg/quota/apis/quota/v1/generated.proto - - It has these top-level messages: - AppliedClusterResourceQuota - AppliedClusterResourceQuotaList - ClusterResourceQuota - ClusterResourceQuotaList - ClusterResourceQuotaSelector - ClusterResourceQuotaSpec - ClusterResourceQuotaStatus - ResourceQuotaStatusByNamespace -*/ -package v1 - -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - -import strings "strings" -import reflect "reflect" - -import io "io" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *AppliedClusterResourceQuota) Reset() { *m = AppliedClusterResourceQuota{} } -func (*AppliedClusterResourceQuota) ProtoMessage() {} -func (*AppliedClusterResourceQuota) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{0} -} - -func (m *AppliedClusterResourceQuotaList) Reset() { *m = AppliedClusterResourceQuotaList{} } -func (*AppliedClusterResourceQuotaList) ProtoMessage() {} -func (*AppliedClusterResourceQuotaList) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{1} -} - -func (m *ClusterResourceQuota) Reset() { *m = ClusterResourceQuota{} } -func (*ClusterResourceQuota) ProtoMessage() {} -func (*ClusterResourceQuota) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } - -func (m *ClusterResourceQuotaList) Reset() { *m = ClusterResourceQuotaList{} } -func (*ClusterResourceQuotaList) ProtoMessage() {} -func (*ClusterResourceQuotaList) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{3} -} - -func (m *ClusterResourceQuotaSelector) Reset() { *m = ClusterResourceQuotaSelector{} } -func (*ClusterResourceQuotaSelector) ProtoMessage() {} -func (*ClusterResourceQuotaSelector) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{4} -} - -func (m *ClusterResourceQuotaSpec) Reset() { *m = ClusterResourceQuotaSpec{} } -func (*ClusterResourceQuotaSpec) ProtoMessage() {} -func (*ClusterResourceQuotaSpec) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{5} -} - -func (m *ClusterResourceQuotaStatus) Reset() { *m = ClusterResourceQuotaStatus{} } -func (*ClusterResourceQuotaStatus) ProtoMessage() {} -func (*ClusterResourceQuotaStatus) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{6} -} - -func (m *ResourceQuotaStatusByNamespace) Reset() { *m = ResourceQuotaStatusByNamespace{} } -func (*ResourceQuotaStatusByNamespace) ProtoMessage() {} -func (*ResourceQuotaStatusByNamespace) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{7} -} - -func init() { - proto.RegisterType((*AppliedClusterResourceQuota)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.quota.apis.quota.v1.AppliedClusterResourceQuota") - proto.RegisterType((*AppliedClusterResourceQuotaList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.quota.apis.quota.v1.AppliedClusterResourceQuotaList") - proto.RegisterType((*ClusterResourceQuota)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.quota.apis.quota.v1.ClusterResourceQuota") - proto.RegisterType((*ClusterResourceQuotaList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.quota.apis.quota.v1.ClusterResourceQuotaList") - proto.RegisterType((*ClusterResourceQuotaSelector)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.quota.apis.quota.v1.ClusterResourceQuotaSelector") - proto.RegisterType((*ClusterResourceQuotaSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.quota.apis.quota.v1.ClusterResourceQuotaSpec") - proto.RegisterType((*ClusterResourceQuotaStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.quota.apis.quota.v1.ClusterResourceQuotaStatus") - proto.RegisterType((*ResourceQuotaStatusByNamespace)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.quota.apis.quota.v1.ResourceQuotaStatusByNamespace") -} -func (m *AppliedClusterResourceQuota) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AppliedClusterResourceQuota) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n2, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n3, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - return i, nil -} - -func (m *AppliedClusterResourceQuotaList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AppliedClusterResourceQuotaList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n4, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ClusterResourceQuota) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterResourceQuota) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n5, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n6, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n7, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - return i, nil -} - -func (m *ClusterResourceQuotaList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterResourceQuotaList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n8, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ClusterResourceQuotaSelector) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterResourceQuotaSelector) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.LabelSelector != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LabelSelector.Size())) - n9, err := m.LabelSelector.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - } - if len(m.AnnotationSelector) > 0 { - keysForAnnotationSelector := make([]string, 0, len(m.AnnotationSelector)) - for k := range m.AnnotationSelector { - keysForAnnotationSelector = append(keysForAnnotationSelector, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotationSelector) - for _, k := range keysForAnnotationSelector { - dAtA[i] = 0x12 - i++ - v := m.AnnotationSelector[string(k)] - mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) - } - } - return i, nil -} - -func (m *ClusterResourceQuotaSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterResourceQuotaSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Selector.Size())) - n10, err := m.Selector.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Quota.Size())) - n11, err := m.Quota.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 - return i, nil -} - -func (m *ClusterResourceQuotaStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterResourceQuotaStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Total.Size())) - n12, err := m.Total.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n12 - if len(m.Namespaces) > 0 { - for _, msg := range m.Namespaces { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ResourceQuotaStatusByNamespace) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceQuotaStatusByNamespace) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i += copy(dAtA[i:], m.Namespace) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n13, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 - return i, nil -} - -func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - dAtA[offset+4] = uint8(v >> 32) - dAtA[offset+5] = uint8(v >> 40) - dAtA[offset+6] = uint8(v >> 48) - dAtA[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *AppliedClusterResourceQuota) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *AppliedClusterResourceQuotaList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ClusterResourceQuota) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ClusterResourceQuotaList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ClusterResourceQuotaSelector) Size() (n int) { - var l int - _ = l - if m.LabelSelector != nil { - l = m.LabelSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.AnnotationSelector) > 0 { - for k, v := range m.AnnotationSelector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *ClusterResourceQuotaSpec) Size() (n int) { - var l int - _ = l - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Quota.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ClusterResourceQuotaStatus) Size() (n int) { - var l int - _ = l - l = m.Total.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Namespaces) > 0 { - for _, e := range m.Namespaces { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ResourceQuotaStatusByNamespace) Size() (n int) { - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *AppliedClusterResourceQuota) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AppliedClusterResourceQuota{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ClusterResourceQuotaSpec", "ClusterResourceQuotaSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ClusterResourceQuotaStatus", "ClusterResourceQuotaStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *AppliedClusterResourceQuotaList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AppliedClusterResourceQuotaList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "AppliedClusterResourceQuota", "AppliedClusterResourceQuota", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterResourceQuota) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterResourceQuota{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ClusterResourceQuotaSpec", "ClusterResourceQuotaSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ClusterResourceQuotaStatus", "ClusterResourceQuotaStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterResourceQuotaList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterResourceQuotaList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ClusterResourceQuota", "ClusterResourceQuota", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterResourceQuotaSelector) String() string { - if this == nil { - return "nil" - } - keysForAnnotationSelector := make([]string, 0, len(this.AnnotationSelector)) - for k := range this.AnnotationSelector { - keysForAnnotationSelector = append(keysForAnnotationSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotationSelector) - mapStringForAnnotationSelector := "map[string]string{" - for _, k := range keysForAnnotationSelector { - mapStringForAnnotationSelector += fmt.Sprintf("%v: %v,", k, this.AnnotationSelector[k]) - } - mapStringForAnnotationSelector += "}" - s := strings.Join([]string{`&ClusterResourceQuotaSelector{`, - `LabelSelector:` + strings.Replace(fmt.Sprintf("%v", this.LabelSelector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`, - `AnnotationSelector:` + mapStringForAnnotationSelector + `,`, - `}`, - }, "") - return s -} -func (this *ClusterResourceQuotaSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterResourceQuotaSpec{`, - `Selector:` + strings.Replace(strings.Replace(this.Selector.String(), "ClusterResourceQuotaSelector", "ClusterResourceQuotaSelector", 1), `&`, ``, 1) + `,`, - `Quota:` + strings.Replace(strings.Replace(this.Quota.String(), "ResourceQuotaSpec", "k8s_io_kubernetes_pkg_api_v1.ResourceQuotaSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterResourceQuotaStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterResourceQuotaStatus{`, - `Total:` + strings.Replace(strings.Replace(this.Total.String(), "ResourceQuotaStatus", "k8s_io_kubernetes_pkg_api_v1.ResourceQuotaStatus", 1), `&`, ``, 1) + `,`, - `Namespaces:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Namespaces), "ResourceQuotaStatusByNamespace", "ResourceQuotaStatusByNamespace", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceQuotaStatusByNamespace) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceQuotaStatusByNamespace{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ResourceQuotaStatus", "k8s_io_kubernetes_pkg_api_v1.ResourceQuotaStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *AppliedClusterResourceQuota) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AppliedClusterResourceQuota: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AppliedClusterResourceQuota: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AppliedClusterResourceQuotaList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AppliedClusterResourceQuotaList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AppliedClusterResourceQuotaList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, AppliedClusterResourceQuota{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterResourceQuota) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterResourceQuota: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterResourceQuota: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterResourceQuotaList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterResourceQuotaList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterResourceQuotaList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ClusterResourceQuota{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterResourceQuotaSelector) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterResourceQuotaSelector: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterResourceQuotaSelector: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LabelSelector == nil { - m.LabelSelector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{} - } - if err := m.LabelSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AnnotationSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.AnnotationSelector == nil { - m.AnnotationSelector = make(map[string]string) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue := string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - m.AnnotationSelector[mapkey] = mapvalue - } else { - var mapvalue string - m.AnnotationSelector[mapkey] = mapvalue - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterResourceQuotaSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterResourceQuotaSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterResourceQuotaSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Quota", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Quota.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterResourceQuotaStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterResourceQuotaStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterResourceQuotaStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Total.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespaces = append(m.Namespaces, ResourceQuotaStatusByNamespace{}) - if err := m.Namespaces[len(m.Namespaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceQuotaStatusByNamespace) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceQuotaStatusByNamespace: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceQuotaStatusByNamespace: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/openshift/origin/pkg/quota/apis/quota/v1/generated.proto", fileDescriptorGenerated) -} - -var fileDescriptorGenerated = []byte{ - // 755 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0x31, 0x6f, 0xd3, 0x4c, - 0x18, 0x8e, 0xdd, 0xa6, 0x6a, 0xae, 0x5f, 0x3f, 0xb5, 0xa7, 0x0e, 0x51, 0xbe, 0x4f, 0x4e, 0x95, - 0xa9, 0x03, 0x9c, 0x49, 0x8b, 0x50, 0xc5, 0x80, 0x54, 0x57, 0x0c, 0x95, 0x28, 0xa5, 0x6e, 0x85, - 0x04, 0x42, 0x88, 0x8b, 0x7b, 0x4d, 0x8e, 0x38, 0x3e, 0xe3, 0x3b, 0x07, 0x65, 0x82, 0x8d, 0x95, - 0x9f, 0xc0, 0x0f, 0xe0, 0x87, 0x74, 0xec, 0xd8, 0xa9, 0x22, 0x66, 0x81, 0x91, 0x85, 0x11, 0x21, - 0x9f, 0xcf, 0x76, 0x4a, 0x92, 0x52, 0xa2, 0x20, 0x16, 0xb6, 0xbb, 0x8b, 0x9f, 0xe7, 0x79, 0xdf, - 0xe7, 0x7d, 0xee, 0x02, 0xb6, 0x9b, 0x54, 0xb4, 0xc2, 0x06, 0x72, 0x58, 0xc7, 0x64, 0x3e, 0xf1, - 0x78, 0x8b, 0x1e, 0x0b, 0x93, 0x05, 0xb4, 0x49, 0x3d, 0xd3, 0x6f, 0x37, 0xcd, 0x17, 0x21, 0x13, - 0xd8, 0xc4, 0x3e, 0xe5, 0x6a, 0xd9, 0xad, 0x9b, 0x4d, 0xe2, 0x91, 0x00, 0x0b, 0x72, 0x84, 0xfc, - 0x80, 0x09, 0x06, 0x37, 0x72, 0x12, 0x94, 0x91, 0xa0, 0x84, 0x04, 0xf9, 0xed, 0x26, 0x92, 0x48, - 0x14, 0x93, 0xa8, 0x65, 0xb7, 0x5e, 0xb9, 0x3e, 0xa0, 0xdc, 0x64, 0x4d, 0x66, 0x4a, 0xae, 0x46, - 0x78, 0x2c, 0x77, 0x72, 0x23, 0x57, 0x89, 0x46, 0xe5, 0x66, 0x7b, 0x93, 0x23, 0xca, 0xe2, 0x4a, - 0x3a, 0xd8, 0x69, 0x51, 0x8f, 0x04, 0x3d, 0x59, 0xa0, 0x2c, 0xad, 0x43, 0x46, 0x56, 0x56, 0x31, - 0xc7, 0xa1, 0x82, 0xd0, 0x13, 0xb4, 0x43, 0x86, 0x00, 0xb7, 0x7e, 0x06, 0xe0, 0x4e, 0x8b, 0x74, - 0xf0, 0x10, 0x6e, 0x63, 0x1c, 0x2e, 0x14, 0xd4, 0x35, 0xa9, 0x27, 0xb8, 0x08, 0x86, 0x40, 0xd7, - 0x14, 0xa8, 0x1d, 0x36, 0x48, 0xe0, 0x11, 0x41, 0x78, 0xda, 0xd1, 0x88, 0x5e, 0x6a, 0x9f, 0x75, - 0xf0, 0xdf, 0x96, 0xef, 0xbb, 0x94, 0x1c, 0x6d, 0xbb, 0x21, 0x17, 0x24, 0xb0, 0x09, 0x67, 0x61, - 0xe0, 0x90, 0xfd, 0xd8, 0x53, 0xf8, 0x0c, 0xcc, 0xc7, 0x36, 0x1c, 0x61, 0x81, 0xcb, 0xda, 0xaa, - 0xb6, 0xb6, 0xb0, 0x7e, 0x03, 0x25, 0x02, 0x68, 0xb0, 0x2a, 0x39, 0x10, 0x39, 0x8a, 0xf8, 0x6b, - 0xd4, 0xad, 0xa3, 0xbd, 0xc6, 0x73, 0xe2, 0x88, 0x5d, 0x22, 0xb0, 0x05, 0x4f, 0xce, 0xab, 0x85, - 0xe8, 0xbc, 0x0a, 0xf2, 0x33, 0x3b, 0x63, 0x85, 0x0c, 0xcc, 0x72, 0x9f, 0x38, 0x65, 0x5d, 0xb2, - 0xef, 0xa2, 0x09, 0xc6, 0x8e, 0x46, 0x95, 0x7e, 0xe0, 0x13, 0xc7, 0xfa, 0x47, 0x49, 0xcf, 0xc6, - 0x3b, 0x5b, 0x0a, 0xc1, 0x97, 0x60, 0x8e, 0x0b, 0x2c, 0x42, 0x5e, 0x9e, 0x91, 0x92, 0x7b, 0xd3, - 0x93, 0x94, 0xb4, 0xd6, 0xbf, 0x4a, 0x74, 0x2e, 0xd9, 0xdb, 0x4a, 0xae, 0xf6, 0x55, 0x03, 0xd5, - 0x4b, 0xbc, 0xbe, 0x47, 0xb9, 0x80, 0x4f, 0x86, 0xfc, 0x46, 0x57, 0xf3, 0x3b, 0x46, 0x4b, 0xb7, - 0x97, 0x94, 0xfa, 0x7c, 0x7a, 0x32, 0xe0, 0x75, 0x08, 0x8a, 0x54, 0x90, 0x0e, 0x2f, 0xeb, 0xab, - 0x33, 0x6b, 0x0b, 0xeb, 0x0f, 0x26, 0xea, 0xfc, 0x92, 0x16, 0xac, 0x45, 0x25, 0x5e, 0xdc, 0x89, - 0x65, 0xec, 0x44, 0xad, 0x16, 0xe9, 0x60, 0xe5, 0x6f, 0xba, 0x7e, 0x73, 0xba, 0x3e, 0x69, 0xa0, - 0xfc, 0x87, 0x62, 0xe5, 0x5d, 0x8c, 0xd5, 0xce, 0xd4, 0x5a, 0x1e, 0x93, 0xa7, 0xbe, 0x0e, 0xfe, - 0x1f, 0xe9, 0x10, 0x71, 0x89, 0x23, 0x58, 0x00, 0x9f, 0x82, 0x39, 0x17, 0x37, 0x88, 0xcb, 0x55, - 0xb3, 0x1b, 0x57, 0x6c, 0x36, 0xc6, 0xa4, 0x24, 0xd6, 0x72, 0x74, 0x5e, 0x5d, 0xbc, 0x70, 0x64, - 0x2b, 0x56, 0xf8, 0x4e, 0x03, 0x0b, 0xd8, 0xf3, 0x98, 0xc0, 0x82, 0x32, 0x2f, 0xed, 0xbb, 0x31, - 0xbd, 0x51, 0x2b, 0x41, 0xb4, 0x95, 0x8b, 0xdc, 0xf5, 0x44, 0xd0, 0xb3, 0x2a, 0xca, 0x10, 0x98, - 0xff, 0x92, 0x55, 0x37, 0x58, 0x52, 0xe5, 0x0e, 0x58, 0xfa, 0x11, 0x0c, 0x97, 0xc0, 0x4c, 0x9b, - 0xf4, 0xa4, 0x27, 0x25, 0x3b, 0x5e, 0xc2, 0x15, 0x50, 0xec, 0x62, 0x37, 0x24, 0xf2, 0x7e, 0x94, - 0xec, 0x64, 0x73, 0x5b, 0xdf, 0xd4, 0x6a, 0x5f, 0xc6, 0xc4, 0x29, 0x8e, 0x3a, 0x7c, 0x05, 0xe6, - 0xb9, 0x52, 0x55, 0x0e, 0xef, 0x4f, 0xbd, 0xf7, 0x3c, 0x71, 0x59, 0x83, 0x99, 0x28, 0x3c, 0x04, - 0x45, 0x49, 0xa2, 0xee, 0xb5, 0x99, 0xce, 0x37, 0xff, 0xd3, 0x4b, 0xa7, 0x1b, 0xcb, 0x0c, 0xdf, - 0xdc, 0x2c, 0x57, 0xf2, 0xc8, 0x4e, 0xc8, 0x6a, 0xdf, 0x34, 0x50, 0x19, 0x7f, 0xf3, 0xe0, 0x43, - 0x50, 0x14, 0x4c, 0x60, 0x57, 0xb5, 0x5c, 0xff, 0x15, 0xd1, 0xe4, 0xee, 0x66, 0xb2, 0x87, 0x31, - 0x8f, 0x9d, 0xd0, 0xc1, 0x37, 0x1a, 0x00, 0x1e, 0xee, 0x10, 0xee, 0x63, 0x87, 0xa4, 0x61, 0x3a, - 0x98, 0xc8, 0xd0, 0x51, 0xa2, 0xbd, 0xfb, 0x29, 0x77, 0xfe, 0x56, 0x66, 0x47, 0xdc, 0x1e, 0x90, - 0xae, 0xbd, 0xd7, 0x80, 0x71, 0x39, 0x05, 0x34, 0x41, 0x29, 0x03, 0x24, 0x49, 0xb2, 0x96, 0x15, - 0x6b, 0x29, 0xfb, 0xca, 0xce, 0xbf, 0x81, 0x8f, 0xb2, 0x07, 0x51, 0x9f, 0xd4, 0xb6, 0x31, 0x4f, - 0x9e, 0xb5, 0x76, 0xd2, 0x37, 0x0a, 0xa7, 0x7d, 0xa3, 0x70, 0xd6, 0x37, 0x0a, 0xaf, 0x23, 0x43, - 0x3b, 0x89, 0x0c, 0xed, 0x34, 0x32, 0xb4, 0xb3, 0xc8, 0xd0, 0x3e, 0x44, 0x86, 0xf6, 0xf6, 0xa3, - 0x51, 0x78, 0xac, 0x77, 0xeb, 0xdf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x7b, 0x00, 0xf6, 0xa2, 0x92, - 0x0a, 0x00, 0x00, -} diff --git a/pkg/quota/apis/quota/v1/generated.proto b/pkg/quota/apis/quota/v1/generated.proto index 1544c1cd6975..389807162e2b 100644 --- a/pkg/quota/apis/quota/v1/generated.proto +++ b/pkg/quota/apis/quota/v1/generated.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.quota.apis.quota.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,6 +13,15 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // AppliedClusterResourceQuota mirrors ClusterResourceQuota at a project scope, for projection @@ -19,44 +29,44 @@ option go_package = "v1"; // his project and their associated usage. message AppliedClusterResourceQuota { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Spec defines the desired quota - optional ClusterResourceQuotaSpec spec = 2; + optional ClusterResourceQuotaSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status defines the actual enforced quota and its current usage - optional ClusterResourceQuotaStatus status = 3; + optional ClusterResourceQuotaStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // AppliedClusterResourceQuotaList is a collection of AppliedClusterResourceQuotas message AppliedClusterResourceQuotaList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of AppliedClusterResourceQuota - repeated AppliedClusterResourceQuota items = 2; + repeated AppliedClusterResourceQuota items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ClusterResourceQuota mirrors ResourceQuota at a cluster scope. This object is easily convertible to // synthetic ResourceQuota object to allow quota evaluation re-use. message ClusterResourceQuota { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Spec defines the desired quota - optional ClusterResourceQuotaSpec spec = 2; + optional ClusterResourceQuotaSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // Status defines the actual enforced quota and its current usage - optional ClusterResourceQuotaStatus status = 3; + optional ClusterResourceQuotaStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // ClusterResourceQuotaList is a collection of ClusterResourceQuotas message ClusterResourceQuotaList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of ClusterResourceQuotas - repeated ClusterResourceQuota items = 2; + repeated ClusterResourceQuota items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ClusterResourceQuotaSelector is used to select projects. At least one of LabelSelector or AnnotationSelector @@ -64,10 +74,10 @@ message ClusterResourceQuotaList { // the project must match both restrictions. message ClusterResourceQuotaSelector { // LabelSelector is used to select projects by label. - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labels = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labels = 1 [(gogoproto.customname) = "LabelSelector"]; // AnnotationSelector is used to select projects by annotation. - map annotations = 2; + map annotations = 2 [(gogoproto.customname) = "AnnotationSelector", (gogoproto.nullable) = false]; } // ClusterResourceQuotaSpec defines the desired quota restrictions @@ -76,29 +86,29 @@ message ClusterResourceQuotaSpec { // It should only select active projects on the scale of dozens (though it can select // many more less active projects). These projects will contend on object creation through // this resource. - optional ClusterResourceQuotaSelector selector = 1; + optional ClusterResourceQuotaSelector selector = 1 [(gogoproto.customname) = "Selector", (gogoproto.nullable) = false]; // Quota defines the desired quota - optional k8s.io.kubernetes.pkg.api.v1.ResourceQuotaSpec quota = 2; + optional k8s.io.kubernetes.pkg.api.v1.ResourceQuotaSpec quota = 2 [(gogoproto.customname) = "Quota", (gogoproto.nullable) = false]; } // ClusterResourceQuotaStatus defines the actual enforced quota and its current usage message ClusterResourceQuotaStatus { // Total defines the actual enforced quota and its current usage across all projects - optional k8s.io.kubernetes.pkg.api.v1.ResourceQuotaStatus total = 1; + optional k8s.io.kubernetes.pkg.api.v1.ResourceQuotaStatus total = 1 [(gogoproto.customname) = "Total", (gogoproto.nullable) = false]; // Namespaces slices the usage by project. This division allows for quick resolution of // deletion reconciliation inside of a single project without requiring a recalculation // across all projects. This can be used to pull the deltas for a given project. - repeated ResourceQuotaStatusByNamespace namespaces = 2; + repeated ResourceQuotaStatusByNamespace namespaces = 2 [(gogoproto.customname) = "Namespaces", (gogoproto.nullable) = false]; } // ResourceQuotaStatusByNamespace gives status for a particular project message ResourceQuotaStatusByNamespace { // Namespace the project this status applies to - optional string namespace = 1; + optional string namespace = 1 [(gogoproto.customname) = "Namespace", (gogoproto.nullable) = false]; // Status indicates how many resources have been consumed by this project - optional k8s.io.kubernetes.pkg.api.v1.ResourceQuotaStatus status = 2; + optional k8s.io.kubernetes.pkg.api.v1.ResourceQuotaStatus status = 2 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } diff --git a/pkg/route/apis/route/v1/generated.pb.go b/pkg/route/apis/route/v1/generated.pb.go deleted file mode 100644 index 15c50b247b21..000000000000 --- a/pkg/route/apis/route/v1/generated.pb.go +++ /dev/null @@ -1,2539 +0,0 @@ -// Code generated by protoc-gen-gogo. -// source: github.com/openshift/origin/pkg/route/apis/route/v1/generated.proto -// DO NOT EDIT! - -/* - Package v1 is a generated protocol buffer package. - - It is generated from these files: - github.com/openshift/origin/pkg/route/apis/route/v1/generated.proto - - It has these top-level messages: - Route - RouteIngress - RouteIngressCondition - RouteList - RoutePort - RouteSpec - RouteStatus - RouteTargetReference - RouterShard - TLSConfig -*/ -package v1 - -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" - -import strings "strings" -import reflect "reflect" - -import io "io" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *Route) Reset() { *m = Route{} } -func (*Route) ProtoMessage() {} -func (*Route) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } - -func (m *RouteIngress) Reset() { *m = RouteIngress{} } -func (*RouteIngress) ProtoMessage() {} -func (*RouteIngress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } - -func (m *RouteIngressCondition) Reset() { *m = RouteIngressCondition{} } -func (*RouteIngressCondition) ProtoMessage() {} -func (*RouteIngressCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } - -func (m *RouteList) Reset() { *m = RouteList{} } -func (*RouteList) ProtoMessage() {} -func (*RouteList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } - -func (m *RoutePort) Reset() { *m = RoutePort{} } -func (*RoutePort) ProtoMessage() {} -func (*RoutePort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } - -func (m *RouteSpec) Reset() { *m = RouteSpec{} } -func (*RouteSpec) ProtoMessage() {} -func (*RouteSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } - -func (m *RouteStatus) Reset() { *m = RouteStatus{} } -func (*RouteStatus) ProtoMessage() {} -func (*RouteStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } - -func (m *RouteTargetReference) Reset() { *m = RouteTargetReference{} } -func (*RouteTargetReference) ProtoMessage() {} -func (*RouteTargetReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } - -func (m *RouterShard) Reset() { *m = RouterShard{} } -func (*RouterShard) ProtoMessage() {} -func (*RouterShard) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } - -func (m *TLSConfig) Reset() { *m = TLSConfig{} } -func (*TLSConfig) ProtoMessage() {} -func (*TLSConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } - -func init() { - proto.RegisterType((*Route)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.route.apis.route.v1.Route") - proto.RegisterType((*RouteIngress)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.route.apis.route.v1.RouteIngress") - proto.RegisterType((*RouteIngressCondition)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.route.apis.route.v1.RouteIngressCondition") - proto.RegisterType((*RouteList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.route.apis.route.v1.RouteList") - proto.RegisterType((*RoutePort)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.route.apis.route.v1.RoutePort") - proto.RegisterType((*RouteSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.route.apis.route.v1.RouteSpec") - proto.RegisterType((*RouteStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.route.apis.route.v1.RouteStatus") - proto.RegisterType((*RouteTargetReference)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.route.apis.route.v1.RouteTargetReference") - proto.RegisterType((*RouterShard)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.route.apis.route.v1.RouterShard") - proto.RegisterType((*TLSConfig)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.route.apis.route.v1.TLSConfig") -} -func (m *Route) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Route) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n2, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n3, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - return i, nil -} - -func (m *RouteIngress) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RouteIngress) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Host))) - i += copy(dAtA[i:], m.Host) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RouterName))) - i += copy(dAtA[i:], m.RouterName) - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.WildcardPolicy))) - i += copy(dAtA[i:], m.WildcardPolicy) - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RouterCanonicalHostname))) - i += copy(dAtA[i:], m.RouterCanonicalHostname) - return i, nil -} - -func (m *RouteIngressCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RouteIngressCondition) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i += copy(dAtA[i:], m.Status) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i += copy(dAtA[i:], m.Reason) - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) - if m.LastTransitionTime != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LastTransitionTime.Size())) - n4, err := m.LastTransitionTime.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - } - return i, nil -} - -func (m *RouteList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RouteList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n5, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *RoutePort) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoutePort) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.TargetPort.Size())) - n6, err := m.TargetPort.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - return i, nil -} - -func (m *RouteSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RouteSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Host))) - i += copy(dAtA[i:], m.Host) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i += copy(dAtA[i:], m.Path) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.To.Size())) - n7, err := m.To.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - if len(m.AlternateBackends) > 0 { - for _, msg := range m.AlternateBackends { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Port != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Port.Size())) - n8, err := m.Port.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 - } - if m.TLS != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.TLS.Size())) - n9, err := m.TLS.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - } - dAtA[i] = 0x3a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.WildcardPolicy))) - i += copy(dAtA[i:], m.WildcardPolicy) - return i, nil -} - -func (m *RouteStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RouteStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Ingress) > 0 { - for _, msg := range m.Ingress { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *RouteTargetReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RouteTargetReference) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i += copy(dAtA[i:], m.Kind) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - if m.Weight != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.Weight)) - } - return i, nil -} - -func (m *RouterShard) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RouterShard) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ShardName))) - i += copy(dAtA[i:], m.ShardName) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DNSSuffix))) - i += copy(dAtA[i:], m.DNSSuffix) - return i, nil -} - -func (m *TLSConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TLSConfig) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Termination))) - i += copy(dAtA[i:], m.Termination) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Certificate))) - i += copy(dAtA[i:], m.Certificate) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CACertificate))) - i += copy(dAtA[i:], m.CACertificate) - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DestinationCACertificate))) - i += copy(dAtA[i:], m.DestinationCACertificate) - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.InsecureEdgeTerminationPolicy))) - i += copy(dAtA[i:], m.InsecureEdgeTerminationPolicy) - return i, nil -} - -func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - dAtA[offset+4] = uint8(v >> 32) - dAtA[offset+5] = uint8(v >> 40) - dAtA[offset+6] = uint8(v >> 48) - dAtA[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *Route) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RouteIngress) Size() (n int) { - var l int - _ = l - l = len(m.Host) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.RouterName) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.WildcardPolicy) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.RouterCanonicalHostname) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RouteIngressCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - if m.LastTransitionTime != nil { - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RouteList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RoutePort) Size() (n int) { - var l int - _ = l - l = m.TargetPort.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RouteSpec) Size() (n int) { - var l int - _ = l - l = len(m.Host) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - l = m.To.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.AlternateBackends) > 0 { - for _, e := range m.AlternateBackends { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.Port != nil { - l = m.Port.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.TLS != nil { - l = m.TLS.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.WildcardPolicy) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RouteStatus) Size() (n int) { - var l int - _ = l - if len(m.Ingress) > 0 { - for _, e := range m.Ingress { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RouteTargetReference) Size() (n int) { - var l int - _ = l - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if m.Weight != nil { - n += 1 + sovGenerated(uint64(*m.Weight)) - } - return n -} - -func (m *RouterShard) Size() (n int) { - var l int - _ = l - l = len(m.ShardName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DNSSuffix) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *TLSConfig) Size() (n int) { - var l int - _ = l - l = len(m.Termination) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Certificate) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Key) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.CACertificate) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DestinationCACertificate) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.InsecureEdgeTerminationPolicy) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Route) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Route{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "RouteSpec", "RouteSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "RouteStatus", "RouteStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RouteIngress) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RouteIngress{`, - `Host:` + fmt.Sprintf("%v", this.Host) + `,`, - `RouterName:` + fmt.Sprintf("%v", this.RouterName) + `,`, - `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "RouteIngressCondition", "RouteIngressCondition", 1), `&`, ``, 1) + `,`, - `WildcardPolicy:` + fmt.Sprintf("%v", this.WildcardPolicy) + `,`, - `RouterCanonicalHostname:` + fmt.Sprintf("%v", this.RouterCanonicalHostname) + `,`, - `}`, - }, "") - return s -} -func (this *RouteIngressCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RouteIngressCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `LastTransitionTime:` + strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RouteList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RouteList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Route", "Route", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RoutePort) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RoutePort{`, - `TargetPort:` + strings.Replace(strings.Replace(this.TargetPort.String(), "IntOrString", "k8s_io_apimachinery_pkg_util_intstr.IntOrString", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RouteSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RouteSpec{`, - `Host:` + fmt.Sprintf("%v", this.Host) + `,`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `To:` + strings.Replace(strings.Replace(this.To.String(), "RouteTargetReference", "RouteTargetReference", 1), `&`, ``, 1) + `,`, - `AlternateBackends:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.AlternateBackends), "RouteTargetReference", "RouteTargetReference", 1), `&`, ``, 1) + `,`, - `Port:` + strings.Replace(fmt.Sprintf("%v", this.Port), "RoutePort", "RoutePort", 1) + `,`, - `TLS:` + strings.Replace(fmt.Sprintf("%v", this.TLS), "TLSConfig", "TLSConfig", 1) + `,`, - `WildcardPolicy:` + fmt.Sprintf("%v", this.WildcardPolicy) + `,`, - `}`, - }, "") - return s -} -func (this *RouteStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RouteStatus{`, - `Ingress:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ingress), "RouteIngress", "RouteIngress", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RouteTargetReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RouteTargetReference{`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Weight:` + valueToStringGenerated(this.Weight) + `,`, - `}`, - }, "") - return s -} -func (this *RouterShard) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RouterShard{`, - `ShardName:` + fmt.Sprintf("%v", this.ShardName) + `,`, - `DNSSuffix:` + fmt.Sprintf("%v", this.DNSSuffix) + `,`, - `}`, - }, "") - return s -} -func (this *TLSConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TLSConfig{`, - `Termination:` + fmt.Sprintf("%v", this.Termination) + `,`, - `Certificate:` + fmt.Sprintf("%v", this.Certificate) + `,`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `CACertificate:` + fmt.Sprintf("%v", this.CACertificate) + `,`, - `DestinationCACertificate:` + fmt.Sprintf("%v", this.DestinationCACertificate) + `,`, - `InsecureEdgeTerminationPolicy:` + fmt.Sprintf("%v", this.InsecureEdgeTerminationPolicy) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Route) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Route: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Route: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RouteIngress) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RouteIngress: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RouteIngress: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Host = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RouterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RouterName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, RouteIngressCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WildcardPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WildcardPolicy = WildcardPolicyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RouterCanonicalHostname", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RouterCanonicalHostname = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RouteIngressCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RouteIngressCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RouteIngressCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = RouteIngressConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_kubernetes_pkg_api_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastTransitionTime == nil { - m.LastTransitionTime = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{} - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RouteList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RouteList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RouteList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Route{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoutePort) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoutePort: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoutePort: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetPort", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.TargetPort.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RouteSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RouteSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RouteSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Host = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.To.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AlternateBackends", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AlternateBackends = append(m.AlternateBackends, RouteTargetReference{}) - if err := m.AlternateBackends[len(m.AlternateBackends)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Port == nil { - m.Port = &RoutePort{} - } - if err := m.Port.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TLS == nil { - m.TLS = &TLSConfig{} - } - if err := m.TLS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WildcardPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WildcardPolicy = WildcardPolicyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RouteStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RouteStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RouteStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ingress = append(m.Ingress, RouteIngress{}) - if err := m.Ingress[len(m.Ingress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RouteTargetReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RouteTargetReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RouteTargetReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Weight = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RouterShard) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RouterShard: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RouterShard: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ShardName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DNSSuffix", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DNSSuffix = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TLSConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TLSConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TLSConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Termination", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Termination = TLSTerminationType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Certificate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Certificate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CACertificate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CACertificate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DestinationCACertificate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DestinationCACertificate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InsecureEdgeTerminationPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InsecureEdgeTerminationPolicy = InsecureEdgeTerminationPolicyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/openshift/origin/pkg/route/apis/route/v1/generated.proto", fileDescriptorGenerated) -} - -var fileDescriptorGenerated = []byte{ - // 1175 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdd, 0x6e, 0x1b, 0x45, - 0x14, 0x8e, 0x7f, 0x13, 0x8f, 0x9b, 0x40, 0x06, 0x4a, 0xdd, 0x48, 0xb1, 0x83, 0x2f, 0x50, 0x8a, - 0xca, 0x9a, 0xa4, 0x80, 0x10, 0x88, 0x8a, 0xd8, 0x45, 0x22, 0x4d, 0xda, 0x46, 0x63, 0x8b, 0xaa, - 0x28, 0x12, 0x9d, 0xec, 0x8e, 0xd7, 0x83, 0xed, 0x19, 0x33, 0x33, 0x4e, 0xb1, 0x90, 0x2a, 0x1e, - 0xa1, 0x42, 0xe2, 0x51, 0x78, 0x87, 0x88, 0xab, 0x5e, 0x56, 0x08, 0x59, 0xc4, 0x3c, 0x03, 0x37, - 0xb9, 0x42, 0x33, 0x3b, 0xde, 0x5d, 0xc7, 0x4e, 0x1a, 0x25, 0xbd, 0xdb, 0x3d, 0x3f, 0xdf, 0x77, - 0xfe, 0xe6, 0x1c, 0x50, 0xf3, 0xa9, 0x6a, 0xf5, 0x0f, 0x1c, 0x97, 0x77, 0x2b, 0xbc, 0x47, 0x98, - 0x6c, 0xd1, 0xa6, 0xaa, 0x70, 0x41, 0x7d, 0xca, 0x2a, 0xbd, 0xb6, 0x5f, 0x11, 0xbc, 0xaf, 0x48, - 0x05, 0xf7, 0xa8, 0xb4, 0x9f, 0x87, 0x1b, 0x15, 0x9f, 0x30, 0x22, 0xb0, 0x22, 0x9e, 0xd3, 0x13, - 0x5c, 0x71, 0x78, 0x27, 0x02, 0x71, 0x42, 0x10, 0x27, 0x00, 0x71, 0x7a, 0x6d, 0xdf, 0x31, 0x9e, - 0x8e, 0x06, 0xb1, 0x9f, 0x87, 0x1b, 0x2b, 0x1f, 0xc5, 0x98, 0x7d, 0xee, 0xf3, 0x8a, 0xc1, 0x3a, - 0xe8, 0x37, 0xcd, 0x9f, 0xf9, 0x31, 0x5f, 0x01, 0xc7, 0xca, 0x27, 0xed, 0xcf, 0xa5, 0x43, 0xb9, - 0x8e, 0xa4, 0x8b, 0xdd, 0x16, 0x65, 0x44, 0x0c, 0x4c, 0x80, 0x26, 0xb4, 0x2e, 0x51, 0x78, 0x46, - 0x64, 0x2b, 0x95, 0xb3, 0xbc, 0x44, 0x9f, 0x29, 0xda, 0x25, 0x53, 0x0e, 0x9f, 0xbd, 0xce, 0x41, - 0xba, 0x2d, 0xd2, 0xc5, 0x53, 0x7e, 0x77, 0xce, 0xf2, 0xeb, 0x2b, 0xda, 0xa9, 0x50, 0xa6, 0xa4, - 0x12, 0x53, 0x4e, 0xb7, 0xad, 0x53, 0xbb, 0x7f, 0x40, 0x04, 0x23, 0x8a, 0xc8, 0x71, 0x46, 0x33, - 0x72, 0x29, 0xff, 0x91, 0x04, 0x19, 0xa4, 0xab, 0x07, 0x9f, 0x82, 0x05, 0x9d, 0xb0, 0x87, 0x15, - 0x2e, 0x24, 0xd6, 0x12, 0xeb, 0xf9, 0xcd, 0x8f, 0x9d, 0x00, 0xca, 0x89, 0xf3, 0x9b, 0xd2, 0x9b, - 0xa2, 0x6b, 0x6b, 0xe7, 0x70, 0xc3, 0x79, 0x74, 0xf0, 0x23, 0x71, 0xd5, 0x03, 0xa2, 0x70, 0x15, - 0x1e, 0x0d, 0x4b, 0x73, 0xa3, 0x61, 0x09, 0x44, 0x32, 0x14, 0xa2, 0xc2, 0xa7, 0x20, 0x2d, 0x7b, - 0xc4, 0x2d, 0x24, 0x0d, 0xfa, 0x5d, 0xe7, 0x12, 0x0d, 0x76, 0x4c, 0xac, 0xf5, 0x1e, 0x71, 0xab, - 0xd7, 0x2c, 0x57, 0x5a, 0xff, 0x21, 0x83, 0x0c, 0x5b, 0x20, 0x2b, 0x15, 0x56, 0x7d, 0x59, 0x48, - 0x19, 0x8e, 0xaf, 0xaf, 0xc0, 0x61, 0x70, 0xaa, 0x4b, 0x96, 0x25, 0x1b, 0xfc, 0x23, 0x8b, 0x5f, - 0xfe, 0x3d, 0x05, 0xae, 0x19, 0xbb, 0x6d, 0xe6, 0x0b, 0x22, 0x25, 0x5c, 0x03, 0xe9, 0x16, 0x97, - 0xca, 0x94, 0x2e, 0x17, 0x05, 0xf7, 0x2d, 0x97, 0x0a, 0x19, 0x0d, 0xdc, 0x04, 0xc0, 0x50, 0x88, - 0x87, 0xb8, 0x4b, 0x4c, 0x11, 0x72, 0x51, 0xc1, 0x50, 0xa8, 0x41, 0x31, 0x2b, 0xf8, 0x1c, 0x00, - 0x97, 0x33, 0x8f, 0x2a, 0xca, 0x99, 0x4e, 0x2a, 0xb5, 0x9e, 0xdf, 0xbc, 0x7f, 0xf9, 0xa4, 0x6c, - 0xb0, 0xb5, 0x31, 0x64, 0xc4, 0x1f, 0x8a, 0x24, 0x8a, 0x31, 0xc2, 0x06, 0x58, 0x7a, 0x46, 0x3b, - 0x9e, 0x8b, 0x85, 0xb7, 0xc7, 0x3b, 0xd4, 0x1d, 0x14, 0xd2, 0x26, 0xee, 0xdb, 0xd6, 0x6f, 0xe9, - 0xf1, 0x84, 0xf6, 0x64, 0x58, 0x82, 0x93, 0x92, 0xc6, 0xa0, 0x47, 0xd0, 0x29, 0x0c, 0xf8, 0x04, - 0xdc, 0x08, 0x72, 0xac, 0x61, 0xc6, 0x19, 0x75, 0x71, 0x47, 0x97, 0x89, 0xe9, 0xb2, 0x64, 0x0c, - 0x7c, 0xc9, 0xc2, 0xdf, 0x40, 0xb3, 0xcd, 0xd0, 0x59, 0xfe, 0xe5, 0xff, 0x92, 0xe0, 0xfa, 0xcc, - 0x54, 0xe1, 0x57, 0x20, 0xad, 0x06, 0x3d, 0x62, 0x1b, 0x74, 0x6b, 0xdc, 0x20, 0x1d, 0xe0, 0xc9, - 0xb0, 0x74, 0x73, 0xa6, 0x93, 0x89, 0xde, 0xb8, 0xc1, 0xef, 0xc2, 0xd1, 0x0a, 0x3a, 0x77, 0x77, - 0x72, 0x30, 0x4e, 0x86, 0xa5, 0x73, 0x1f, 0x9e, 0x13, 0x62, 0x4e, 0x0e, 0x12, 0xfc, 0x00, 0x64, - 0x05, 0xc1, 0x92, 0x33, 0x33, 0xb2, 0xb9, 0x68, 0xe0, 0x90, 0x91, 0x22, 0xab, 0x85, 0xb7, 0xc0, - 0x7c, 0x97, 0x48, 0x89, 0x7d, 0x62, 0x5b, 0xf0, 0x96, 0x35, 0x9c, 0x7f, 0x10, 0x88, 0xd1, 0x58, - 0x0f, 0x05, 0x80, 0x1d, 0x2c, 0x55, 0x43, 0x60, 0x26, 0x83, 0x34, 0xa8, 0xad, 0x6c, 0x7e, 0xf3, - 0xc3, 0x8b, 0xbd, 0x69, 0xed, 0x51, 0x7d, 0x6f, 0x34, 0x2c, 0xc1, 0xdd, 0x29, 0x24, 0x34, 0x03, - 0xbd, 0xfc, 0x67, 0x02, 0xe4, 0x4c, 0x09, 0x77, 0xa9, 0x54, 0x70, 0x7f, 0x6a, 0x97, 0x38, 0x17, - 0xe3, 0xd5, 0xde, 0x66, 0x93, 0xbc, 0x6d, 0xb3, 0x5b, 0x18, 0x4b, 0x62, 0x7b, 0xe4, 0x07, 0x90, - 0xa1, 0x8a, 0x74, 0x75, 0x27, 0xf4, 0x7b, 0xf8, 0xe2, 0xf2, 0xef, 0xa1, 0xba, 0x68, 0x69, 0x32, - 0xdb, 0x1a, 0x10, 0x05, 0xb8, 0xe5, 0x9f, 0x6c, 0x2e, 0x7b, 0x5c, 0x28, 0xe8, 0x01, 0xa0, 0xb0, - 0xf0, 0x89, 0xd2, 0x7f, 0xaf, 0xdd, 0x8c, 0x7a, 0x33, 0x3b, 0xc1, 0x66, 0x76, 0xb6, 0x99, 0x7a, - 0x24, 0xea, 0x4a, 0x50, 0xe6, 0x47, 0x0f, 0xad, 0x11, 0x62, 0xa1, 0x18, 0x6e, 0xf9, 0xaf, 0xb4, - 0xe5, 0xd4, 0xdb, 0xec, 0x02, 0xcb, 0x64, 0x0d, 0xa4, 0x7b, 0x58, 0xb5, 0xec, 0x30, 0x86, 0x16, - 0x7b, 0x58, 0xb5, 0x90, 0xd1, 0x40, 0x02, 0x92, 0x8a, 0xdb, 0x3d, 0xb8, 0x7d, 0xf9, 0x12, 0x05, - 0xf1, 0x22, 0xd2, 0x24, 0x82, 0x30, 0x97, 0x54, 0x81, 0xa5, 0x4a, 0x36, 0x38, 0x4a, 0x2a, 0x0e, - 0x7f, 0x4b, 0x80, 0x65, 0xdc, 0x51, 0x44, 0x30, 0xac, 0x48, 0x15, 0xbb, 0x6d, 0xc2, 0x3c, 0x59, - 0x48, 0x9b, 0xce, 0xbc, 0x41, 0xda, 0x9b, 0x96, 0x76, 0x79, 0xeb, 0x34, 0x17, 0x9a, 0xa6, 0x87, - 0xfb, 0x20, 0xdd, 0xd3, 0xdd, 0xca, 0x5c, 0xf5, 0xd2, 0xe8, 0xde, 0x54, 0x17, 0x4c, 0x65, 0x75, - 0xc7, 0x0c, 0x2a, 0x7c, 0x02, 0x52, 0xaa, 0x23, 0x0b, 0xd9, 0x2b, 0x80, 0x37, 0x76, 0xeb, 0x35, - 0xce, 0x9a, 0xd4, 0xaf, 0xce, 0x8f, 0x86, 0xa5, 0x54, 0x63, 0xb7, 0x8e, 0x34, 0xe6, 0x8c, 0x7d, - 0x3b, 0x7f, 0xf5, 0x7d, 0x5b, 0xfe, 0x05, 0xe4, 0x63, 0x37, 0x0d, 0x76, 0xc0, 0x3c, 0x0d, 0x16, - 0x5d, 0x21, 0x61, 0xfa, 0xb4, 0x75, 0xe5, 0x8b, 0x12, 0x6d, 0x23, 0x2b, 0x40, 0x63, 0x8a, 0xf2, - 0x73, 0xf0, 0xee, 0xac, 0x8e, 0xea, 0x09, 0x6e, 0x53, 0xe6, 0x9d, 0x9e, 0xf1, 0x1d, 0xca, 0x3c, - 0x64, 0x34, 0xda, 0x82, 0x45, 0xa7, 0x32, 0xb4, 0x30, 0x47, 0xd2, 0x68, 0x60, 0x19, 0x64, 0x9f, - 0x11, 0xea, 0xb7, 0x94, 0x99, 0xf3, 0x4c, 0x15, 0xe8, 0xc5, 0xf9, 0xd8, 0x48, 0x90, 0xd5, 0x94, - 0xb9, 0x4d, 0x5e, 0xd4, 0x5b, 0x58, 0x78, 0xb0, 0x02, 0x72, 0x52, 0x7f, 0x98, 0x23, 0x1c, 0x70, - 0x2f, 0x5b, 0xe4, 0x5c, 0x7d, 0xac, 0x40, 0x91, 0x8d, 0x76, 0xf0, 0x98, 0xac, 0xf7, 0x9b, 0x4d, - 0xfa, 0xb3, 0x0d, 0x25, 0x74, 0xb8, 0xf7, 0xb0, 0x1e, 0x28, 0x50, 0x64, 0x53, 0xfe, 0x3b, 0x05, - 0x72, 0x61, 0x7f, 0xe1, 0x0e, 0xc8, 0x2b, 0x22, 0xba, 0x94, 0x61, 0xbd, 0x2b, 0x4f, 0x5d, 0x9f, - 0x7c, 0x23, 0x52, 0xe9, 0x5e, 0x36, 0x76, 0xeb, 0x31, 0x89, 0xe9, 0x65, 0xdc, 0x1b, 0x7e, 0x0a, - 0xf2, 0x2e, 0x11, 0x8a, 0x36, 0xa9, 0x8b, 0xd5, 0xb8, 0x30, 0xef, 0x8c, 0xc1, 0x6a, 0x91, 0x0a, - 0xc5, 0xed, 0xe0, 0x2a, 0x48, 0xb5, 0xc9, 0xc0, 0x1e, 0x98, 0xbc, 0x35, 0x4f, 0xed, 0x90, 0x01, - 0xd2, 0x72, 0xf8, 0x25, 0x58, 0x74, 0x71, 0xcc, 0xd9, 0x1e, 0x98, 0xeb, 0xd6, 0x70, 0xb1, 0xb6, - 0x15, 0x47, 0x9e, 0xb4, 0x85, 0xfb, 0xa0, 0xe0, 0x11, 0xa9, 0x6c, 0x84, 0x13, 0xa6, 0xf6, 0x98, - 0xaf, 0x59, 0x9c, 0xc2, 0xbd, 0x33, 0xec, 0xd0, 0x99, 0x08, 0xf0, 0x45, 0x02, 0xac, 0x52, 0x26, - 0x89, 0xdb, 0x17, 0xe4, 0x1b, 0xcf, 0x27, 0xb1, 0xea, 0xd8, 0xf7, 0x91, 0x35, 0x1c, 0xf7, 0x2d, - 0xc7, 0xea, 0xf6, 0x79, 0xc6, 0x27, 0xc3, 0xd2, 0xfb, 0xe7, 0x1a, 0x98, 0x8a, 0x9f, 0x4f, 0x58, - 0x5d, 0x3f, 0x3a, 0x2e, 0xce, 0xbd, 0x3c, 0x2e, 0xce, 0xbd, 0x3a, 0x2e, 0xce, 0xfd, 0x3a, 0x2a, - 0x26, 0x8e, 0x46, 0xc5, 0xc4, 0xcb, 0x51, 0x31, 0xf1, 0x6a, 0x54, 0x4c, 0xfc, 0x33, 0x2a, 0x26, - 0x5e, 0xfc, 0x5b, 0x9c, 0xfb, 0x3e, 0x79, 0xb8, 0xf1, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x36, - 0xd2, 0x8d, 0x72, 0x07, 0x0d, 0x00, 0x00, -} diff --git a/pkg/route/apis/route/v1/generated.proto b/pkg/route/apis/route/v1/generated.proto index dc0a19f6d906..2188a80008c5 100644 --- a/pkg/route/apis/route/v1/generated.proto +++ b/pkg/route/apis/route/v1/generated.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.route.apis.route.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,6 +13,15 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // A route allows developers to expose services through an HTTP(S) aware load balancing and proxy @@ -33,32 +43,32 @@ option go_package = "v1"; // to indicate the route cannot be chosen. message Route { // Standard object metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // spec is the desired state of the route - optional RouteSpec spec = 2; + optional RouteSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // status is the current state of the route - optional RouteStatus status = 3; + optional RouteStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // RouteIngress holds information about the places where a route is exposed. message RouteIngress { // Host is the host string under which the route is exposed; this value is required - optional string host = 1; + optional string host = 1 [(gogoproto.customname) = "Host", (gogoproto.nullable) = false]; // Name is a name chosen by the router to identify itself; this value is required - optional string routerName = 2; + optional string routerName = 2 [(gogoproto.customname) = "RouterName", (gogoproto.nullable) = false]; // Conditions is the state of the route, may be empty. - repeated RouteIngressCondition conditions = 3; + repeated RouteIngressCondition conditions = 3 [(gogoproto.customname) = "Conditions", (gogoproto.nullable) = false]; // Wildcard policy is the wildcard policy that was allowed where this route is exposed. - optional string wildcardPolicy = 4; + optional string wildcardPolicy = 4 [(gogoproto.casttype) = "WildcardPolicyType", (gogoproto.customname) = "WildcardPolicy", (gogoproto.nullable) = false]; // CanonicalHostname is the external host name for the router that can be used as a CNAME // for the host requested for this route. This value is optional and may not be set in all cases. - optional string routerCanonicalHostname = 5; + optional string routerCanonicalHostname = 5 [(gogoproto.customname) = "RouterCanonicalHostname", (gogoproto.nullable) = false]; } // RouteIngressCondition contains details for the current condition of this route on a particular @@ -66,30 +76,30 @@ message RouteIngress { message RouteIngressCondition { // Type is the type of the condition. // Currently only Ready. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "RouteIngressConditionType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Status is the status of the condition. // Can be True, False, Unknown. - optional string status = 2; + optional string status = 2 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.ConditionStatus", (gogoproto.customname) = "Status", (gogoproto.nullable) = false]; // (brief) reason for the condition's last transition, and is usually a machine and human // readable constant - optional string reason = 3; + optional string reason = 3 [(gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // Human readable message indicating details about last transition. - optional string message = 4; + optional string message = 4 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; // RFC 3339 date and time when this condition last transitioned - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 5; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 5 [(gogoproto.customname) = "LastTransitionTime"]; } // RouteList is a collection of Routes. message RouteList { // Standard object metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // items is a list of routes - repeated Route items = 2; + repeated Route items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // RoutePort defines a port mapping from a router to an endpoint in the service endpoints. @@ -97,7 +107,7 @@ message RoutePort { // The target port on pods selected by the service this route points to. // If this is a string, it will be looked up as a named port in the target // endpoints port list. Required - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 1; + optional k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 1 [(gogoproto.customname) = "TargetPort", (gogoproto.nullable) = false]; } // RouteSpec describes the hostname or path the route exposes, any security information, @@ -120,32 +130,32 @@ message RouteSpec { // If not specified a route name will typically be automatically // chosen. // Must follow DNS952 subdomain conventions. - optional string host = 1; + optional string host = 1 [(gogoproto.customname) = "Host", (gogoproto.nullable) = false]; // Path that the router watches for, to route traffic for to the service. Optional - optional string path = 2; + optional string path = 2 [(gogoproto.customname) = "Path", (gogoproto.nullable) = false]; // to is an object the route should use as the primary backend. Only the Service kind // is allowed, and it will be defaulted to Service. If the weight field (0-256 default 1) // is set to zero, no traffic will be sent to this backend. - optional RouteTargetReference to = 3; + optional RouteTargetReference to = 3 [(gogoproto.customname) = "To", (gogoproto.nullable) = false]; // alternateBackends allows up to 3 additional backends to be assigned to the route. // Only the Service kind is allowed, and it will be defaulted to Service. // Use the weight field in RouteTargetReference object to specify relative preference. - repeated RouteTargetReference alternateBackends = 4; + repeated RouteTargetReference alternateBackends = 4 [(gogoproto.customname) = "AlternateBackends", (gogoproto.nullable) = false]; // If specified, the port to be used by the router. Most routers will use all // endpoints exposed by the service by default - set this value to instruct routers // which port to use. - optional RoutePort port = 5; + optional RoutePort port = 5 [(gogoproto.customname) = "Port"]; // The tls field provides the ability to configure certificates and termination for the route. - optional TLSConfig tls = 6; + optional TLSConfig tls = 6 [(gogoproto.customname) = "TLS"]; // Wildcard policy if any for the route. // Currently only 'Subdomain' or 'None' is allowed. - optional string wildcardPolicy = 7; + optional string wildcardPolicy = 7 [(gogoproto.casttype) = "WildcardPolicyType", (gogoproto.customname) = "WildcardPolicy", (gogoproto.nullable) = false]; } // RouteStatus provides relevant info about the status of a route, including which routers @@ -154,21 +164,21 @@ message RouteStatus { // ingress describes the places where the route may be exposed. The list of // ingress points may contain duplicate Host or RouterName values. Routes // are considered live once they are `Ready` - repeated RouteIngress ingress = 1; + repeated RouteIngress ingress = 1 [(gogoproto.customname) = "Ingress", (gogoproto.nullable) = false]; } // RouteTargetReference specifies the target that resolve into endpoints. Only the 'Service' // kind is allowed. Use 'weight' field to emphasize one over others. message RouteTargetReference { // The kind of target that the route is referring to. Currently, only 'Service' is allowed - optional string kind = 1; + optional string kind = 1 [(gogoproto.customname) = "Kind", (gogoproto.nullable) = false]; // name of the service/target that is being referred to. e.g. name of the service - optional string name = 2; + optional string name = 2 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // weight as an integer between 0 and 256, default 1, that specifies the target's relative weight // against other target reference objects. 0 suppresses requests to this backend. - optional int32 weight = 3; + optional int32 weight = 3 [(gogoproto.customname) = "Weight"]; } // RouterShard has information of a routing shard and is used to @@ -179,32 +189,32 @@ message RouteTargetReference { message RouterShard { // shardName uniquely identifies a router shard in the "set" of // routers used for routing traffic to the services. - optional string shardName = 1; + optional string shardName = 1 [(gogoproto.customname) = "ShardName", (gogoproto.nullable) = false]; // dnsSuffix for the shard ala: shard-1.v3.openshift.com - optional string dnsSuffix = 2; + optional string dnsSuffix = 2 [(gogoproto.customname) = "DNSSuffix", (gogoproto.nullable) = false]; } // TLSConfig defines config used to secure a route and provide termination message TLSConfig { // termination indicates termination type. - optional string termination = 1; + optional string termination = 1 [(gogoproto.casttype) = "TLSTerminationType", (gogoproto.customname) = "Termination", (gogoproto.nullable) = false]; // certificate provides certificate contents - optional string certificate = 2; + optional string certificate = 2 [(gogoproto.customname) = "Certificate", (gogoproto.nullable) = false]; // key provides key file contents - optional string key = 3; + optional string key = 3 [(gogoproto.customname) = "Key", (gogoproto.nullable) = false]; // caCertificate provides the cert authority certificate contents - optional string caCertificate = 4; + optional string caCertificate = 4 [(gogoproto.customname) = "CACertificate", (gogoproto.nullable) = false]; // destinationCACertificate provides the contents of the ca certificate of the final destination. When using reencrypt // termination this file should be provided in order to have routers use it for health checks on the secure connection. // If this field is not specified, the router may provide its own destination CA and perform hostname validation using // the short service name (service.namespace.svc), which allows infrastructure generated certificates to automatically // verify. - optional string destinationCACertificate = 5; + optional string destinationCACertificate = 5 [(gogoproto.customname) = "DestinationCACertificate", (gogoproto.nullable) = false]; // insecureEdgeTerminationPolicy indicates the desired behavior for insecure connections to a route. While // each router may make its own decisions on which ports to expose, this is normally port 80. @@ -212,6 +222,6 @@ message TLSConfig { // * Allow - traffic is sent to the server on the insecure port (default) // * Disable - no traffic is allowed on the insecure port. // * Redirect - clients are redirected to the secure port. - optional string insecureEdgeTerminationPolicy = 6; + optional string insecureEdgeTerminationPolicy = 6 [(gogoproto.casttype) = "InsecureEdgeTerminationPolicyType", (gogoproto.customname) = "InsecureEdgeTerminationPolicy", (gogoproto.nullable) = false]; } diff --git a/pkg/security/apis/security/v1/generated.pb.go b/pkg/security/apis/security/v1/generated.pb.go deleted file mode 100644 index 6c2eb35c7bb1..000000000000 --- a/pkg/security/apis/security/v1/generated.pb.go +++ /dev/null @@ -1,3839 +0,0 @@ -// Code generated by protoc-gen-gogo. -// source: github.com/openshift/origin/pkg/security/apis/security/v1/generated.proto -// DO NOT EDIT! - -/* - Package v1 is a generated protocol buffer package. - - It is generated from these files: - github.com/openshift/origin/pkg/security/apis/security/v1/generated.proto - - It has these top-level messages: - FSGroupStrategyOptions - IDRange - PodSecurityPolicyReview - PodSecurityPolicyReviewSpec - PodSecurityPolicyReviewStatus - PodSecurityPolicySelfSubjectReview - PodSecurityPolicySelfSubjectReviewSpec - PodSecurityPolicySubjectReview - PodSecurityPolicySubjectReviewSpec - PodSecurityPolicySubjectReviewStatus - RunAsUserStrategyOptions - SELinuxContextStrategyOptions - SecurityContextConstraints - SecurityContextConstraintsList - ServiceAccountPodSecurityPolicyReviewStatus - SupplementalGroupsStrategyOptions -*/ -package v1 - -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" - -import strings "strings" -import reflect "reflect" - -import io "io" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *FSGroupStrategyOptions) Reset() { *m = FSGroupStrategyOptions{} } -func (*FSGroupStrategyOptions) ProtoMessage() {} -func (*FSGroupStrategyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } - -func (m *IDRange) Reset() { *m = IDRange{} } -func (*IDRange) ProtoMessage() {} -func (*IDRange) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } - -func (m *PodSecurityPolicyReview) Reset() { *m = PodSecurityPolicyReview{} } -func (*PodSecurityPolicyReview) ProtoMessage() {} -func (*PodSecurityPolicyReview) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } - -func (m *PodSecurityPolicyReviewSpec) Reset() { *m = PodSecurityPolicyReviewSpec{} } -func (*PodSecurityPolicyReviewSpec) ProtoMessage() {} -func (*PodSecurityPolicyReviewSpec) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{3} -} - -func (m *PodSecurityPolicyReviewStatus) Reset() { *m = PodSecurityPolicyReviewStatus{} } -func (*PodSecurityPolicyReviewStatus) ProtoMessage() {} -func (*PodSecurityPolicyReviewStatus) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{4} -} - -func (m *PodSecurityPolicySelfSubjectReview) Reset() { *m = PodSecurityPolicySelfSubjectReview{} } -func (*PodSecurityPolicySelfSubjectReview) ProtoMessage() {} -func (*PodSecurityPolicySelfSubjectReview) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{5} -} - -func (m *PodSecurityPolicySelfSubjectReviewSpec) Reset() { - *m = PodSecurityPolicySelfSubjectReviewSpec{} -} -func (*PodSecurityPolicySelfSubjectReviewSpec) ProtoMessage() {} -func (*PodSecurityPolicySelfSubjectReviewSpec) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{6} -} - -func (m *PodSecurityPolicySubjectReview) Reset() { *m = PodSecurityPolicySubjectReview{} } -func (*PodSecurityPolicySubjectReview) ProtoMessage() {} -func (*PodSecurityPolicySubjectReview) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{7} -} - -func (m *PodSecurityPolicySubjectReviewSpec) Reset() { *m = PodSecurityPolicySubjectReviewSpec{} } -func (*PodSecurityPolicySubjectReviewSpec) ProtoMessage() {} -func (*PodSecurityPolicySubjectReviewSpec) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{8} -} - -func (m *PodSecurityPolicySubjectReviewStatus) Reset() { *m = PodSecurityPolicySubjectReviewStatus{} } -func (*PodSecurityPolicySubjectReviewStatus) ProtoMessage() {} -func (*PodSecurityPolicySubjectReviewStatus) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{9} -} - -func (m *RunAsUserStrategyOptions) Reset() { *m = RunAsUserStrategyOptions{} } -func (*RunAsUserStrategyOptions) ProtoMessage() {} -func (*RunAsUserStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{10} -} - -func (m *SELinuxContextStrategyOptions) Reset() { *m = SELinuxContextStrategyOptions{} } -func (*SELinuxContextStrategyOptions) ProtoMessage() {} -func (*SELinuxContextStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{11} -} - -func (m *SecurityContextConstraints) Reset() { *m = SecurityContextConstraints{} } -func (*SecurityContextConstraints) ProtoMessage() {} -func (*SecurityContextConstraints) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{12} -} - -func (m *SecurityContextConstraintsList) Reset() { *m = SecurityContextConstraintsList{} } -func (*SecurityContextConstraintsList) ProtoMessage() {} -func (*SecurityContextConstraintsList) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{13} -} - -func (m *ServiceAccountPodSecurityPolicyReviewStatus) Reset() { - *m = ServiceAccountPodSecurityPolicyReviewStatus{} -} -func (*ServiceAccountPodSecurityPolicyReviewStatus) ProtoMessage() {} -func (*ServiceAccountPodSecurityPolicyReviewStatus) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{14} -} - -func (m *SupplementalGroupsStrategyOptions) Reset() { *m = SupplementalGroupsStrategyOptions{} } -func (*SupplementalGroupsStrategyOptions) ProtoMessage() {} -func (*SupplementalGroupsStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{15} -} - -func init() { - proto.RegisterType((*FSGroupStrategyOptions)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.FSGroupStrategyOptions") - proto.RegisterType((*IDRange)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.IDRange") - proto.RegisterType((*PodSecurityPolicyReview)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.PodSecurityPolicyReview") - proto.RegisterType((*PodSecurityPolicyReviewSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.PodSecurityPolicyReviewSpec") - proto.RegisterType((*PodSecurityPolicyReviewStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.PodSecurityPolicyReviewStatus") - proto.RegisterType((*PodSecurityPolicySelfSubjectReview)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.PodSecurityPolicySelfSubjectReview") - proto.RegisterType((*PodSecurityPolicySelfSubjectReviewSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.PodSecurityPolicySelfSubjectReviewSpec") - proto.RegisterType((*PodSecurityPolicySubjectReview)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.PodSecurityPolicySubjectReview") - proto.RegisterType((*PodSecurityPolicySubjectReviewSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.PodSecurityPolicySubjectReviewSpec") - proto.RegisterType((*PodSecurityPolicySubjectReviewStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.PodSecurityPolicySubjectReviewStatus") - proto.RegisterType((*RunAsUserStrategyOptions)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.RunAsUserStrategyOptions") - proto.RegisterType((*SELinuxContextStrategyOptions)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.SELinuxContextStrategyOptions") - proto.RegisterType((*SecurityContextConstraints)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.SecurityContextConstraints") - proto.RegisterType((*SecurityContextConstraintsList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.SecurityContextConstraintsList") - proto.RegisterType((*ServiceAccountPodSecurityPolicyReviewStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.ServiceAccountPodSecurityPolicyReviewStatus") - proto.RegisterType((*SupplementalGroupsStrategyOptions)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1.SupplementalGroupsStrategyOptions") -} -func (m *FSGroupStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FSGroupStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - if len(m.Ranges) > 0 { - for _, msg := range m.Ranges { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *IDRange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IDRange) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0x8 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Min)) - dAtA[i] = 0x10 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Max)) - return i, nil -} - -func (m *PodSecurityPolicyReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityPolicyReview) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n1, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n2, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - return i, nil -} - -func (m *PodSecurityPolicyReviewSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityPolicyReviewSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Template.Size())) - n3, err := m.Template.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - if len(m.ServiceAccountNames) > 0 { - for _, s := range m.ServiceAccountNames { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *PodSecurityPolicyReviewStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityPolicyReviewStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.AllowedServiceAccounts) > 0 { - for _, msg := range m.AllowedServiceAccounts { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *PodSecurityPolicySelfSubjectReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityPolicySelfSubjectReview) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n4, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n5, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - return i, nil -} - -func (m *PodSecurityPolicySelfSubjectReviewSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityPolicySelfSubjectReviewSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Template.Size())) - n6, err := m.Template.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - return i, nil -} - -func (m *PodSecurityPolicySubjectReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityPolicySubjectReview) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n7, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n8, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 - return i, nil -} - -func (m *PodSecurityPolicySubjectReviewSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityPolicySubjectReviewSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Template.Size())) - n9, err := m.Template.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.User))) - i += copy(dAtA[i:], m.User) - if len(m.Groups) > 0 { - for _, s := range m.Groups { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *PodSecurityPolicySubjectReviewStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityPolicySubjectReviewStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.AllowedBy != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.AllowedBy.Size())) - n10, err := m.AllowedBy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 - } - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i += copy(dAtA[i:], m.Reason) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Template.Size())) - n11, err := m.Template.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 - return i, nil -} - -func (m *RunAsUserStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RunAsUserStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - if m.UID != nil { - dAtA[i] = 0x10 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.UID)) - } - if m.UIDRangeMin != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.UIDRangeMin)) - } - if m.UIDRangeMax != nil { - dAtA[i] = 0x20 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.UIDRangeMax)) - } - return i, nil -} - -func (m *SELinuxContextStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SELinuxContextStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - if m.SELinuxOptions != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.SELinuxOptions.Size())) - n12, err := m.SELinuxOptions.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n12 - } - return i, nil -} - -func (m *SecurityContextConstraints) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SecurityContextConstraints) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n13, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 - if m.Priority != nil { - dAtA[i] = 0x10 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(*m.Priority)) - } - dAtA[i] = 0x18 - i++ - if m.AllowPrivilegedContainer { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if len(m.DefaultAddCapabilities) > 0 { - for _, s := range m.DefaultAddCapabilities { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.RequiredDropCapabilities) > 0 { - for _, s := range m.RequiredDropCapabilities { - dAtA[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.AllowedCapabilities) > 0 { - for _, s := range m.AllowedCapabilities { - dAtA[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - dAtA[i] = 0x38 - i++ - if m.AllowHostDirVolumePlugin { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if len(m.Volumes) > 0 { - for _, s := range m.Volumes { - dAtA[i] = 0x42 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - dAtA[i] = 0x48 - i++ - if m.AllowHostNetwork { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x50 - i++ - if m.AllowHostPorts { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x58 - i++ - if m.AllowHostPID { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x60 - i++ - if m.AllowHostIPC { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x6a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.SELinuxContext.Size())) - n14, err := m.SELinuxContext.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n14 - dAtA[i] = 0x72 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.RunAsUser.Size())) - n15, err := m.RunAsUser.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n15 - dAtA[i] = 0x7a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.SupplementalGroups.Size())) - n16, err := m.SupplementalGroups.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n16 - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.FSGroup.Size())) - n17, err := m.FSGroup.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n17 - dAtA[i] = 0x88 - i++ - dAtA[i] = 0x1 - i++ - if m.ReadOnlyRootFilesystem { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - if len(m.Users) > 0 { - for _, s := range m.Users { - dAtA[i] = 0x92 - i++ - dAtA[i] = 0x1 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.Groups) > 0 { - for _, s := range m.Groups { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x1 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.SeccompProfiles) > 0 { - for _, s := range m.SeccompProfiles { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x1 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *SecurityContextConstraintsList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SecurityContextConstraintsList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n18, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n18 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ServiceAccountPodSecurityPolicyReviewStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceAccountPodSecurityPolicyReviewStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.PodSecurityPolicySubjectReviewStatus.Size())) - n19, err := m.PodSecurityPolicySubjectReviewStatus.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n19 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - return i, nil -} - -func (m *SupplementalGroupsStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SupplementalGroupsStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - if len(m.Ranges) > 0 { - for _, msg := range m.Ranges { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - dAtA[offset+4] = uint8(v >> 32) - dAtA[offset+5] = uint8(v >> 40) - dAtA[offset+6] = uint8(v >> 48) - dAtA[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *FSGroupStrategyOptions) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Ranges) > 0 { - for _, e := range m.Ranges { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *IDRange) Size() (n int) { - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Min)) - n += 1 + sovGenerated(uint64(m.Max)) - return n -} - -func (m *PodSecurityPolicyReview) Size() (n int) { - var l int - _ = l - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodSecurityPolicyReviewSpec) Size() (n int) { - var l int - _ = l - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.ServiceAccountNames) > 0 { - for _, s := range m.ServiceAccountNames { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodSecurityPolicyReviewStatus) Size() (n int) { - var l int - _ = l - if len(m.AllowedServiceAccounts) > 0 { - for _, e := range m.AllowedServiceAccounts { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodSecurityPolicySelfSubjectReview) Size() (n int) { - var l int - _ = l - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodSecurityPolicySelfSubjectReviewSpec) Size() (n int) { - var l int - _ = l - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodSecurityPolicySubjectReview) Size() (n int) { - var l int - _ = l - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodSecurityPolicySubjectReviewSpec) Size() (n int) { - var l int - _ = l - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.User) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodSecurityPolicySubjectReviewStatus) Size() (n int) { - var l int - _ = l - if m.AllowedBy != nil { - l = m.AllowedBy.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RunAsUserStrategyOptions) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.UID != nil { - n += 1 + sovGenerated(uint64(*m.UID)) - } - if m.UIDRangeMin != nil { - n += 1 + sovGenerated(uint64(*m.UIDRangeMin)) - } - if m.UIDRangeMax != nil { - n += 1 + sovGenerated(uint64(*m.UIDRangeMax)) - } - return n -} - -func (m *SELinuxContextStrategyOptions) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.SELinuxOptions != nil { - l = m.SELinuxOptions.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *SecurityContextConstraints) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Priority != nil { - n += 1 + sovGenerated(uint64(*m.Priority)) - } - n += 2 - if len(m.DefaultAddCapabilities) > 0 { - for _, s := range m.DefaultAddCapabilities { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.RequiredDropCapabilities) > 0 { - for _, s := range m.RequiredDropCapabilities { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.AllowedCapabilities) > 0 { - for _, s := range m.AllowedCapabilities { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 2 - if len(m.Volumes) > 0 { - for _, s := range m.Volumes { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 2 - n += 2 - n += 2 - n += 2 - l = m.SELinuxContext.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.RunAsUser.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.SupplementalGroups.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.FSGroup.Size() - n += 2 + l + sovGenerated(uint64(l)) - n += 3 - if len(m.Users) > 0 { - for _, s := range m.Users { - l = len(s) - n += 2 + l + sovGenerated(uint64(l)) - } - } - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 2 + l + sovGenerated(uint64(l)) - } - } - if len(m.SeccompProfiles) > 0 { - for _, s := range m.SeccompProfiles { - l = len(s) - n += 2 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *SecurityContextConstraintsList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ServiceAccountPodSecurityPolicyReviewStatus) Size() (n int) { - var l int - _ = l - l = m.PodSecurityPolicySubjectReviewStatus.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SupplementalGroupsStrategyOptions) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Ranges) > 0 { - for _, e := range m.Ranges { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *FSGroupStrategyOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&FSGroupStrategyOptions{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Ranges:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ranges), "IDRange", "IDRange", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *IDRange) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IDRange{`, - `Min:` + fmt.Sprintf("%v", this.Min) + `,`, - `Max:` + fmt.Sprintf("%v", this.Max) + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityPolicyReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodSecurityPolicyReview{`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSecurityPolicyReviewSpec", "PodSecurityPolicyReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodSecurityPolicyReviewStatus", "PodSecurityPolicyReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityPolicyReviewSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodSecurityPolicyReviewSpec{`, - `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `ServiceAccountNames:` + fmt.Sprintf("%v", this.ServiceAccountNames) + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityPolicyReviewStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodSecurityPolicyReviewStatus{`, - `AllowedServiceAccounts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.AllowedServiceAccounts), "ServiceAccountPodSecurityPolicyReviewStatus", "ServiceAccountPodSecurityPolicyReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityPolicySelfSubjectReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodSecurityPolicySelfSubjectReview{`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSecurityPolicySelfSubjectReviewSpec", "PodSecurityPolicySelfSubjectReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodSecurityPolicySubjectReviewStatus", "PodSecurityPolicySubjectReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityPolicySelfSubjectReviewSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodSecurityPolicySelfSubjectReviewSpec{`, - `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityPolicySubjectReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodSecurityPolicySubjectReview{`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSecurityPolicySubjectReviewSpec", "PodSecurityPolicySubjectReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodSecurityPolicySubjectReviewStatus", "PodSecurityPolicySubjectReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityPolicySubjectReviewSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodSecurityPolicySubjectReviewSpec{`, - `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `User:` + fmt.Sprintf("%v", this.User) + `,`, - `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityPolicySubjectReviewStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodSecurityPolicySubjectReviewStatus{`, - `AllowedBy:` + strings.Replace(fmt.Sprintf("%v", this.AllowedBy), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RunAsUserStrategyOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RunAsUserStrategyOptions{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `UID:` + valueToStringGenerated(this.UID) + `,`, - `UIDRangeMin:` + valueToStringGenerated(this.UIDRangeMin) + `,`, - `UIDRangeMax:` + valueToStringGenerated(this.UIDRangeMax) + `,`, - `}`, - }, "") - return s -} -func (this *SELinuxContextStrategyOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SELinuxContextStrategyOptions{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `SELinuxOptions:` + strings.Replace(fmt.Sprintf("%v", this.SELinuxOptions), "SELinuxOptions", "k8s_io_kubernetes_pkg_api_v1.SELinuxOptions", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SecurityContextConstraints) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SecurityContextConstraints{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Priority:` + valueToStringGenerated(this.Priority) + `,`, - `AllowPrivilegedContainer:` + fmt.Sprintf("%v", this.AllowPrivilegedContainer) + `,`, - `DefaultAddCapabilities:` + fmt.Sprintf("%v", this.DefaultAddCapabilities) + `,`, - `RequiredDropCapabilities:` + fmt.Sprintf("%v", this.RequiredDropCapabilities) + `,`, - `AllowedCapabilities:` + fmt.Sprintf("%v", this.AllowedCapabilities) + `,`, - `AllowHostDirVolumePlugin:` + fmt.Sprintf("%v", this.AllowHostDirVolumePlugin) + `,`, - `Volumes:` + fmt.Sprintf("%v", this.Volumes) + `,`, - `AllowHostNetwork:` + fmt.Sprintf("%v", this.AllowHostNetwork) + `,`, - `AllowHostPorts:` + fmt.Sprintf("%v", this.AllowHostPorts) + `,`, - `AllowHostPID:` + fmt.Sprintf("%v", this.AllowHostPID) + `,`, - `AllowHostIPC:` + fmt.Sprintf("%v", this.AllowHostIPC) + `,`, - `SELinuxContext:` + strings.Replace(strings.Replace(this.SELinuxContext.String(), "SELinuxContextStrategyOptions", "SELinuxContextStrategyOptions", 1), `&`, ``, 1) + `,`, - `RunAsUser:` + strings.Replace(strings.Replace(this.RunAsUser.String(), "RunAsUserStrategyOptions", "RunAsUserStrategyOptions", 1), `&`, ``, 1) + `,`, - `SupplementalGroups:` + strings.Replace(strings.Replace(this.SupplementalGroups.String(), "SupplementalGroupsStrategyOptions", "SupplementalGroupsStrategyOptions", 1), `&`, ``, 1) + `,`, - `FSGroup:` + strings.Replace(strings.Replace(this.FSGroup.String(), "FSGroupStrategyOptions", "FSGroupStrategyOptions", 1), `&`, ``, 1) + `,`, - `ReadOnlyRootFilesystem:` + fmt.Sprintf("%v", this.ReadOnlyRootFilesystem) + `,`, - `Users:` + fmt.Sprintf("%v", this.Users) + `,`, - `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, - `SeccompProfiles:` + fmt.Sprintf("%v", this.SeccompProfiles) + `,`, - `}`, - }, "") - return s -} -func (this *SecurityContextConstraintsList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SecurityContextConstraintsList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "SecurityContextConstraints", "SecurityContextConstraints", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceAccountPodSecurityPolicyReviewStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServiceAccountPodSecurityPolicyReviewStatus{`, - `PodSecurityPolicySubjectReviewStatus:` + strings.Replace(strings.Replace(this.PodSecurityPolicySubjectReviewStatus.String(), "PodSecurityPolicySubjectReviewStatus", "PodSecurityPolicySubjectReviewStatus", 1), `&`, ``, 1) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *SupplementalGroupsStrategyOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SupplementalGroupsStrategyOptions{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Ranges:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ranges), "IDRange", "IDRange", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *FSGroupStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FSGroupStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FSGroupStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = FSGroupStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ranges = append(m.Ranges, IDRange{}) - if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IDRange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IDRange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IDRange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType) - } - m.Min = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Min |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType) - } - m.Max = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Max |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityPolicyReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityPolicyReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityPolicyReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityPolicyReviewSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityPolicyReviewSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityPolicyReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountNames", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceAccountNames = append(m.ServiceAccountNames, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityPolicyReviewStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityPolicyReviewStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityPolicyReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedServiceAccounts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedServiceAccounts = append(m.AllowedServiceAccounts, ServiceAccountPodSecurityPolicyReviewStatus{}) - if err := m.AllowedServiceAccounts[len(m.AllowedServiceAccounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityPolicySelfSubjectReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityPolicySelfSubjectReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityPolicySelfSubjectReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityPolicySelfSubjectReviewSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityPolicySelfSubjectReviewSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityPolicySelfSubjectReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityPolicySubjectReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityPolicySubjectReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityPolicySubjectReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityPolicySubjectReviewSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityPolicySubjectReviewSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityPolicySubjectReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityPolicySubjectReviewStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityPolicySubjectReviewStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityPolicySubjectReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedBy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AllowedBy == nil { - m.AllowedBy = &k8s_io_kubernetes_pkg_api_v1.ObjectReference{} - } - if err := m.AllowedBy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RunAsUserStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RunAsUserStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RunAsUserStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = RunAsUserStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.UID = &v - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UIDRangeMin", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.UIDRangeMin = &v - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UIDRangeMax", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.UIDRangeMax = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SELinuxContextStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SELinuxContextStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SELinuxContextStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = SELinuxContextStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SELinuxOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SELinuxOptions == nil { - m.SELinuxOptions = &k8s_io_kubernetes_pkg_api_v1.SELinuxOptions{} - } - if err := m.SELinuxOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SecurityContextConstraints) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SecurityContextConstraints: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SecurityContextConstraints: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Priority = &v - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowPrivilegedContainer", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowPrivilegedContainer = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultAddCapabilities", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DefaultAddCapabilities = append(m.DefaultAddCapabilities, k8s_io_kubernetes_pkg_api_v1.Capability(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequiredDropCapabilities", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequiredDropCapabilities = append(m.RequiredDropCapabilities, k8s_io_kubernetes_pkg_api_v1.Capability(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedCapabilities", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedCapabilities = append(m.AllowedCapabilities, k8s_io_kubernetes_pkg_api_v1.Capability(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowHostDirVolumePlugin", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowHostDirVolumePlugin = bool(v != 0) - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Volumes = append(m.Volumes, FSType(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowHostNetwork", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowHostNetwork = bool(v != 0) - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowHostPorts", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowHostPorts = bool(v != 0) - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowHostPID", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowHostPID = bool(v != 0) - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowHostIPC", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowHostIPC = bool(v != 0) - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SELinuxContext", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.SELinuxContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunAsUser", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RunAsUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SupplementalGroups", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.SupplementalGroups.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSGroup", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.FSGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnlyRootFilesystem", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnlyRootFilesystem = bool(v != 0) - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Users = append(m.Users, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SeccompProfiles", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SeccompProfiles = append(m.SeccompProfiles, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SecurityContextConstraintsList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SecurityContextConstraintsList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SecurityContextConstraintsList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, SecurityContextConstraints{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceAccountPodSecurityPolicyReviewStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceAccountPodSecurityPolicyReviewStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceAccountPodSecurityPolicyReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodSecurityPolicySubjectReviewStatus", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.PodSecurityPolicySubjectReviewStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SupplementalGroupsStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SupplementalGroupsStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SupplementalGroupsStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = SupplementalGroupsStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ranges = append(m.Ranges, IDRange{}) - if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/openshift/origin/pkg/security/apis/security/v1/generated.proto", fileDescriptorGenerated) -} - -var fileDescriptorGenerated = []byte{ - // 1573 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0xda, 0xf9, 0xf2, 0x24, 0x4d, 0xd2, 0x49, 0x9b, 0x2e, 0x41, 0xb5, 0x83, 0x29, 0x25, - 0x82, 0x76, 0x4d, 0x0a, 0x82, 0xf6, 0x40, 0x25, 0x6f, 0xd2, 0x16, 0x4b, 0xfd, 0x30, 0xe3, 0xa6, - 0x42, 0xa5, 0x08, 0x26, 0xf6, 0xd8, 0x99, 0x66, 0xbf, 0xd8, 0x99, 0x4d, 0x63, 0x04, 0xa2, 0x12, - 0xa0, 0x5e, 0x39, 0x21, 0xfe, 0x04, 0x24, 0x4e, 0x08, 0xae, 0x70, 0x43, 0x94, 0x5b, 0x25, 0x24, - 0xd4, 0x93, 0xd5, 0x98, 0xff, 0xa2, 0x27, 0x34, 0xe3, 0xf1, 0xc7, 0xae, 0xbd, 0x6e, 0x4a, 0x1a, - 0xe0, 0xe6, 0x99, 0xf7, 0xde, 0xef, 0xfd, 0xde, 0x9b, 0x37, 0xfb, 0xde, 0x18, 0x14, 0x6a, 0x94, - 0x6f, 0x06, 0x1b, 0x46, 0xd9, 0xb5, 0x73, 0xae, 0x47, 0x1c, 0xb6, 0x49, 0xab, 0x3c, 0xe7, 0xfa, - 0xb4, 0x46, 0x9d, 0x9c, 0xb7, 0x55, 0xcb, 0x31, 0x52, 0x0e, 0x7c, 0xca, 0xeb, 0x39, 0xec, 0x51, - 0xd6, 0x5d, 0x6d, 0xaf, 0xe4, 0x6a, 0xc4, 0x21, 0x3e, 0xe6, 0xa4, 0x62, 0x78, 0xbe, 0xcb, 0x5d, - 0x78, 0xae, 0x0b, 0x65, 0x74, 0xa0, 0x8c, 0x16, 0x94, 0xe1, 0x6d, 0xd5, 0x8c, 0xb6, 0xb1, 0x21, - 0xa0, 0xba, 0xab, 0xed, 0x95, 0xc5, 0xd3, 0x3d, 0x2c, 0x6a, 0x6e, 0xcd, 0xcd, 0x49, 0xc4, 0x8d, - 0xa0, 0x2a, 0x57, 0x72, 0x21, 0x7f, 0xb5, 0x3c, 0x2d, 0xbe, 0xb1, 0x75, 0x96, 0x19, 0xd4, 0x15, - 0x94, 0x6c, 0x5c, 0xde, 0xa4, 0x0e, 0xf1, 0xeb, 0x92, 0xac, 0xe4, 0x68, 0x13, 0x8e, 0x07, 0xf0, - 0x5b, 0xcc, 0xc5, 0x59, 0xf9, 0x81, 0xc3, 0xa9, 0x4d, 0xfa, 0x0c, 0xde, 0x7c, 0x92, 0x01, 0x2b, - 0x6f, 0x12, 0x1b, 0xf7, 0xd9, 0xbd, 0x1e, 0x67, 0x17, 0x70, 0x6a, 0xe5, 0xa8, 0xc3, 0x19, 0xf7, - 0xfb, 0x8c, 0x4e, 0x29, 0xa3, 0xad, 0x60, 0x83, 0xf8, 0x0e, 0xe1, 0x84, 0xb5, 0x23, 0x1a, 0x10, - 0x4b, 0xf6, 0x67, 0x0d, 0x2c, 0x5c, 0x2c, 0x5d, 0xf2, 0xdd, 0xc0, 0x2b, 0x71, 0x21, 0xa8, 0xd5, - 0xaf, 0x79, 0x9c, 0xba, 0x0e, 0x83, 0x6f, 0x81, 0x51, 0x5e, 0xf7, 0x88, 0xae, 0x2d, 0x69, 0xcb, - 0x29, 0xf3, 0xc5, 0xfb, 0x8d, 0xcc, 0x48, 0xb3, 0x91, 0x19, 0xbd, 0x5e, 0xf7, 0xc8, 0xe3, 0x46, - 0x66, 0x3e, 0x62, 0x25, 0xb6, 0x91, 0x34, 0x80, 0xb7, 0xc1, 0xb8, 0x8f, 0x9d, 0x1a, 0x61, 0x7a, - 0x62, 0x29, 0xb9, 0x3c, 0x75, 0xc6, 0x34, 0xfe, 0xf1, 0x81, 0x1a, 0x85, 0x35, 0x24, 0xa0, 0xcc, - 0x19, 0xe5, 0x7e, 0x5c, 0x2e, 0x19, 0x52, 0x1e, 0xb2, 0x97, 0xc0, 0x84, 0x52, 0x81, 0xc7, 0x41, - 0xd2, 0xa6, 0x8e, 0xa4, 0x9b, 0x34, 0xa7, 0x94, 0x7e, 0xf2, 0x0a, 0x75, 0x90, 0xd8, 0x97, 0x62, - 0xbc, 0xa3, 0x27, 0x22, 0x62, 0xbc, 0x83, 0xc4, 0x7e, 0xf6, 0x9b, 0x04, 0x38, 0x56, 0x74, 0x2b, - 0x25, 0xe5, 0xbb, 0xe8, 0x5a, 0xb4, 0x5c, 0x47, 0x64, 0x9b, 0x92, 0x3b, 0x70, 0x07, 0x8c, 0x32, - 0x8f, 0x94, 0x25, 0xf4, 0xd4, 0x99, 0x1b, 0xfb, 0x08, 0x27, 0xc6, 0x43, 0xc9, 0x23, 0x65, 0x73, - 0xba, 0x9d, 0x61, 0xb1, 0x42, 0xd2, 0x23, 0xbc, 0xab, 0x81, 0x71, 0xc6, 0x31, 0x0f, 0x98, 0x24, - 0x3e, 0x75, 0xe6, 0xbd, 0x03, 0x70, 0x2e, 0xf1, 0xbb, 0x19, 0x6e, 0xad, 0x91, 0xf2, 0x9b, 0xfd, - 0x55, 0x03, 0xcf, 0x0f, 0xa1, 0x0d, 0xdf, 0x07, 0x93, 0x9c, 0xd8, 0x9e, 0x85, 0x39, 0x51, 0x09, - 0x3a, 0x6d, 0xb4, 0x4a, 0xd0, 0xe8, 0x96, 0xa0, 0x64, 0x86, 0x3d, 0xaa, 0x68, 0x5c, 0x57, 0x06, - 0x32, 0xee, 0x39, 0xe5, 0x78, 0xb2, 0xbd, 0x8b, 0x3a, 0x80, 0xb0, 0x00, 0xe6, 0x19, 0xf1, 0xb7, - 0x69, 0x99, 0xe4, 0xcb, 0x65, 0x37, 0x70, 0xf8, 0x55, 0x6c, 0xab, 0xba, 0x4a, 0x99, 0xc7, 0x9a, - 0x8d, 0xcc, 0x7c, 0xa9, 0x5f, 0x8c, 0x06, 0xd9, 0x64, 0x1f, 0x69, 0xe0, 0xf8, 0xd0, 0x0c, 0xc0, - 0x5f, 0x34, 0xb0, 0x80, 0x2d, 0xcb, 0xbd, 0x43, 0x2a, 0x61, 0x54, 0xa6, 0x6b, 0xb2, 0x90, 0xab, - 0xfb, 0x48, 0x7e, 0x18, 0x71, 0xf8, 0x51, 0xa4, 0x55, 0x46, 0x16, 0xf2, 0x03, 0xd9, 0xa0, 0x18, - 0x96, 0xd9, 0x9f, 0x12, 0x20, 0xdb, 0x87, 0x5c, 0x22, 0x56, 0xb5, 0x14, 0x6c, 0xdc, 0x26, 0x65, - 0xae, 0xca, 0xf9, 0x0b, 0x2d, 0x54, 0xcf, 0xf8, 0x59, 0x96, 0x54, 0x9f, 0xb7, 0xd8, 0xd2, 0xbe, - 0x17, 0x2d, 0xed, 0x0f, 0x9f, 0x29, 0x8f, 0x10, 0x87, 0xe1, 0x15, 0xfe, 0x95, 0x06, 0x4e, 0xee, - 0x2d, 0x90, 0x03, 0x2d, 0xf6, 0xec, 0xf7, 0x09, 0x90, 0x1e, 0x1e, 0x08, 0xfc, 0x3c, 0x74, 0x72, - 0x1f, 0x1c, 0x5c, 0xc6, 0xfe, 0xff, 0xa7, 0xf6, 0x9b, 0x36, 0xa8, 0xd8, 0xff, 0xd5, 0x13, 0x83, - 0x4b, 0x60, 0x34, 0x60, 0xc4, 0x97, 0xa9, 0x48, 0x75, 0xf3, 0xb5, 0xce, 0x88, 0x8f, 0xa4, 0x04, - 0x66, 0xc1, 0x78, 0x4d, 0xb4, 0x49, 0xa6, 0x27, 0xe5, 0x37, 0x0b, 0x88, 0x48, 0x64, 0xe3, 0x64, - 0x48, 0x49, 0xb2, 0xf7, 0x12, 0xe0, 0xc4, 0x5e, 0x52, 0x01, 0x6f, 0x82, 0x94, 0xba, 0xf9, 0x66, - 0x7d, 0x6f, 0xc1, 0x5c, 0x53, 0x20, 0x55, 0xe2, 0x13, 0xa7, 0x4c, 0xcc, 0x43, 0xcd, 0x46, 0x26, - 0x95, 0x6f, 0x63, 0xa0, 0x2e, 0x1c, 0x3c, 0x09, 0xc6, 0x7d, 0x82, 0x99, 0xeb, 0xa8, 0x60, 0xba, - 0x0d, 0x57, 0xee, 0x22, 0x25, 0x0d, 0xe5, 0x33, 0xf9, 0xac, 0x6f, 0xc0, 0x9f, 0x1a, 0xd0, 0x51, - 0xe0, 0xe4, 0x99, 0xc8, 0x60, 0x74, 0x1e, 0x39, 0x17, 0x9a, 0x47, 0x5e, 0x8a, 0xcc, 0x23, 0x47, - 0xfb, 0xec, 0x7a, 0x26, 0x92, 0xe7, 0x40, 0x32, 0xa0, 0x15, 0xd5, 0xfb, 0x27, 0x44, 0xdf, 0x5f, - 0x2f, 0xac, 0x21, 0xb1, 0x07, 0x57, 0xc0, 0x54, 0x40, 0x2b, 0x72, 0x82, 0xb8, 0x42, 0x1d, 0x19, - 0x52, 0xd2, 0x9c, 0x6d, 0x36, 0x32, 0x53, 0xeb, 0x6a, 0xb0, 0x10, 0x13, 0x44, 0xaf, 0x4e, 0xc8, - 0x04, 0xef, 0xe8, 0xa3, 0x03, 0x4c, 0xf0, 0x0e, 0xea, 0xd5, 0xc9, 0xfe, 0xae, 0x81, 0xe3, 0xa5, - 0x0b, 0x97, 0xa9, 0x13, 0xec, 0xac, 0xba, 0x0e, 0x27, 0x3b, 0x3c, 0x1a, 0xdd, 0xf9, 0x50, 0x74, - 0xaf, 0x44, 0xa2, 0x5b, 0x1c, 0x6c, 0xdc, 0x13, 0xe2, 0x26, 0x98, 0x61, 0x44, 0xea, 0x28, 0x44, - 0x75, 0x3f, 0x4f, 0x0d, 0x3f, 0x1d, 0x85, 0xab, 0x6c, 0x4c, 0xd8, 0x6c, 0x64, 0x66, 0xc2, 0x7b, - 0x28, 0x82, 0x9b, 0xfd, 0x61, 0x06, 0x2c, 0xb6, 0x6b, 0x55, 0xf1, 0x59, 0x75, 0x1d, 0xc6, 0x7d, - 0x2c, 0x26, 0x52, 0xf8, 0x11, 0x98, 0x14, 0x83, 0x73, 0x05, 0x73, 0xac, 0x6a, 0xf4, 0xb5, 0x36, - 0x85, 0xde, 0x39, 0xb6, 0x4d, 0x82, 0x19, 0x42, 0xbb, 0x5b, 0xab, 0x57, 0x08, 0xc7, 0x26, 0x54, - 0xe1, 0x83, 0xee, 0x1e, 0xea, 0xa0, 0xc2, 0x65, 0x30, 0xe9, 0xf9, 0xd4, 0x15, 0xfe, 0x65, 0x90, - 0x63, 0xe6, 0xb4, 0xa8, 0xa7, 0xa2, 0xda, 0x43, 0x1d, 0x29, 0xbc, 0x05, 0x74, 0x59, 0xe1, 0x45, - 0x9f, 0x6e, 0x53, 0x8b, 0xd4, 0x48, 0x45, 0x10, 0xc6, 0x82, 0x80, 0x3c, 0xe9, 0x49, 0x73, 0x49, - 0x79, 0xd2, 0xf3, 0x31, 0x7a, 0x28, 0x16, 0x01, 0x7e, 0x06, 0x16, 0x2a, 0xa4, 0x8a, 0x03, 0x8b, - 0xe7, 0x2b, 0x95, 0x55, 0xec, 0xe1, 0x0d, 0x6a, 0x51, 0x4e, 0x09, 0xd3, 0x47, 0xe5, 0x5d, 0xbf, - 0x20, 0x5a, 0xf8, 0xda, 0x40, 0x8d, 0xc7, 0x8d, 0xcc, 0xcb, 0xc3, 0xe6, 0x74, 0xa3, 0xa3, 0x5c, - 0x47, 0x31, 0x4e, 0x44, 0x1b, 0xd7, 0x7d, 0xf2, 0x71, 0x40, 0x7d, 0x52, 0x59, 0xf3, 0x5d, 0x2f, - 0xc4, 0x60, 0x4c, 0x32, 0xb8, 0x24, 0x22, 0x43, 0x31, 0x3a, 0x4f, 0xc3, 0x21, 0xd6, 0x11, 0xe4, - 0x60, 0x5e, 0x7d, 0x44, 0x42, 0xfe, 0xc7, 0xa5, 0x7f, 0x53, 0x4c, 0x68, 0xf9, 0x7e, 0xf1, 0xd3, - 0xb8, 0x1e, 0x04, 0xdf, 0x39, 0xd8, 0x77, 0x5c, 0xc6, 0xd7, 0xa8, 0x7f, 0xc3, 0xb5, 0x02, 0x9b, - 0x14, 0xad, 0xa0, 0x46, 0x1d, 0x7d, 0x62, 0xc0, 0xc1, 0x0e, 0xd0, 0x43, 0xb1, 0x08, 0x30, 0x07, - 0x26, 0xb6, 0xe5, 0x9a, 0xe9, 0x93, 0x32, 0x8e, 0xa3, 0xcd, 0x46, 0x66, 0xa2, 0xa5, 0x22, 0xb8, - 0x8f, 0x5f, 0x2c, 0xc9, 0x9b, 0xd7, 0xd6, 0x82, 0x6b, 0x60, 0xae, 0x03, 0x76, 0x95, 0xf0, 0x3b, - 0xae, 0xbf, 0xa5, 0xa7, 0x24, 0x0d, 0x5d, 0xd1, 0x98, 0xcb, 0x47, 0xe4, 0xa8, 0xcf, 0x02, 0x9e, - 0x07, 0x33, 0x9d, 0xbd, 0xa2, 0xeb, 0x73, 0xa6, 0x03, 0x89, 0xb1, 0xa0, 0x30, 0x66, 0xf2, 0x21, - 0x29, 0x8a, 0x68, 0xc3, 0xb3, 0x60, 0xba, 0xbb, 0x53, 0x58, 0xd3, 0xa7, 0xa4, 0xf5, 0x11, 0x65, - 0x3d, 0x9d, 0xef, 0x91, 0xa1, 0x90, 0x66, 0xc8, 0xb2, 0x50, 0x5c, 0xd5, 0xa7, 0x63, 0x2c, 0x0b, - 0xc5, 0x55, 0x14, 0xd2, 0x84, 0xdf, 0x6a, 0x9d, 0xef, 0x8e, 0xfa, 0x16, 0xe8, 0x87, 0xf6, 0xfd, - 0x50, 0x19, 0xfa, 0xa5, 0xec, 0xa6, 0x23, 0xac, 0x86, 0x22, 0x3c, 0xe0, 0x97, 0x1a, 0x48, 0xf9, - 0xed, 0xa6, 0xa0, 0xcf, 0x48, 0x56, 0xa5, 0x7d, 0xb0, 0x8a, 0x6b, 0x4c, 0xe6, 0x61, 0x45, 0x28, - 0xd5, 0xd1, 0x40, 0x5d, 0xc7, 0xf0, 0x3b, 0x0d, 0x40, 0x16, 0x78, 0x9e, 0x45, 0x6c, 0xe2, 0x70, - 0x6c, 0xb5, 0x9a, 0xbf, 0x3e, 0x2b, 0xf9, 0xdc, 0xda, 0x4f, 0x96, 0xfa, 0x40, 0xa3, 0xc4, 0x16, - 0x15, 0x31, 0xd8, 0xaf, 0x8a, 0x06, 0x70, 0x82, 0x9f, 0x82, 0x89, 0x2a, 0x93, 0xbf, 0xf5, 0x39, - 0x49, 0xef, 0xdd, 0x7d, 0xd0, 0x1b, 0xfc, 0xaf, 0x82, 0x39, 0xab, 0x38, 0x4d, 0x28, 0x39, 0x6a, - 0xbb, 0x84, 0x37, 0xc0, 0x82, 0x4f, 0x70, 0xe5, 0x9a, 0x63, 0xd5, 0x91, 0xeb, 0xf2, 0x8b, 0xd4, - 0x22, 0xac, 0xce, 0x38, 0xb1, 0xf5, 0xc3, 0xb2, 0x1c, 0x3b, 0xaf, 0x22, 0x34, 0x50, 0x0b, 0xc5, - 0x58, 0xc3, 0x0c, 0x18, 0x13, 0xa3, 0x18, 0xd3, 0xa1, 0xbc, 0xcb, 0xa9, 0x66, 0x23, 0x33, 0x26, - 0x4e, 0x86, 0xa1, 0xd6, 0x7e, 0xcf, 0x8c, 0x36, 0x1f, 0x37, 0xa3, 0xc1, 0xb7, 0xc1, 0x2c, 0x23, - 0xe5, 0xb2, 0x6b, 0x7b, 0x45, 0xdf, 0xad, 0x0a, 0x70, 0xfd, 0x88, 0x54, 0x9e, 0x6f, 0x36, 0x32, - 0xb3, 0xa5, 0xb0, 0x08, 0x45, 0x75, 0xb3, 0x8f, 0x35, 0x90, 0x8e, 0xef, 0x99, 0x97, 0x29, 0xe3, - 0xf0, 0x56, 0x5f, 0xdf, 0x34, 0xf6, 0xd6, 0x37, 0x85, 0xb5, 0xec, 0x9a, 0x9d, 0xc9, 0xaa, 0xbd, - 0xd3, 0xd3, 0x33, 0x3f, 0x01, 0x63, 0x94, 0x13, 0xbb, 0xfd, 0x97, 0xcc, 0xfa, 0xbe, 0x5e, 0xb2, - 0x71, 0x71, 0x98, 0x87, 0x14, 0x83, 0xb1, 0x82, 0xf0, 0x85, 0x5a, 0x2e, 0xb3, 0x3f, 0x26, 0xc0, - 0xab, 0x4f, 0xf1, 0xfc, 0x85, 0xbb, 0x1a, 0x38, 0xe1, 0xed, 0x61, 0x1e, 0x56, 0x69, 0x3a, 0xf0, - 0x17, 0xc8, 0x29, 0x15, 0xd5, 0x9e, 0x86, 0x74, 0xb4, 0x27, 0xea, 0xe2, 0xe5, 0xe0, 0x60, 0x9b, - 0x44, 0x5f, 0x0e, 0x57, 0xb1, 0x4d, 0x90, 0x94, 0x64, 0xff, 0xd0, 0xc0, 0x0b, 0x4f, 0xbc, 0xe2, - 0xd0, 0x0c, 0x8d, 0x8d, 0x46, 0x64, 0x6c, 0x4c, 0xc7, 0x03, 0xfc, 0x37, 0xff, 0xd7, 0x99, 0xcb, - 0xf7, 0x77, 0xd3, 0x23, 0x0f, 0x76, 0xd3, 0x23, 0x0f, 0x77, 0xd3, 0x23, 0x77, 0x9b, 0x69, 0xed, - 0x7e, 0x33, 0xad, 0x3d, 0x68, 0xa6, 0xb5, 0x87, 0xcd, 0xb4, 0xf6, 0xa8, 0x99, 0xd6, 0xbe, 0xfe, - 0x2b, 0x3d, 0x72, 0x33, 0xb1, 0xbd, 0xf2, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x23, 0x26, - 0xd9, 0x51, 0x16, 0x00, 0x00, -} diff --git a/pkg/security/apis/security/v1/generated.proto b/pkg/security/apis/security/v1/generated.proto index 9d4c938d0039..763ea2fd2cde 100644 --- a/pkg/security/apis/security/v1/generated.proto +++ b/pkg/security/apis/security/v1/generated.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.security.apis.security.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,35 +13,44 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // FSGroupStrategyOptions defines the strategy type and options used to create the strategy. message FSGroupStrategyOptions { // Type is the strategy that will dictate what FSGroup is used in the SecurityContext. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "FSGroupStrategyType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Ranges are the allowed ranges of fs groups. If you would like to force a single // fs group then supply a single range with the same start and end. - repeated IDRange ranges = 2; + repeated IDRange ranges = 2 [(gogoproto.customname) = "Ranges", (gogoproto.nullable) = false]; } // IDRange provides a min/max of an allowed range of IDs. // TODO: this could be reused for UIDs. message IDRange { // Min is the start of the range, inclusive. - optional int64 min = 1; + optional int64 min = 1 [(gogoproto.customname) = "Min", (gogoproto.nullable) = false]; // Max is the end of the range, inclusive. - optional int64 max = 2; + optional int64 max = 2 [(gogoproto.customname) = "Max", (gogoproto.nullable) = false]; } // PodSecurityPolicyReview checks which service accounts (not users, since that would be cluster-wide) can create the `PodTemplateSpec` in question. message PodSecurityPolicyReview { // spec is the PodSecurityPolicy to check. - optional PodSecurityPolicyReviewSpec spec = 1; + optional PodSecurityPolicyReviewSpec spec = 1 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // status represents the current information/status for the PodSecurityPolicyReview. - optional PodSecurityPolicyReviewStatus status = 2; + optional PodSecurityPolicyReviewStatus status = 2 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // PodSecurityPolicyReviewSpec defines specification for PodSecurityPolicyReview @@ -49,58 +59,58 @@ message PodSecurityPolicyReviewSpec { // if serviceAccountNames is empty, unless the template.spec.serviceAccountName is empty, // in which case "default" is used. // If serviceAccountNames is specified, template.spec.serviceAccountName is ignored. - optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 1; + optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 1 [(gogoproto.customname) = "Template", (gogoproto.nullable) = false]; // serviceAccountNames is an optional set of ServiceAccounts to run the check with. // If serviceAccountNames is empty, the template.spec.serviceAccountName is used, // unless it's empty, in which case "default" is used instead. // If serviceAccountNames is specified, template.spec.serviceAccountName is ignored. - repeated string serviceAccountNames = 2; + repeated string serviceAccountNames = 2 [(gogoproto.customname) = "ServiceAccountNames"]; } // PodSecurityPolicyReviewStatus represents the status of PodSecurityPolicyReview. message PodSecurityPolicyReviewStatus { // allowedServiceAccounts returns the list of service accounts in *this* namespace that have the power to create the PodTemplateSpec. - repeated ServiceAccountPodSecurityPolicyReviewStatus allowedServiceAccounts = 1; + repeated ServiceAccountPodSecurityPolicyReviewStatus allowedServiceAccounts = 1 [(gogoproto.customname) = "AllowedServiceAccounts", (gogoproto.nullable) = false]; } // PodSecurityPolicySelfSubjectReview checks whether this user/SA tuple can create the PodTemplateSpec message PodSecurityPolicySelfSubjectReview { // spec defines specification the PodSecurityPolicySelfSubjectReview. - optional PodSecurityPolicySelfSubjectReviewSpec spec = 1; + optional PodSecurityPolicySelfSubjectReviewSpec spec = 1 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // status represents the current information/status for the PodSecurityPolicySelfSubjectReview. - optional PodSecurityPolicySubjectReviewStatus status = 2; + optional PodSecurityPolicySubjectReviewStatus status = 2 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // PodSecurityPolicySelfSubjectReviewSpec contains specification for PodSecurityPolicySelfSubjectReview. message PodSecurityPolicySelfSubjectReviewSpec { // template is the PodTemplateSpec to check. - optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 1; + optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 1 [(gogoproto.customname) = "Template", (gogoproto.nullable) = false]; } // PodSecurityPolicySubjectReview checks whether a particular user/SA tuple can create the PodTemplateSpec. message PodSecurityPolicySubjectReview { // spec defines specification for the PodSecurityPolicySubjectReview. - optional PodSecurityPolicySubjectReviewSpec spec = 1; + optional PodSecurityPolicySubjectReviewSpec spec = 1 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // status represents the current information/status for the PodSecurityPolicySubjectReview. - optional PodSecurityPolicySubjectReviewStatus status = 2; + optional PodSecurityPolicySubjectReviewStatus status = 2 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // PodSecurityPolicySubjectReviewSpec defines specification for PodSecurityPolicySubjectReview message PodSecurityPolicySubjectReviewSpec { // template is the PodTemplateSpec to check. If template.spec.serviceAccountName is empty it will not be defaulted. // If its non-empty, it will be checked. - optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 1; + optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 1 [(gogoproto.customname) = "Template", (gogoproto.nullable) = false]; // user is the user you're testing for. // If you specify "user" but not "group", then is it interpreted as "What if user were not a member of any groups. // If user and groups are empty, then the check is performed using *only* the serviceAccountName in the template. - optional string user = 2; + optional string user = 2 [(gogoproto.customname) = "User", (gogoproto.nullable) = false]; // groups is the groups you're testing for. - repeated string groups = 3; + repeated string groups = 3 [(gogoproto.customname) = "Groups"]; } // PodSecurityPolicySubjectReviewStatus contains information/status for PodSecurityPolicySubjectReview. @@ -108,40 +118,40 @@ message PodSecurityPolicySubjectReviewStatus { // allowedBy is a reference to the rule that allows the PodTemplateSpec. // A rule can be a SecurityContextConstraint or a PodSecurityPolicy // A `nil`, indicates that it was denied. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference allowedBy = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference allowedBy = 1 [(gogoproto.customname) = "AllowedBy"]; // A machine-readable description of why this operation is in the // "Failure" status. If this value is empty there // is no information available. - optional string reason = 2; + optional string reason = 2 [(gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // template is the PodTemplateSpec after the defaulting is applied. - optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 3; + optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 3 [(gogoproto.customname) = "Template", (gogoproto.nullable) = false]; } // RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. message RunAsUserStrategyOptions { // Type is the strategy that will dictate what RunAsUser is used in the SecurityContext. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "RunAsUserStrategyType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // UID is the user id that containers must run as. Required for the MustRunAs strategy if not using // namespace/service account allocated uids. - optional int64 uid = 2; + optional int64 uid = 2 [(gogoproto.customname) = "UID"]; // UIDRangeMin defines the min value for a strategy that allocates by range. - optional int64 uidRangeMin = 3; + optional int64 uidRangeMin = 3 [(gogoproto.customname) = "UIDRangeMin"]; // UIDRangeMax defines the max value for a strategy that allocates by range. - optional int64 uidRangeMax = 4; + optional int64 uidRangeMax = 4 [(gogoproto.customname) = "UIDRangeMax"]; } // SELinuxContextStrategyOptions defines the strategy type and any options used to create the strategy. message SELinuxContextStrategyOptions { // Type is the strategy that will dictate what SELinux context is used in the SecurityContext. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "SELinuxContextStrategyType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // seLinuxOptions required to run as; required for MustRunAs - optional k8s.io.kubernetes.pkg.api.v1.SELinuxOptions seLinuxOptions = 2; + optional k8s.io.kubernetes.pkg.api.v1.SELinuxOptions seLinuxOptions = 2 [(gogoproto.customname) = "SELinuxOptions"]; } // SecurityContextConstraints governs the ability to make requests that affect the SecurityContext @@ -149,7 +159,7 @@ message SELinuxContextStrategyOptions { message SecurityContextConstraints { // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Priority influences the sort order of SCCs when evaluating which SCCs to try first for // a given pod request based on access in the Users and Groups fields. The higher the int, the @@ -157,104 +167,104 @@ message SecurityContextConstraints { // for multiple SCCs are equal they will be sorted from most restrictive to // least restrictive. If both priorities and restrictions are equal the // SCCs will be sorted by name. - optional int32 priority = 2; + optional int32 priority = 2 [(gogoproto.customname) = "Priority"]; // AllowPrivilegedContainer determines if a container can request to be run as privileged. - optional bool allowPrivilegedContainer = 3; + optional bool allowPrivilegedContainer = 3 [(gogoproto.customname) = "AllowPrivilegedContainer", (gogoproto.nullable) = false]; // DefaultAddCapabilities is the default set of capabilities that will be added to the container // unless the pod spec specifically drops the capability. You may not list a capabiility in both // DefaultAddCapabilities and RequiredDropCapabilities. - repeated string defaultAddCapabilities = 4; + repeated string defaultAddCapabilities = 4 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.Capability", (gogoproto.customname) = "DefaultAddCapabilities"]; // RequiredDropCapabilities are the capabilities that will be dropped from the container. These // are required to be dropped and cannot be added. - repeated string requiredDropCapabilities = 5; + repeated string requiredDropCapabilities = 5 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.Capability", (gogoproto.customname) = "RequiredDropCapabilities"]; // AllowedCapabilities is a list of capabilities that can be requested to add to the container. // Capabilities in this field maybe added at the pod author's discretion. // You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities. // To allow all capabilities you may use '*'. - repeated string allowedCapabilities = 6; + repeated string allowedCapabilities = 6 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.Capability", (gogoproto.customname) = "AllowedCapabilities"]; // AllowHostDirVolumePlugin determines if the policy allow containers to use the HostDir volume plugin // +k8s:conversion-gen=false - optional bool allowHostDirVolumePlugin = 7; + optional bool allowHostDirVolumePlugin = 7 [(gogoproto.customname) = "AllowHostDirVolumePlugin", (gogoproto.nullable) = false]; // Volumes is a white list of allowed volume plugins. FSType corresponds directly with the field names // of a VolumeSource (azureFile, configMap, emptyDir). To allow all volumes you may use "*". // To allow no volumes, set to ["none"]. - repeated string volumes = 8; + repeated string volumes = 8 [(gogoproto.casttype) = "FSType", (gogoproto.customname) = "Volumes"]; // AllowHostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - optional bool allowHostNetwork = 9; + optional bool allowHostNetwork = 9 [(gogoproto.customname) = "AllowHostNetwork", (gogoproto.nullable) = false]; // AllowHostPorts determines if the policy allows host ports in the containers. - optional bool allowHostPorts = 10; + optional bool allowHostPorts = 10 [(gogoproto.customname) = "AllowHostPorts", (gogoproto.nullable) = false]; // AllowHostPID determines if the policy allows host pid in the containers. - optional bool allowHostPID = 11; + optional bool allowHostPID = 11 [(gogoproto.customname) = "AllowHostPID", (gogoproto.nullable) = false]; // AllowHostIPC determines if the policy allows host ipc in the containers. - optional bool allowHostIPC = 12; + optional bool allowHostIPC = 12 [(gogoproto.customname) = "AllowHostIPC", (gogoproto.nullable) = false]; // SELinuxContext is the strategy that will dictate what labels will be set in the SecurityContext. - optional SELinuxContextStrategyOptions seLinuxContext = 13; + optional SELinuxContextStrategyOptions seLinuxContext = 13 [(gogoproto.customname) = "SELinuxContext", (gogoproto.nullable) = false]; // RunAsUser is the strategy that will dictate what RunAsUser is used in the SecurityContext. - optional RunAsUserStrategyOptions runAsUser = 14; + optional RunAsUserStrategyOptions runAsUser = 14 [(gogoproto.customname) = "RunAsUser", (gogoproto.nullable) = false]; // SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - optional SupplementalGroupsStrategyOptions supplementalGroups = 15; + optional SupplementalGroupsStrategyOptions supplementalGroups = 15 [(gogoproto.customname) = "SupplementalGroups", (gogoproto.nullable) = false]; // FSGroup is the strategy that will dictate what fs group is used by the SecurityContext. - optional FSGroupStrategyOptions fsGroup = 16; + optional FSGroupStrategyOptions fsGroup = 16 [(gogoproto.customname) = "FSGroup", (gogoproto.nullable) = false]; // ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file // system. If the container specifically requests to run with a non-read only root file system // the SCC should deny the pod. // If set to false the container may run with a read only root file system if it wishes but it // will not be forced to. - optional bool readOnlyRootFilesystem = 17; + optional bool readOnlyRootFilesystem = 17 [(gogoproto.customname) = "ReadOnlyRootFilesystem", (gogoproto.nullable) = false]; // The users who have permissions to use this security context constraints - repeated string users = 18; + repeated string users = 18 [(gogoproto.customname) = "Users"]; // The groups that have permission to use this security context constraints - repeated string groups = 19; + repeated string groups = 19 [(gogoproto.customname) = "Groups"]; // SeccompProfiles lists the allowed profiles that may be set for the pod or // container's seccomp annotations. An unset (nil) or empty value means that no profiles may // be specifid by the pod or container. The wildcard '*' may be used to allow all profiles. When // used to generate a value for a pod the first non-wildcard profile will be used as // the default. - repeated string seccompProfiles = 20; + repeated string seccompProfiles = 20 [(gogoproto.customname) = "SeccompProfiles"]; } // SecurityContextConstraintsList is a list of SecurityContextConstraints objects message SecurityContextConstraintsList { // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // List of security context constraints. - repeated SecurityContextConstraints items = 2; + repeated SecurityContextConstraints items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // ServiceAccountPodSecurityPolicyReviewStatus represents ServiceAccount name and related review status message ServiceAccountPodSecurityPolicyReviewStatus { - optional PodSecurityPolicySubjectReviewStatus podSecurityPolicySubjectReviewStatus = 1; + optional PodSecurityPolicySubjectReviewStatus podSecurityPolicySubjectReviewStatus = 1 [(gogoproto.customname) = "PodSecurityPolicySubjectReviewStatus", (gogoproto.nullable) = false]; // name contains the allowed and the denied ServiceAccount name - optional string name = 2; + optional string name = 2 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; } // SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. message SupplementalGroupsStrategyOptions { // Type is the strategy that will dictate what supplemental groups is used in the SecurityContext. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "SupplementalGroupsStrategyType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Ranges are the allowed ranges of supplemental groups. If you would like to force a single // supplemental group then supply a single range with the same start and end. - repeated IDRange ranges = 2; + repeated IDRange ranges = 2 [(gogoproto.customname) = "Ranges", (gogoproto.nullable) = false]; } diff --git a/pkg/template/apis/template/v1/generated.pb.go b/pkg/template/apis/template/v1/generated.pb.go deleted file mode 100644 index c73a2b22729c..000000000000 --- a/pkg/template/apis/template/v1/generated.pb.go +++ /dev/null @@ -1,3527 +0,0 @@ -// Code generated by protoc-gen-gogo. -// source: github.com/openshift/origin/pkg/template/apis/template/v1/generated.proto -// DO NOT EDIT! - -/* - Package v1 is a generated protocol buffer package. - - It is generated from these files: - github.com/openshift/origin/pkg/template/apis/template/v1/generated.proto - - It has these top-level messages: - BrokerTemplateInstance - BrokerTemplateInstanceList - BrokerTemplateInstanceSpec - ExtraValue - Parameter - Template - TemplateInstance - TemplateInstanceCondition - TemplateInstanceList - TemplateInstanceObject - TemplateInstanceRequester - TemplateInstanceSpec - TemplateInstanceStatus - TemplateList -*/ -package v1 - -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import k8s_io_apimachinery_pkg_runtime "k8s.io/apimachinery/pkg/runtime" - -import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" - -import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - -import strings "strings" -import reflect "reflect" - -import io "io" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *BrokerTemplateInstance) Reset() { *m = BrokerTemplateInstance{} } -func (*BrokerTemplateInstance) ProtoMessage() {} -func (*BrokerTemplateInstance) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } - -func (m *BrokerTemplateInstanceList) Reset() { *m = BrokerTemplateInstanceList{} } -func (*BrokerTemplateInstanceList) ProtoMessage() {} -func (*BrokerTemplateInstanceList) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{1} -} - -func (m *BrokerTemplateInstanceSpec) Reset() { *m = BrokerTemplateInstanceSpec{} } -func (*BrokerTemplateInstanceSpec) ProtoMessage() {} -func (*BrokerTemplateInstanceSpec) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{2} -} - -func (m *ExtraValue) Reset() { *m = ExtraValue{} } -func (*ExtraValue) ProtoMessage() {} -func (*ExtraValue) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } - -func (m *Parameter) Reset() { *m = Parameter{} } -func (*Parameter) ProtoMessage() {} -func (*Parameter) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } - -func (m *Template) Reset() { *m = Template{} } -func (*Template) ProtoMessage() {} -func (*Template) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } - -func (m *TemplateInstance) Reset() { *m = TemplateInstance{} } -func (*TemplateInstance) ProtoMessage() {} -func (*TemplateInstance) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } - -func (m *TemplateInstanceCondition) Reset() { *m = TemplateInstanceCondition{} } -func (*TemplateInstanceCondition) ProtoMessage() {} -func (*TemplateInstanceCondition) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{7} -} - -func (m *TemplateInstanceList) Reset() { *m = TemplateInstanceList{} } -func (*TemplateInstanceList) ProtoMessage() {} -func (*TemplateInstanceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } - -func (m *TemplateInstanceObject) Reset() { *m = TemplateInstanceObject{} } -func (*TemplateInstanceObject) ProtoMessage() {} -func (*TemplateInstanceObject) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } - -func (m *TemplateInstanceRequester) Reset() { *m = TemplateInstanceRequester{} } -func (*TemplateInstanceRequester) ProtoMessage() {} -func (*TemplateInstanceRequester) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{10} -} - -func (m *TemplateInstanceSpec) Reset() { *m = TemplateInstanceSpec{} } -func (*TemplateInstanceSpec) ProtoMessage() {} -func (*TemplateInstanceSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } - -func (m *TemplateInstanceStatus) Reset() { *m = TemplateInstanceStatus{} } -func (*TemplateInstanceStatus) ProtoMessage() {} -func (*TemplateInstanceStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } - -func (m *TemplateList) Reset() { *m = TemplateList{} } -func (*TemplateList) ProtoMessage() {} -func (*TemplateList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } - -func init() { - proto.RegisterType((*BrokerTemplateInstance)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1.BrokerTemplateInstance") - proto.RegisterType((*BrokerTemplateInstanceList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1.BrokerTemplateInstanceList") - proto.RegisterType((*BrokerTemplateInstanceSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1.BrokerTemplateInstanceSpec") - proto.RegisterType((*ExtraValue)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1.ExtraValue") - proto.RegisterType((*Parameter)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1.Parameter") - proto.RegisterType((*Template)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1.Template") - proto.RegisterType((*TemplateInstance)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1.TemplateInstance") - proto.RegisterType((*TemplateInstanceCondition)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1.TemplateInstanceCondition") - proto.RegisterType((*TemplateInstanceList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1.TemplateInstanceList") - proto.RegisterType((*TemplateInstanceObject)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1.TemplateInstanceObject") - proto.RegisterType((*TemplateInstanceRequester)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1.TemplateInstanceRequester") - proto.RegisterType((*TemplateInstanceSpec)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1.TemplateInstanceSpec") - proto.RegisterType((*TemplateInstanceStatus)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1.TemplateInstanceStatus") - proto.RegisterType((*TemplateList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1.TemplateList") -} -func (m *BrokerTemplateInstance) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BrokerTemplateInstance) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n2, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - return i, nil -} - -func (m *BrokerTemplateInstanceList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BrokerTemplateInstanceList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n3, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *BrokerTemplateInstanceSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BrokerTemplateInstanceSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.TemplateInstance.Size())) - n4, err := m.TemplateInstance.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Secret.Size())) - n5, err := m.Secret.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - if len(m.BindingIDs) > 0 { - for _, s := range m.BindingIDs { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m ExtraValue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m ExtraValue) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m) > 0 { - for _, s := range m { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *Parameter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Parameter) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DisplayName))) - i += copy(dAtA[i:], m.DisplayName) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Description))) - i += copy(dAtA[i:], m.Description) - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Generate))) - i += copy(dAtA[i:], m.Generate) - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.From))) - i += copy(dAtA[i:], m.From) - dAtA[i] = 0x38 - i++ - if m.Required { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - return i, nil -} - -func (m *Template) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Template) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n6, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) - if len(m.Objects) > 0 { - for _, msg := range m.Objects { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Parameters) > 0 { - for _, msg := range m.Parameters { - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.ObjectLabels) > 0 { - keysForObjectLabels := make([]string, 0, len(m.ObjectLabels)) - for k := range m.ObjectLabels { - keysForObjectLabels = append(keysForObjectLabels, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForObjectLabels) - for _, k := range keysForObjectLabels { - dAtA[i] = 0x2a - i++ - v := m.ObjectLabels[string(k)] - mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) - } - } - return i, nil -} - -func (m *TemplateInstance) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TemplateInstance) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n7, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n8, err := m.Spec.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n9, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - return i, nil -} - -func (m *TemplateInstanceCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TemplateInstanceCondition) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i += copy(dAtA[i:], m.Status) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.LastTransitionTime.Size())) - n10, err := m.LastTransitionTime.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i += copy(dAtA[i:], m.Reason) - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) - return i, nil -} - -func (m *TemplateInstanceList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TemplateInstanceList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n11, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *TemplateInstanceObject) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TemplateInstanceObject) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Ref.Size())) - n12, err := m.Ref.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n12 - return i, nil -} - -func (m *TemplateInstanceRequester) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TemplateInstanceRequester) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Username))) - i += copy(dAtA[i:], m.Username) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i += copy(dAtA[i:], m.UID) - if len(m.Groups) > 0 { - for _, s := range m.Groups { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.Extra) > 0 { - keysForExtra := make([]string, 0, len(m.Extra)) - for k := range m.Extra { - keysForExtra = append(keysForExtra, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) - for _, k := range keysForExtra { - dAtA[i] = 0x22 - i++ - v := m.Extra[string(k)] - msgSize := 0 - if (&v) != nil { - msgSize = (&v).Size() - msgSize += 1 + sovGenerated(uint64(msgSize)) - } - mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + msgSize - i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64((&v).Size())) - n13, err := (&v).MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 - } - } - return i, nil -} - -func (m *TemplateInstanceSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TemplateInstanceSpec) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Template.Size())) - n14, err := m.Template.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n14 - if m.Secret != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Secret.Size())) - n15, err := m.Secret.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n15 - } - if m.Requester != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Requester.Size())) - n16, err := m.Requester.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n16 - } - return i, nil -} - -func (m *TemplateInstanceStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TemplateInstanceStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Objects) > 0 { - for _, msg := range m.Objects { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *TemplateList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TemplateList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n17, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n17 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - dAtA[offset+4] = uint8(v >> 32) - dAtA[offset+5] = uint8(v >> 40) - dAtA[offset+6] = uint8(v >> 48) - dAtA[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *BrokerTemplateInstance) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *BrokerTemplateInstanceList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *BrokerTemplateInstanceSpec) Size() (n int) { - var l int - _ = l - l = m.TemplateInstance.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Secret.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.BindingIDs) > 0 { - for _, s := range m.BindingIDs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m ExtraValue) Size() (n int) { - var l int - _ = l - if len(m) > 0 { - for _, s := range m { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Parameter) Size() (n int) { - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DisplayName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Description) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Value) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Generate) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.From) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func (m *Template) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Objects) > 0 { - for _, e := range m.Objects { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Parameters) > 0 { - for _, e := range m.Parameters { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.ObjectLabels) > 0 { - for k, v := range m.ObjectLabels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *TemplateInstance) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *TemplateInstanceCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *TemplateInstanceList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *TemplateInstanceObject) Size() (n int) { - var l int - _ = l - l = m.Ref.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *TemplateInstanceRequester) Size() (n int) { - var l int - _ = l - l = len(m.Username) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Extra) > 0 { - for k, v := range m.Extra { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *TemplateInstanceSpec) Size() (n int) { - var l int - _ = l - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Secret != nil { - l = m.Secret.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Requester != nil { - l = m.Requester.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *TemplateInstanceStatus) Size() (n int) { - var l int - _ = l - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Objects) > 0 { - for _, e := range m.Objects { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *TemplateList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *BrokerTemplateInstance) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BrokerTemplateInstance{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "BrokerTemplateInstanceSpec", "BrokerTemplateInstanceSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *BrokerTemplateInstanceList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BrokerTemplateInstanceList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "BrokerTemplateInstance", "BrokerTemplateInstance", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *BrokerTemplateInstanceSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BrokerTemplateInstanceSpec{`, - `TemplateInstance:` + strings.Replace(strings.Replace(this.TemplateInstance.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `Secret:` + strings.Replace(strings.Replace(this.Secret.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `BindingIDs:` + fmt.Sprintf("%v", this.BindingIDs) + `,`, - `}`, - }, "") - return s -} -func (this *Parameter) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Parameter{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `DisplayName:` + fmt.Sprintf("%v", this.DisplayName) + `,`, - `Description:` + fmt.Sprintf("%v", this.Description) + `,`, - `Value:` + fmt.Sprintf("%v", this.Value) + `,`, - `Generate:` + fmt.Sprintf("%v", this.Generate) + `,`, - `From:` + fmt.Sprintf("%v", this.From) + `,`, - `Required:` + fmt.Sprintf("%v", this.Required) + `,`, - `}`, - }, "") - return s -} -func (this *Template) String() string { - if this == nil { - return "nil" - } - keysForObjectLabels := make([]string, 0, len(this.ObjectLabels)) - for k := range this.ObjectLabels { - keysForObjectLabels = append(keysForObjectLabels, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForObjectLabels) - mapStringForObjectLabels := "map[string]string{" - for _, k := range keysForObjectLabels { - mapStringForObjectLabels += fmt.Sprintf("%v: %v,", k, this.ObjectLabels[k]) - } - mapStringForObjectLabels += "}" - s := strings.Join([]string{`&Template{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `Objects:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Objects), "RawExtension", "k8s_io_apimachinery_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`, - `Parameters:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Parameters), "Parameter", "Parameter", 1), `&`, ``, 1) + `,`, - `ObjectLabels:` + mapStringForObjectLabels + `,`, - `}`, - }, "") - return s -} -func (this *TemplateInstance) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TemplateInstance{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TemplateInstanceSpec", "TemplateInstanceSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TemplateInstanceStatus", "TemplateInstanceStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *TemplateInstanceCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TemplateInstanceCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *TemplateInstanceList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TemplateInstanceList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "TemplateInstance", "TemplateInstance", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *TemplateInstanceObject) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TemplateInstanceObject{`, - `Ref:` + strings.Replace(strings.Replace(this.Ref.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *TemplateInstanceRequester) String() string { - if this == nil { - return "nil" - } - keysForExtra := make([]string, 0, len(this.Extra)) - for k := range this.Extra { - keysForExtra = append(keysForExtra, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) - mapStringForExtra := "map[string]ExtraValue{" - for _, k := range keysForExtra { - mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k]) - } - mapStringForExtra += "}" - s := strings.Join([]string{`&TemplateInstanceRequester{`, - `Username:` + fmt.Sprintf("%v", this.Username) + `,`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, - `Extra:` + mapStringForExtra + `,`, - `}`, - }, "") - return s -} -func (this *TemplateInstanceSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TemplateInstanceSpec{`, - `Template:` + strings.Replace(strings.Replace(this.Template.String(), "Template", "Template", 1), `&`, ``, 1) + `,`, - `Secret:` + strings.Replace(fmt.Sprintf("%v", this.Secret), "LocalObjectReference", "k8s_io_kubernetes_pkg_api_v1.LocalObjectReference", 1) + `,`, - `Requester:` + strings.Replace(fmt.Sprintf("%v", this.Requester), "TemplateInstanceRequester", "TemplateInstanceRequester", 1) + `,`, - `}`, - }, "") - return s -} -func (this *TemplateInstanceStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TemplateInstanceStatus{`, - `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "TemplateInstanceCondition", "TemplateInstanceCondition", 1), `&`, ``, 1) + `,`, - `Objects:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Objects), "TemplateInstanceObject", "TemplateInstanceObject", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *TemplateList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TemplateList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Template", "Template", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *BrokerTemplateInstance) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BrokerTemplateInstance: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BrokerTemplateInstance: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BrokerTemplateInstanceList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BrokerTemplateInstanceList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BrokerTemplateInstanceList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, BrokerTemplateInstance{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BrokerTemplateInstanceSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BrokerTemplateInstanceSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BrokerTemplateInstanceSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TemplateInstance", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.TemplateInstance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secret", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Secret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BindingIDs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BindingIDs = append(m.BindingIDs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExtraValue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExtraValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - *m = append(*m, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Parameter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Parameter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Parameter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DisplayName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Generate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Generate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Required = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Template) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Template: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Template: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Objects", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Objects = append(m.Objects, k8s_io_apimachinery_pkg_runtime.RawExtension{}) - if err := m.Objects[len(m.Objects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Parameters = append(m.Parameters, Parameter{}) - if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectLabels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.ObjectLabels == nil { - m.ObjectLabels = make(map[string]string) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue := string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - m.ObjectLabels[mapkey] = mapvalue - } else { - var mapvalue string - m.ObjectLabels[mapkey] = mapvalue - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TemplateInstance) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TemplateInstance: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TemplateInstance: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TemplateInstanceCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TemplateInstanceCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TemplateInstanceCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = TemplateInstanceConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_kubernetes_pkg_api_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TemplateInstanceList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TemplateInstanceList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TemplateInstanceList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, TemplateInstance{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TemplateInstanceObject) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TemplateInstanceObject: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TemplateInstanceObject: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Ref.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TemplateInstanceRequester) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TemplateInstanceRequester: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TemplateInstanceRequester: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Username = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.Extra == nil { - m.Extra = make(map[string]ExtraValue) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue := &ExtraValue{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - m.Extra[mapkey] = *mapvalue - } else { - var mapvalue ExtraValue - m.Extra[mapkey] = mapvalue - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TemplateInstanceSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TemplateInstanceSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TemplateInstanceSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secret", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Secret == nil { - m.Secret = &k8s_io_kubernetes_pkg_api_v1.LocalObjectReference{} - } - if err := m.Secret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requester", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Requester == nil { - m.Requester = &TemplateInstanceRequester{} - } - if err := m.Requester.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TemplateInstanceStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TemplateInstanceStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TemplateInstanceStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, TemplateInstanceCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Objects", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Objects = append(m.Objects, TemplateInstanceObject{}) - if err := m.Objects[len(m.Objects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TemplateList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TemplateList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TemplateList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Template{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/openshift/origin/pkg/template/apis/template/v1/generated.proto", fileDescriptorGenerated) -} - -var fileDescriptorGenerated = []byte{ - // 1288 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0x4b, 0x6f, 0x5b, 0x45, - 0x14, 0xf6, 0xf5, 0x2b, 0xf6, 0x38, 0x2d, 0xd1, 0x10, 0x55, 0x17, 0x4b, 0xb5, 0xad, 0x8b, 0x84, - 0x02, 0x4a, 0xae, 0x49, 0x78, 0xb5, 0x5d, 0x20, 0xe1, 0x26, 0x54, 0x11, 0x29, 0x85, 0x69, 0x52, - 0x21, 0x40, 0x82, 0xb1, 0x3d, 0x76, 0x2e, 0xf6, 0x7d, 0x64, 0x66, 0xec, 0xc6, 0x12, 0x88, 0x56, - 0x62, 0xc1, 0x92, 0x05, 0x8b, 0x2e, 0x61, 0xc1, 0xdf, 0x60, 0x9d, 0x65, 0x57, 0xa8, 0x0b, 0x14, - 0x11, 0x23, 0xf8, 0x01, 0xb0, 0xeb, 0x0a, 0xcd, 0xdc, 0xb9, 0x0f, 0xbf, 0xd2, 0xd2, 0xb8, 0xed, - 0xce, 0x73, 0x66, 0xce, 0xf9, 0xce, 0x39, 0xf3, 0xdd, 0x6f, 0x8e, 0xc1, 0x76, 0xdb, 0xe2, 0xfb, - 0xbd, 0xba, 0xd9, 0x70, 0xed, 0xaa, 0xeb, 0x11, 0x87, 0xed, 0x5b, 0x2d, 0x5e, 0x75, 0xa9, 0xd5, - 0xb6, 0x9c, 0xaa, 0xd7, 0x69, 0x57, 0x39, 0xb1, 0xbd, 0x2e, 0xe6, 0xa4, 0x8a, 0x3d, 0x8b, 0x45, - 0xab, 0xfe, 0x7a, 0xb5, 0x4d, 0x1c, 0x42, 0x31, 0x27, 0x4d, 0xd3, 0xa3, 0x2e, 0x77, 0xe1, 0xe5, - 0x28, 0x94, 0x19, 0x86, 0x32, 0xfd, 0x50, 0xa6, 0xd7, 0x69, 0x9b, 0x81, 0xb3, 0x29, 0x42, 0x45, - 0xab, 0xfe, 0x7a, 0x71, 0x2d, 0x96, 0x45, 0xdb, 0x6d, 0xbb, 0x55, 0x19, 0xb1, 0xde, 0x6b, 0xc9, - 0x95, 0x5c, 0xc8, 0x5f, 0x3e, 0x52, 0xf1, 0xcd, 0xce, 0x25, 0x66, 0x5a, 0xae, 0x48, 0xc9, 0xc6, - 0x8d, 0x7d, 0xcb, 0x21, 0x74, 0x20, 0x93, 0x95, 0x39, 0xda, 0x84, 0xe3, 0x29, 0xf9, 0x15, 0xab, - 0xb3, 0xbc, 0x68, 0xcf, 0xe1, 0x96, 0x4d, 0x26, 0x1c, 0xde, 0x7e, 0x94, 0x03, 0x6b, 0xec, 0x13, - 0x1b, 0x4f, 0xf8, 0xbd, 0x31, 0xcb, 0xaf, 0xc7, 0xad, 0x6e, 0xd5, 0x72, 0x38, 0xe3, 0x74, 0xc2, - 0x69, 0x55, 0x39, 0x75, 0x7a, 0x75, 0x42, 0x1d, 0xc2, 0x09, 0x0b, 0x2a, 0x9a, 0x52, 0x8b, 0xf1, - 0xaf, 0x06, 0x2e, 0xd4, 0xa8, 0xdb, 0x21, 0x74, 0x57, 0xb5, 0x71, 0xdb, 0x61, 0x1c, 0x3b, 0x0d, - 0x02, 0xbf, 0x04, 0x39, 0xd1, 0x81, 0x26, 0xe6, 0x58, 0xd7, 0x2a, 0xda, 0x4a, 0x61, 0xe3, 0x75, - 0xd3, 0x8f, 0x6d, 0xc6, 0x13, 0x92, 0x37, 0x22, 0x2f, 0x42, 0x9c, 0x36, 0xfb, 0xeb, 0xe6, 0x8d, - 0xfa, 0x57, 0xa4, 0xc1, 0xaf, 0x13, 0x8e, 0x6b, 0xf0, 0xe8, 0xb8, 0x9c, 0x18, 0x1e, 0x97, 0x41, - 0x64, 0x43, 0x61, 0x54, 0x78, 0x1b, 0xa4, 0x99, 0x47, 0x1a, 0x7a, 0x52, 0x46, 0xdf, 0x33, 0x9f, - 0xf8, 0xde, 0xcd, 0xe9, 0x25, 0xdc, 0xf4, 0x48, 0xa3, 0xb6, 0xa8, 0x52, 0x48, 0x8b, 0x15, 0x92, - 0x80, 0xc6, 0x3f, 0x1a, 0x28, 0x4e, 0x77, 0xd9, 0xb1, 0x18, 0x87, 0x9f, 0x4f, 0x54, 0x6e, 0x3e, - 0x5e, 0xe5, 0xc2, 0x5b, 0xd6, 0xbd, 0xa4, 0x40, 0x73, 0x81, 0x25, 0x56, 0x75, 0x1f, 0x64, 0x2c, - 0x4e, 0x6c, 0xa6, 0x27, 0x2b, 0xa9, 0x95, 0xc2, 0xc6, 0xc7, 0x73, 0x2f, 0xbb, 0x76, 0x4e, 0xa1, - 0x67, 0xb6, 0x05, 0x0e, 0xf2, 0xe1, 0x8c, 0x7b, 0xc9, 0x59, 0x45, 0x8b, 0xce, 0x40, 0x06, 0x96, - 0xf8, 0x98, 0x5d, 0x15, 0xbf, 0x16, 0x14, 0x1f, 0x51, 0x2a, 0x28, 0x3d, 0xba, 0x6e, 0x44, 0x5a, - 0x84, 0x12, 0x81, 0xae, 0x2b, 0xf4, 0xa5, 0x71, 0x18, 0x34, 0x01, 0x00, 0xf7, 0x40, 0x96, 0x91, - 0x06, 0x25, 0x5c, 0x71, 0xe0, 0x7f, 0x42, 0x9d, 0x57, 0x50, 0xd9, 0x9b, 0x32, 0x08, 0x52, 0xc1, - 0xa0, 0x09, 0x40, 0xdd, 0x72, 0x9a, 0x96, 0xd3, 0xde, 0xde, 0x64, 0x7a, 0xaa, 0x92, 0x5a, 0xc9, - 0xd7, 0xce, 0x0b, 0x1a, 0xd6, 0x42, 0x2b, 0x8a, 0x9d, 0x30, 0xde, 0x01, 0x60, 0xeb, 0x90, 0x53, - 0x7c, 0x0b, 0x77, 0x7b, 0x04, 0x96, 0x83, 0x0b, 0xd2, 0xa4, 0x63, 0x7e, 0xbc, 0x93, 0x57, 0x72, - 0xf7, 0x7e, 0x2a, 0x27, 0xee, 0xfc, 0x5e, 0x49, 0x18, 0xbf, 0x26, 0x41, 0xfe, 0x23, 0x4c, 0xb1, - 0x4d, 0x38, 0xa1, 0xb0, 0x02, 0xd2, 0x0e, 0xb6, 0xfd, 0xb6, 0xe5, 0x23, 0xe2, 0x7d, 0x88, 0x6d, - 0x82, 0xe4, 0x0e, 0x7c, 0x0b, 0x14, 0x9a, 0x16, 0xf3, 0xba, 0x78, 0x20, 0x8c, 0xb2, 0xe8, 0x7c, - 0xed, 0x45, 0x75, 0xb0, 0xb0, 0x19, 0x6d, 0xa1, 0xf8, 0x39, 0xe9, 0x46, 0x58, 0x83, 0x5a, 0x1e, - 0xb7, 0x5c, 0x47, 0x4f, 0x8d, 0xb9, 0x45, 0x5b, 0x28, 0x7e, 0x0e, 0xbe, 0x0c, 0x32, 0x7d, 0x51, - 0x91, 0x9e, 0x96, 0x0e, 0x21, 0x2d, 0x64, 0x99, 0xc8, 0xdf, 0x83, 0xab, 0x20, 0x17, 0x88, 0x82, - 0x9e, 0x91, 0xe7, 0x42, 0xf2, 0x5e, 0x53, 0x76, 0x14, 0x9e, 0x10, 0x25, 0xb6, 0xa8, 0x6b, 0xeb, - 0xd9, 0xd1, 0x12, 0xdf, 0xa7, 0xae, 0x8d, 0xe4, 0x8e, 0x88, 0x47, 0xc9, 0x41, 0xcf, 0xa2, 0xa4, - 0xa9, 0x2f, 0x54, 0xb4, 0x95, 0x5c, 0x14, 0x0f, 0x29, 0x3b, 0x0a, 0x4f, 0x18, 0xbf, 0xa4, 0x41, - 0x2e, 0xe0, 0xc9, 0x33, 0x50, 0x9c, 0x57, 0xc1, 0x82, 0x4d, 0x18, 0xc3, 0xed, 0xa0, 0xf7, 0x2f, - 0xa8, 0xe3, 0x0b, 0xd7, 0x7d, 0x33, 0x0a, 0xf6, 0xe1, 0x27, 0x60, 0xc1, 0x95, 0x21, 0x7c, 0x02, - 0xc5, 0xb8, 0x39, 0x91, 0x8b, 0x92, 0x71, 0x13, 0xe1, 0xdb, 0x5b, 0x87, 0x9c, 0x38, 0xcc, 0x72, - 0x9d, 0x28, 0xb2, 0x9f, 0x08, 0x43, 0x41, 0x38, 0x78, 0x08, 0x80, 0x17, 0x70, 0x86, 0xe9, 0x69, - 0x19, 0x7c, 0xf3, 0x0c, 0x2a, 0x10, 0x12, 0x30, 0x2a, 0x3e, 0x34, 0x31, 0x14, 0xc3, 0x82, 0xdf, - 0x80, 0x6c, 0x17, 0xd7, 0x49, 0x97, 0xe9, 0x19, 0x89, 0x7a, 0xe3, 0x0c, 0xa8, 0xc1, 0xad, 0x99, - 0x3b, 0x32, 0xe2, 0x96, 0xc3, 0xe9, 0xa0, 0xb6, 0xac, 0x12, 0x58, 0xf4, 0x8b, 0xf6, 0xb7, 0x90, - 0x02, 0x2d, 0x5e, 0x06, 0x85, 0xd8, 0x61, 0xb8, 0x04, 0x52, 0x1d, 0x32, 0xf0, 0xbf, 0x16, 0x24, - 0x7e, 0xc2, 0xe5, 0x80, 0xb0, 0xf2, 0x72, 0x14, 0x43, 0xaf, 0x24, 0x2f, 0x69, 0xc6, 0x30, 0x09, - 0x96, 0x9e, 0xc3, 0x0b, 0x75, 0x30, 0xf2, 0x42, 0xcd, 0xa3, 0x5d, 0x8f, 0x7a, 0x9b, 0xe0, 0x00, - 0x64, 0x19, 0xc7, 0xbc, 0xc7, 0xe4, 0x67, 0x7e, 0xb6, 0xf7, 0x61, 0x02, 0x54, 0x06, 0x8e, 0xc9, - 0xa6, 0x5c, 0x23, 0x05, 0x68, 0xdc, 0x4d, 0x81, 0x97, 0xc6, 0x5d, 0xae, 0xba, 0x4e, 0xd3, 0x92, - 0x6a, 0xf2, 0x1e, 0x48, 0xf3, 0x81, 0x17, 0xa8, 0xdb, 0x5a, 0x90, 0xfa, 0xee, 0xc0, 0x23, 0x0f, - 0x8f, 0xcb, 0x17, 0x67, 0x3a, 0x8a, 0x03, 0x48, 0xba, 0xc2, 0x5b, 0x61, 0x6d, 0xfe, 0xd7, 0xf7, - 0xee, 0x68, 0x22, 0x0f, 0x8f, 0xcb, 0xa7, 0x4e, 0x2f, 0x66, 0x18, 0x73, 0x34, 0x71, 0xd8, 0x07, - 0xb0, 0x8b, 0x19, 0xdf, 0xa5, 0xd8, 0x61, 0x3e, 0xa6, 0x65, 0x13, 0xd5, 0xbf, 0xd7, 0x1e, 0x8f, - 0x12, 0xc2, 0xa3, 0x56, 0x54, 0xf9, 0xc0, 0x9d, 0x89, 0x68, 0x68, 0x0a, 0x02, 0x7c, 0x05, 0x64, - 0x29, 0xc1, 0xcc, 0x75, 0x94, 0xc2, 0x86, 0x8d, 0x45, 0xd2, 0x8a, 0xd4, 0x6e, 0x5c, 0x76, 0x32, - 0xa7, 0xcb, 0x8e, 0xf1, 0xb7, 0x06, 0x96, 0x9f, 0xc3, 0x50, 0xe2, 0x8d, 0x0e, 0x25, 0x1f, 0xcc, - 0x91, 0x74, 0x33, 0xc6, 0x91, 0x16, 0xb8, 0x30, 0x7e, 0xd2, 0xff, 0x04, 0xe1, 0x0e, 0x48, 0x51, - 0xd2, 0x7a, 0xb2, 0xe1, 0xa3, 0xa0, 0xb0, 0x52, 0x88, 0xb4, 0x90, 0x08, 0x63, 0xfc, 0x38, 0x85, - 0xd4, 0xe2, 0x21, 0x22, 0x4c, 0x3c, 0xd9, 0xab, 0x20, 0xd7, 0x63, 0x84, 0xc6, 0x9e, 0xed, 0xb0, - 0x4b, 0x7b, 0xca, 0x8e, 0xc2, 0x13, 0xf0, 0x22, 0x48, 0xf5, 0xac, 0xa6, 0x22, 0x6f, 0x08, 0xb5, - 0xb7, 0xbd, 0x89, 0x84, 0x1d, 0x1a, 0x20, 0xdb, 0xa6, 0x6e, 0xcf, 0x0b, 0x46, 0x0e, 0x20, 0xa8, - 0x70, 0x4d, 0x5a, 0x90, 0xda, 0x81, 0xdf, 0x69, 0x20, 0x43, 0xc4, 0xac, 0xa1, 0x84, 0xff, 0x8b, - 0x39, 0x76, 0x3a, 0x2c, 0xcb, 0x94, 0xd3, 0x8c, 0x2f, 0xc9, 0x61, 0xf7, 0xa5, 0x0d, 0xf9, 0xe0, - 0xc5, 0x6f, 0xd5, 0xc4, 0x33, 0x4b, 0x89, 0x3f, 0x8b, 0x2b, 0x71, 0x61, 0x63, 0xeb, 0x0c, 0x59, - 0x46, 0x93, 0x55, 0x5c, 0xd0, 0xff, 0x4a, 0x4e, 0xf2, 0x5c, 0xce, 0xa1, 0x07, 0x20, 0x17, 0x78, - 0x2b, 0x0a, 0x5c, 0x9d, 0x43, 0x8b, 0xa2, 0x6b, 0x0d, 0x2c, 0x28, 0x84, 0x91, 0xb2, 0x14, 0x9f, - 0x42, 0x37, 0x4e, 0xe7, 0xdc, 0x8e, 0xdb, 0xc0, 0xdd, 0x71, 0xe2, 0x81, 0x29, 0x63, 0xe8, 0x5d, - 0x0d, 0xe4, 0x69, 0x70, 0x27, 0x4a, 0x8e, 0x76, 0x9f, 0xc6, 0x7d, 0xd7, 0xce, 0x0d, 0x8f, 0xcb, - 0xf9, 0x70, 0x89, 0x22, 0x54, 0xe3, 0xe7, 0xe4, 0xe4, 0x77, 0xe6, 0xab, 0x27, 0xfc, 0x5e, 0x03, - 0xa0, 0x11, 0x28, 0xaa, 0x3f, 0xed, 0xce, 0x37, 0xbf, 0x50, 0xae, 0xa3, 0x57, 0x36, 0x34, 0x31, - 0x14, 0xc3, 0x86, 0x5f, 0x47, 0xc3, 0xd6, 0xd9, 0xff, 0x15, 0x4d, 0x97, 0x95, 0xd9, 0x03, 0x99, - 0xf1, 0x9b, 0x06, 0x16, 0x03, 0xa7, 0x67, 0xa0, 0xb5, 0xfb, 0xa3, 0x5a, 0x3b, 0x17, 0x7a, 0x4f, - 0xd5, 0xd8, 0xda, 0xca, 0xd1, 0x49, 0x29, 0x71, 0xff, 0xa4, 0x94, 0x78, 0x70, 0x52, 0x4a, 0xdc, - 0x19, 0x96, 0xb4, 0xa3, 0x61, 0x49, 0xbb, 0x3f, 0x2c, 0x69, 0x0f, 0x86, 0x25, 0xed, 0x8f, 0x61, - 0x49, 0xfb, 0xe1, 0xcf, 0x52, 0xe2, 0xd3, 0x64, 0x7f, 0xfd, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x0c, 0xd2, 0x26, 0x83, 0xbf, 0x11, 0x00, 0x00, -} diff --git a/pkg/template/apis/template/v1/generated.proto b/pkg/template/apis/template/v1/generated.proto index ceed8beb146e..e9e3c7a74738 100644 --- a/pkg/template/apis/template/v1/generated.proto +++ b/pkg/template/apis/template/v1/generated.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.template.apis.template.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,49 +13,61 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // BrokerTemplateInstance holds the service broker-related state associated with // a TemplateInstance. BrokerTemplateInstance is part of an experimental API. message BrokerTemplateInstance { // Standard object metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // spec describes the state of this BrokerTemplateInstance. - optional BrokerTemplateInstanceSpec spec = 2; + optional BrokerTemplateInstanceSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; } // BrokerTemplateInstanceList is a list of BrokerTemplateInstance objects. message BrokerTemplateInstanceList { // Standard object metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // items is a list of BrokerTemplateInstances - repeated BrokerTemplateInstance items = 2; + repeated BrokerTemplateInstance items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // BrokerTemplateInstanceSpec describes the state of a BrokerTemplateInstance. message BrokerTemplateInstanceSpec { // templateinstance is a reference to a TemplateInstance object residing // in a namespace. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference templateInstance = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference templateInstance = 1 [(gogoproto.customname) = "TemplateInstance", (gogoproto.nullable) = false]; // secret is a reference to a Secret object residing in a namespace, // containing the necessary template parameters. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference secret = 2; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference secret = 2 [(gogoproto.customname) = "Secret", (gogoproto.nullable) = false]; // bindingids is a list of 'binding_id's provided during successive bind // calls to the template service broker. - repeated string bindingIDs = 3; + repeated string bindingIDs = 3 [(gogoproto.customname) = "BindingIDs"]; } // ExtraValue masks the value so protobuf can generate // +protobuf.nullable=true // +protobuf.options.(gogoproto.goproto_stringer)=false message ExtraValue { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + // items, if empty, will result in an empty slice - repeated string items = 1; + repeated string items = 1 [(gogoproto.customname) = "Items"]; } // Parameter defines a name/value variable that is to be processed during @@ -62,18 +75,18 @@ message ExtraValue { message Parameter { // Name must be set and it can be referenced in Template // Items using ${PARAMETER_NAME}. Required. - optional string name = 1; + optional string name = 1 [(gogoproto.customname) = "Name", (gogoproto.nullable) = false]; // Optional: The name that will show in UI instead of parameter 'Name' - optional string displayName = 2; + optional string displayName = 2 [(gogoproto.customname) = "DisplayName", (gogoproto.nullable) = false]; // Description of a parameter. Optional. - optional string description = 3; + optional string description = 3 [(gogoproto.customname) = "Description", (gogoproto.nullable) = false]; // Value holds the Parameter data. If specified, the generator will be // ignored. The value replaces all occurrences of the Parameter ${Name} // expression during the Template to Config transformation. Optional. - optional string value = 4; + optional string value = 4 [(gogoproto.customname) = "Value", (gogoproto.nullable) = false]; // generate specifies the generator to be used to generate random string // from an input value specified by From field. The result string is @@ -92,19 +105,19 @@ message Parameter { // "[0-1]{8}" | "01001100" // "0x[A-F0-9]{4}" | "0xB3AF" // "[a-zA-Z0-9]{8}" | "hW4yQU5i" - optional string generate = 5; + optional string generate = 5 [(gogoproto.customname) = "Generate", (gogoproto.nullable) = false]; // From is an input value for the generator. Optional. - optional string from = 6; + optional string from = 6 [(gogoproto.customname) = "From", (gogoproto.nullable) = false]; // Optional: Indicates the parameter must have a value. Defaults to false. - optional bool required = 7; + optional bool required = 7 [(gogoproto.customname) = "Required", (gogoproto.nullable) = false]; } // Template contains the inputs needed to produce a Config. message Template { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // message is an optional instructional message that will // be displayed when this template is instantiated. @@ -112,7 +125,7 @@ message Template { // Parameter substitution will be performed on the message before being // displayed so that generated credentials and other parameters can be // included in the output. - optional string message = 2; + optional string message = 2 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; // objects is an array of resources to include in this template. // If a namespace value is hardcoded in the object, it will be removed @@ -120,59 +133,59 @@ message Template { // is, or contains, a ${PARAMETER_REFERENCE}, the resolved // value after parameter substitution will be respected and the object // will be created in that namespace. - repeated k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; + repeated k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3 [(gogoproto.customname) = "Objects", (gogoproto.nullable) = false]; // parameters is an optional array of Parameters used during the // Template to Config transformation. - repeated Parameter parameters = 4; + repeated Parameter parameters = 4 [(gogoproto.customname) = "Parameters", (gogoproto.nullable) = false]; // labels is a optional set of labels that are applied to every // object during the Template to Config transformation. - map labels = 5; + map labels = 5 [(gogoproto.customname) = "ObjectLabels", (gogoproto.nullable) = false]; } // TemplateInstance requests and records the instantiation of a Template. // TemplateInstance is part of an experimental API. message TemplateInstance { // Standard object metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // spec describes the desired state of this TemplateInstance. - optional TemplateInstanceSpec spec = 2; + optional TemplateInstanceSpec spec = 2 [(gogoproto.customname) = "Spec", (gogoproto.nullable) = false]; // status describes the current state of this TemplateInstance. - optional TemplateInstanceStatus status = 3; + optional TemplateInstanceStatus status = 3 [(gogoproto.customname) = "Status", (gogoproto.nullable) = false]; } // TemplateInstanceCondition contains condition information for a // TemplateInstance. message TemplateInstanceCondition { // Type of the condition, currently Ready or InstantiateFailure. - optional string type = 1; + optional string type = 1 [(gogoproto.casttype) = "TemplateInstanceConditionType", (gogoproto.customname) = "Type", (gogoproto.nullable) = false]; // Status of the condition, one of True, False or Unknown. - optional string status = 2; + optional string status = 2 [(gogoproto.casttype) = "k8s.io/kubernetes/pkg/api/v1.ConditionStatus", (gogoproto.customname) = "Status", (gogoproto.nullable) = false]; // LastTransitionTime is the last time a condition status transitioned from // one state to another. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3 [(gogoproto.customname) = "LastTransitionTime", (gogoproto.nullable) = false]; // Reason is a brief machine readable explanation for the condition's last // transition. - optional string reason = 4; + optional string reason = 4 [(gogoproto.customname) = "Reason", (gogoproto.nullable) = false]; // Message is a human readable description of the details of the last // transition, complementing reason. - optional string message = 5; + optional string message = 5 [(gogoproto.customname) = "Message", (gogoproto.nullable) = false]; } // TemplateInstanceList is a list of TemplateInstance objects. message TemplateInstanceList { // Standard object metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // items is a list of Templateinstances - repeated TemplateInstance items = 2; + repeated TemplateInstance items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // TemplateInstanceObject references an object created by a TemplateInstance. @@ -180,57 +193,57 @@ message TemplateInstanceObject { // ref is a reference to the created object. When used under .spec, only // name and namespace are used; these can contain references to parameters // which will be substituted following the usual rules. - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference ref = 1; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference ref = 1 [(gogoproto.customname) = "Ref", (gogoproto.nullable) = false]; } // TemplateInstanceRequester holds the identity of an agent requesting a // template instantiation. message TemplateInstanceRequester { // username uniquely identifies this user among all active users. - optional string username = 1; + optional string username = 1 [(gogoproto.customname) = "Username", (gogoproto.nullable) = false]; // uid is a unique value that identifies this user across time; if this user is // deleted and another user by the same name is added, they will have // different UIDs. - optional string uid = 2; + optional string uid = 2 [(gogoproto.customname) = "UID", (gogoproto.nullable) = false]; // groups represent the groups this user is a part of. - repeated string groups = 3; + repeated string groups = 3 [(gogoproto.customname) = "Groups"]; // extra holds additional information provided by the authenticator. - map extra = 4; + map extra = 4 [(gogoproto.customname) = "Extra", (gogoproto.nullable) = false]; } // TemplateInstanceSpec describes the desired state of a TemplateInstance. message TemplateInstanceSpec { // template is a full copy of the template for instantiation. - optional Template template = 1; + optional Template template = 1 [(gogoproto.customname) = "Template", (gogoproto.nullable) = false]; // secret is a reference to a Secret object containing the necessary // template parameters. - optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference secret = 2; + optional k8s.io.kubernetes.pkg.api.v1.LocalObjectReference secret = 2 [(gogoproto.customname) = "Secret"]; // requester holds the identity of the agent requesting the template // instantiation. - optional TemplateInstanceRequester requester = 3; + optional TemplateInstanceRequester requester = 3 [(gogoproto.customname) = "Requester"]; } // TemplateInstanceStatus describes the current state of a TemplateInstance. message TemplateInstanceStatus { // conditions represent the latest available observations of a // TemplateInstance's current state. - repeated TemplateInstanceCondition conditions = 1; + repeated TemplateInstanceCondition conditions = 1 [(gogoproto.customname) = "Conditions", (gogoproto.nullable) = false]; // Objects references the objects created by the TemplateInstance. - repeated TemplateInstanceObject objects = 2; + repeated TemplateInstanceObject objects = 2 [(gogoproto.customname) = "Objects", (gogoproto.nullable) = false]; } // TemplateList is a list of Template objects. message TemplateList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is a list of templates - repeated Template items = 2; + repeated Template items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } diff --git a/pkg/user/apis/user/v1/generated.pb.go b/pkg/user/apis/user/v1/generated.pb.go deleted file mode 100644 index 944982fb7136..000000000000 --- a/pkg/user/apis/user/v1/generated.pb.go +++ /dev/null @@ -1,1974 +0,0 @@ -// Code generated by protoc-gen-gogo. -// source: github.com/openshift/origin/pkg/user/apis/user/v1/generated.proto -// DO NOT EDIT! - -/* - Package v1 is a generated protocol buffer package. - - It is generated from these files: - github.com/openshift/origin/pkg/user/apis/user/v1/generated.proto - - It has these top-level messages: - Group - GroupList - Identity - IdentityList - OptionalNames - User - UserIdentityMapping - UserList -*/ -package v1 - -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - -import strings "strings" -import reflect "reflect" - -import io "io" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *Group) Reset() { *m = Group{} } -func (*Group) ProtoMessage() {} -func (*Group) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } - -func (m *GroupList) Reset() { *m = GroupList{} } -func (*GroupList) ProtoMessage() {} -func (*GroupList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } - -func (m *Identity) Reset() { *m = Identity{} } -func (*Identity) ProtoMessage() {} -func (*Identity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } - -func (m *IdentityList) Reset() { *m = IdentityList{} } -func (*IdentityList) ProtoMessage() {} -func (*IdentityList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } - -func (m *OptionalNames) Reset() { *m = OptionalNames{} } -func (*OptionalNames) ProtoMessage() {} -func (*OptionalNames) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } - -func (m *User) Reset() { *m = User{} } -func (*User) ProtoMessage() {} -func (*User) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } - -func (m *UserIdentityMapping) Reset() { *m = UserIdentityMapping{} } -func (*UserIdentityMapping) ProtoMessage() {} -func (*UserIdentityMapping) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } - -func (m *UserList) Reset() { *m = UserList{} } -func (*UserList) ProtoMessage() {} -func (*UserList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } - -func init() { - proto.RegisterType((*Group)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.user.apis.user.v1.Group") - proto.RegisterType((*GroupList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.user.apis.user.v1.GroupList") - proto.RegisterType((*Identity)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.user.apis.user.v1.Identity") - proto.RegisterType((*IdentityList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.user.apis.user.v1.IdentityList") - proto.RegisterType((*OptionalNames)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.user.apis.user.v1.OptionalNames") - proto.RegisterType((*User)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.user.apis.user.v1.User") - proto.RegisterType((*UserIdentityMapping)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.user.apis.user.v1.UserIdentityMapping") - proto.RegisterType((*UserList)(nil), "ytb.ewangdian.workers.dev.openshift.origin.pkg.user.apis.user.v1.UserList") -} -func (m *Group) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Group) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - if m.Users != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Users.Size())) - n2, err := m.Users.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - } - return i, nil -} - -func (m *GroupList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n3, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *Identity) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Identity) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n4, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ProviderName))) - i += copy(dAtA[i:], m.ProviderName) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ProviderUserName))) - i += copy(dAtA[i:], m.ProviderUserName) - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.User.Size())) - n5, err := m.User.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - if len(m.Extra) > 0 { - keysForExtra := make([]string, 0, len(m.Extra)) - for k := range m.Extra { - keysForExtra = append(keysForExtra, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) - for _, k := range keysForExtra { - dAtA[i] = 0x2a - i++ - v := m.Extra[string(k)] - mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) - } - } - return i, nil -} - -func (m *IdentityList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IdentityList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n6, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m OptionalNames) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m OptionalNames) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m) > 0 { - for _, s := range m { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *User) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *User) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n7, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FullName))) - i += copy(dAtA[i:], m.FullName) - if len(m.Identities) > 0 { - for _, s := range m.Identities { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.Groups) > 0 { - for _, s := range m.Groups { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *UserIdentityMapping) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UserIdentityMapping) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n8, err := m.ObjectMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Identity.Size())) - n9, err := m.Identity.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.User.Size())) - n10, err := m.User.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 - return i, nil -} - -func (m *UserList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UserList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n11, err := m.ListMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - dAtA[offset+4] = uint8(v >> 32) - dAtA[offset+5] = uint8(v >> 40) - dAtA[offset+6] = uint8(v >> 48) - dAtA[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *Group) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Users != nil { - l = m.Users.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *GroupList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Identity) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ProviderName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ProviderUserName) - n += 1 + l + sovGenerated(uint64(l)) - l = m.User.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Extra) > 0 { - for k, v := range m.Extra { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *IdentityList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m OptionalNames) Size() (n int) { - var l int - _ = l - if len(m) > 0 { - for _, s := range m { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *User) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FullName) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Identities) > 0 { - for _, s := range m.Identities { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *UserIdentityMapping) Size() (n int) { - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Identity.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.User.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *UserList) Size() (n int) { - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Group) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Group{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Users:` + strings.Replace(fmt.Sprintf("%v", this.Users), "OptionalNames", "OptionalNames", 1) + `,`, - `}`, - }, "") - return s -} -func (this *GroupList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GroupList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Group", "Group", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *Identity) String() string { - if this == nil { - return "nil" - } - keysForExtra := make([]string, 0, len(this.Extra)) - for k := range this.Extra { - keysForExtra = append(keysForExtra, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) - mapStringForExtra := "map[string]string{" - for _, k := range keysForExtra { - mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k]) - } - mapStringForExtra += "}" - s := strings.Join([]string{`&Identity{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `ProviderName:` + fmt.Sprintf("%v", this.ProviderName) + `,`, - `ProviderUserName:` + fmt.Sprintf("%v", this.ProviderUserName) + `,`, - `User:` + strings.Replace(strings.Replace(this.User.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `Extra:` + mapStringForExtra + `,`, - `}`, - }, "") - return s -} -func (this *IdentityList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IdentityList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Identity", "Identity", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *User) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&User{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `FullName:` + fmt.Sprintf("%v", this.FullName) + `,`, - `Identities:` + fmt.Sprintf("%v", this.Identities) + `,`, - `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, - `}`, - }, "") - return s -} -func (this *UserIdentityMapping) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UserIdentityMapping{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Identity:` + strings.Replace(strings.Replace(this.Identity.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `User:` + strings.Replace(strings.Replace(this.User.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *UserList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UserList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "User", "User", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Group) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Group: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Group: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Users == nil { - m.Users = OptionalNames{} - } - if err := m.Users.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Group{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Identity) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Identity: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Identity: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProviderName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProviderName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProviderUserName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProviderUserName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.Extra == nil { - m.Extra = make(map[string]string) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue := string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - m.Extra[mapkey] = mapvalue - } else { - var mapvalue string - m.Extra[mapkey] = mapvalue - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IdentityList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IdentityList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IdentityList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Identity{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OptionalNames) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OptionalNames: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OptionalNames: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - *m = append(*m, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *User) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: User: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: User: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FullName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FullName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identities", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identities = append(m.Identities, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UserIdentityMapping) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UserIdentityMapping: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UserIdentityMapping: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Identity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UserList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UserList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UserList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, User{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/openshift/origin/pkg/user/apis/user/v1/generated.proto", fileDescriptorGenerated) -} - -var fileDescriptorGenerated = []byte{ - // 759 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xcf, 0x6f, 0x12, 0x41, - 0x14, 0x66, 0x81, 0x6d, 0x60, 0x4a, 0x0d, 0x59, 0x7b, 0x20, 0x1c, 0x96, 0x66, 0x4f, 0x1c, 0xda, - 0x59, 0xa9, 0x46, 0x49, 0xbd, 0x28, 0xb1, 0x35, 0x4d, 0xac, 0x6d, 0x26, 0xf1, 0xa2, 0x35, 0xe9, - 0x00, 0xc3, 0x32, 0x02, 0xbb, 0x9b, 0xd9, 0x59, 0x22, 0xb7, 0xfe, 0x09, 0x1e, 0x3d, 0x7a, 0xf1, - 0x5f, 0x31, 0x1c, 0x8c, 0xe9, 0xb1, 0x07, 0x43, 0xec, 0xea, 0xc9, 0xbf, 0xc2, 0xcc, 0xec, 0x0f, - 0x40, 0xda, 0x68, 0xab, 0xe1, 0x36, 0x33, 0xfb, 0xbe, 0xef, 0xbd, 0xef, 0xbd, 0xf7, 0x2d, 0x78, - 0x6c, 0x51, 0xde, 0xf5, 0x9b, 0xb0, 0xe5, 0x0c, 0x4c, 0xc7, 0x25, 0xb6, 0xd7, 0xa5, 0x1d, 0x6e, - 0x3a, 0x8c, 0x5a, 0xd4, 0x36, 0xdd, 0x9e, 0x65, 0xfa, 0x1e, 0x61, 0x26, 0x76, 0xa9, 0x17, 0x9e, - 0x86, 0x35, 0xd3, 0x22, 0x36, 0x61, 0x98, 0x93, 0x36, 0x74, 0x99, 0xc3, 0x1d, 0xad, 0x36, 0xa5, - 0x80, 0x09, 0x05, 0x0c, 0x29, 0xa0, 0xdb, 0xb3, 0xa0, 0x00, 0x42, 0x41, 0x11, 0x9e, 0x86, 0xb5, - 0xf2, 0xd6, 0x4c, 0x56, 0xcb, 0xb1, 0x1c, 0x53, 0x32, 0x35, 0xfd, 0x8e, 0xbc, 0xc9, 0x8b, 0x3c, - 0x85, 0x19, 0xca, 0xf7, 0x7a, 0x75, 0x0f, 0x52, 0x47, 0x94, 0x31, 0xc0, 0xad, 0x2e, 0xb5, 0x09, - 0x1b, 0xc9, 0xe2, 0x64, 0x5d, 0x03, 0xc2, 0xf1, 0x25, 0x75, 0x95, 0xcd, 0xab, 0x50, 0xcc, 0xb7, - 0x39, 0x1d, 0x90, 0x05, 0xc0, 0xfd, 0x3f, 0x01, 0xbc, 0x56, 0x97, 0x0c, 0xf0, 0x02, 0xee, 0xee, - 0x55, 0x38, 0x9f, 0xd3, 0xbe, 0x49, 0x6d, 0xee, 0x71, 0xb6, 0x00, 0xda, 0x8c, 0x40, 0x3d, 0xbf, - 0x49, 0x98, 0x4d, 0x38, 0xf1, 0x62, 0x45, 0x97, 0x68, 0x31, 0x3e, 0x2b, 0x40, 0x7d, 0xca, 0x1c, - 0xdf, 0xd5, 0x4e, 0x40, 0x4e, 0x08, 0x6e, 0x63, 0x8e, 0x4b, 0xca, 0x86, 0x52, 0x5d, 0xdd, 0xbe, - 0x03, 0x43, 0x2a, 0x38, 0x9b, 0x5f, 0x36, 0x5e, 0xf6, 0x5c, 0x44, 0xc3, 0x61, 0x0d, 0x1e, 0x36, - 0xdf, 0x90, 0x16, 0x3f, 0x20, 0x1c, 0x37, 0xb4, 0xf1, 0xa4, 0x92, 0x0a, 0x26, 0x15, 0x30, 0x7d, - 0x43, 0x09, 0xab, 0x86, 0x81, 0x2a, 0xe6, 0xe4, 0x95, 0xd2, 0x92, 0xfe, 0x11, 0xbc, 0xf6, 0x7c, - 0xe1, 0xa1, 0xcb, 0xa9, 0x63, 0xe3, 0xfe, 0x73, 0x3c, 0x20, 0x5e, 0x23, 0x1f, 0x4c, 0x2a, 0xea, - 0x0b, 0x41, 0x89, 0x42, 0x66, 0x63, 0xac, 0x80, 0xbc, 0x94, 0xf3, 0x8c, 0x7a, 0x5c, 0x3b, 0x5e, - 0x90, 0x04, 0xff, 0x4e, 0x92, 0x40, 0x4b, 0x41, 0xc5, 0x48, 0x50, 0x2e, 0x7e, 0x99, 0x91, 0xf3, - 0x1a, 0xa8, 0x94, 0x93, 0x81, 0x90, 0x93, 0xa9, 0xae, 0x6e, 0xd7, 0x6f, 0x20, 0x47, 0x96, 0xda, - 0x58, 0x8b, 0x92, 0xa8, 0xfb, 0x82, 0x0e, 0x85, 0xac, 0xc6, 0x8f, 0x0c, 0xc8, 0xed, 0xb7, 0x89, - 0xcd, 0x29, 0x1f, 0x2d, 0x61, 0x38, 0x75, 0x50, 0x70, 0x99, 0x33, 0xa4, 0x6d, 0xc2, 0x44, 0x73, - 0xe5, 0x8c, 0xf2, 0x8d, 0xf5, 0x08, 0x53, 0x38, 0x9a, 0xf9, 0x86, 0xe6, 0x22, 0xb5, 0x27, 0xa0, - 0x18, 0xdf, 0xc5, 0x2c, 0x24, 0x3a, 0x23, 0xd1, 0xa5, 0x08, 0x5d, 0x3c, 0xfa, 0xed, 0x3b, 0x5a, - 0x40, 0x68, 0x87, 0x20, 0x2b, 0xba, 0x52, 0xca, 0x4a, 0x75, 0x5b, 0xb1, 0xba, 0xe9, 0x16, 0xc7, - 0xda, 0xa6, 0xaa, 0x10, 0xe9, 0x10, 0x46, 0xec, 0x16, 0x69, 0x14, 0xa2, 0x44, 0x59, 0x41, 0x87, - 0x24, 0x91, 0xd6, 0x03, 0x2a, 0x79, 0xcb, 0x19, 0x2e, 0xa9, 0x72, 0x3c, 0x7b, 0x37, 0x18, 0x4f, - 0xdc, 0x7e, 0xb8, 0x2b, 0x88, 0x76, 0x6d, 0xce, 0x46, 0xd3, 0x61, 0xc9, 0x37, 0x14, 0xe6, 0x28, - 0xd7, 0x01, 0x98, 0xc6, 0x68, 0x45, 0x90, 0xe9, 0x91, 0x91, 0x1c, 0x54, 0x1e, 0x89, 0xa3, 0xb6, - 0x0e, 0xd4, 0x21, 0xee, 0xfb, 0x51, 0x5b, 0x51, 0x78, 0xd9, 0x49, 0xd7, 0x15, 0xe3, 0x8b, 0x02, - 0x0a, 0x71, 0x9e, 0x25, 0x2c, 0xed, 0xc9, 0xfc, 0xd2, 0x3e, 0xfc, 0x87, 0xae, 0x5c, 0xb1, 0xb7, - 0x3b, 0x60, 0x6d, 0xce, 0xa5, 0x5a, 0x25, 0x4e, 0xa9, 0x6c, 0x64, 0xaa, 0xf9, 0xd0, 0xb4, 0xb3, - 0x88, 0x9d, 0xdc, 0xfb, 0x0f, 0x95, 0xd4, 0xe9, 0xd7, 0x8d, 0x94, 0xf1, 0x53, 0x01, 0x72, 0x84, - 0x4b, 0xd8, 0xf7, 0x4d, 0x90, 0xeb, 0xf8, 0xfd, 0xfe, 0xcc, 0xae, 0x27, 0x6d, 0xdb, 0x8b, 0xde, - 0x51, 0x12, 0xa1, 0x41, 0x00, 0x68, 0x28, 0x9b, 0x12, 0xaf, 0x94, 0x91, 0x42, 0x6e, 0x09, 0xee, - 0xfd, 0xe4, 0x15, 0xcd, 0x44, 0x68, 0x06, 0x58, 0xb1, 0x84, 0xb7, 0xbd, 0x52, 0x56, 0xc6, 0x82, - 0x60, 0x52, 0x59, 0x91, 0x6e, 0xf7, 0x50, 0xf4, 0xc5, 0xf8, 0x98, 0x06, 0xb7, 0x85, 0xd8, 0xb8, - 0x9f, 0x07, 0xd8, 0x75, 0xa9, 0x6d, 0x2d, 0x41, 0xfb, 0x2b, 0x90, 0x8b, 0x6a, 0x1d, 0x45, 0xff, - 0xe2, 0x6b, 0xfa, 0x2d, 0x69, 0x55, 0x5c, 0x3b, 0x4a, 0x08, 0x13, 0x23, 0x67, 0xfe, 0x93, 0x91, - 0x8d, 0x4f, 0x0a, 0xc8, 0x89, 0xeb, 0x12, 0xdc, 0x71, 0x3c, 0xef, 0x8e, 0x07, 0x37, 0x70, 0x87, - 0xa8, 0xf4, 0x72, 0x67, 0x34, 0xaa, 0xe3, 0x0b, 0x3d, 0x75, 0x76, 0xa1, 0xa7, 0xce, 0x2f, 0xf4, - 0xd4, 0x69, 0xa0, 0x2b, 0xe3, 0x40, 0x57, 0xce, 0x02, 0x5d, 0x39, 0x0f, 0x74, 0xe5, 0x5b, 0xa0, - 0x2b, 0xef, 0xbe, 0xeb, 0xa9, 0x97, 0xe9, 0x61, 0xed, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x10, - 0x38, 0x1d, 0xb8, 0x3d, 0x09, 0x00, 0x00, -} diff --git a/pkg/user/apis/user/v1/generated.proto b/pkg/user/apis/user/v1/generated.proto index 2f6d238fa59f..cae66cd71985 100644 --- a/pkg/user/apis/user/v1/generated.proto +++ b/pkg/user/apis/user/v1/generated.proto @@ -5,6 +5,7 @@ syntax = 'proto2'; package ytb.ewangdian.workers.dev.openshift.origin.pkg.user.apis.user.v1; +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; @@ -12,24 +13,33 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; // Package-wide variables from generator "generated". +option (gogoproto.marshaler_all) = true; +option (gogoproto.stable_marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_unrecognized_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; +option (gogoproto.goproto_getters_all) = false; option go_package = "v1"; // Group represents a referenceable set of Users message Group { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Users is the list of users in this group. - optional OptionalNames users = 2; + optional OptionalNames users = 2 [(gogoproto.customname) = "Users"]; } // GroupList is a collection of Groups message GroupList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of groups - repeated Group items = 2; + repeated Group items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // Identity records a successful authentication of a user with an identity provider. The @@ -39,38 +49,41 @@ message GroupList { // using a schema determined by the provider. message Identity { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // ProviderName is the source of identity information - optional string providerName = 2; + optional string providerName = 2 [(gogoproto.customname) = "ProviderName", (gogoproto.nullable) = false]; // ProviderUserName uniquely represents this identity in the scope of the provider - optional string providerUserName = 3; + optional string providerUserName = 3 [(gogoproto.customname) = "ProviderUserName", (gogoproto.nullable) = false]; // User is a reference to the user this identity is associated with // Both Name and UID must be set - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference user = 4; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference user = 4 [(gogoproto.customname) = "User", (gogoproto.nullable) = false]; // Extra holds extra information about this identity - map extra = 5; + map extra = 5 [(gogoproto.customname) = "Extra", (gogoproto.nullable) = false]; } // IdentityList is a collection of Identities message IdentityList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of identities - repeated Identity items = 2; + repeated Identity items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; } // OptionalNames is an array that may also be left nil to distinguish between set and unset. // +protobuf.nullable=true // +protobuf.options.(gogoproto.goproto_stringer)=false message OptionalNames { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + // items, if empty, will result in an empty slice - repeated string items = 1; + repeated string items = 1 [(gogoproto.customname) = "Items"]; } // Upon log in, every user of the system receives a User and Identity resource. Administrators @@ -80,38 +93,38 @@ message OptionalNames { // a number appended to it depending on the configuration of the system. message User { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // FullName is the full name of user - optional string fullName = 2; + optional string fullName = 2 [(gogoproto.customname) = "FullName", (gogoproto.nullable) = false]; // Identities are the identities associated with this user - repeated string identities = 3; + repeated string identities = 3 [(gogoproto.customname) = "Identities"]; // Groups specifies group names this user is a member of. // This field is deprecated and will be removed in a future release. // Instead, create a Group object containing the name of this User. - repeated string groups = 4; + repeated string groups = 4 [(gogoproto.customname) = "Groups"]; } // UserIdentityMapping maps a user to an identity message UserIdentityMapping { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1 [(gogoproto.customname) = "ObjectMeta", (gogoproto.nullable) = false]; // Identity is a reference to an identity - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference identity = 2; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference identity = 2 [(gogoproto.customname) = "Identity", (gogoproto.nullable) = false]; // User is a reference to a user - optional k8s.io.kubernetes.pkg.api.v1.ObjectReference user = 3; + optional k8s.io.kubernetes.pkg.api.v1.ObjectReference user = 3 [(gogoproto.customname) = "User", (gogoproto.nullable) = false]; } // UserList is a collection of Users message UserList { // Standard object's metadata. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1 [(gogoproto.customname) = "ListMeta", (gogoproto.nullable) = false]; // Items is the list of users - repeated User items = 2; + repeated User items = 2 [(gogoproto.customname) = "Items", (gogoproto.nullable) = false]; }