forked from barak/tarpoon
Add glide.yaml and vendor deps
This commit is contained in:
parent
db918f12ad
commit
5b3d5e81bd
18880 changed files with 5166045 additions and 1 deletions
26
vendor/k8s.io/kubernetes/pkg/apis/abac/v1beta1/BUILD
generated
vendored
Normal file
26
vendor/k8s.io/kubernetes/pkg/apis/abac/v1beta1/BUILD
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
licenses(["notice"])
|
||||
|
||||
load(
|
||||
"@io_bazel_rules_go//go:def.bzl",
|
||||
"go_binary",
|
||||
"go_library",
|
||||
"go_test",
|
||||
"cgo_library",
|
||||
)
|
||||
|
||||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = [
|
||||
"register.go",
|
||||
"types.go",
|
||||
],
|
||||
tags = ["automanaged"],
|
||||
deps = [
|
||||
"//pkg/apis/abac:go_default_library",
|
||||
"//pkg/apis/meta/v1:go_default_library",
|
||||
"//pkg/runtime:go_default_library",
|
||||
"//pkg/runtime/schema:go_default_library",
|
||||
],
|
||||
)
|
||||
50
vendor/k8s.io/kubernetes/pkg/apis/abac/v1beta1/register.go
generated
vendored
Normal file
50
vendor/k8s.io/kubernetes/pkg/apis/abac/v1beta1/register.go
generated
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/*
|
||||
Copyright 2015 The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package v1beta1
|
||||
|
||||
import (
|
||||
api "k8s.io/kubernetes/pkg/apis/abac"
|
||||
"k8s.io/kubernetes/pkg/runtime"
|
||||
"k8s.io/kubernetes/pkg/runtime/schema"
|
||||
)
|
||||
|
||||
const GroupName = "abac.authorization.kubernetes.io"
|
||||
|
||||
// SchemeGroupVersion is the API group and version for abac v1beta1
|
||||
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}
|
||||
|
||||
func init() {
|
||||
// TODO: delete this, abac should not have its own scheme.
|
||||
if err := addKnownTypes(api.Scheme); err != nil {
|
||||
// Programmer error.
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
var (
|
||||
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
||||
AddToScheme = SchemeBuilder.AddToScheme
|
||||
)
|
||||
|
||||
func addKnownTypes(scheme *runtime.Scheme) error {
|
||||
scheme.AddKnownTypes(SchemeGroupVersion,
|
||||
&Policy{},
|
||||
)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (obj *Policy) GetObjectKind() schema.ObjectKind { return &obj.TypeMeta }
|
||||
70
vendor/k8s.io/kubernetes/pkg/apis/abac/v1beta1/types.go
generated
vendored
Normal file
70
vendor/k8s.io/kubernetes/pkg/apis/abac/v1beta1/types.go
generated
vendored
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
Copyright 2015 The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:openapi-gen=true
|
||||
package v1beta1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/kubernetes/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
// Policy contains a single ABAC policy rule
|
||||
type Policy struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
|
||||
// Spec describes the policy rule
|
||||
Spec PolicySpec `json:"spec"`
|
||||
}
|
||||
|
||||
// PolicySpec contains the attributes for a policy rule
|
||||
type PolicySpec struct {
|
||||
// User is the username this rule applies to.
|
||||
// Either user or group is required to match the request.
|
||||
// "*" matches all users.
|
||||
// +optional
|
||||
User string `json:"user,omitempty"`
|
||||
|
||||
// Group is the group this rule applies to.
|
||||
// Either user or group is required to match the request.
|
||||
// "*" matches all groups.
|
||||
// +optional
|
||||
Group string `json:"group,omitempty"`
|
||||
|
||||
// Readonly matches readonly requests when true, and all requests when false
|
||||
// +optional
|
||||
Readonly bool `json:"readonly,omitempty"`
|
||||
|
||||
// APIGroup is the name of an API group. APIGroup, Resource, and Namespace are required to match resource requests.
|
||||
// "*" matches all API groups
|
||||
// +optional
|
||||
APIGroup string `json:"apiGroup,omitempty"`
|
||||
|
||||
// Resource is the name of a resource. APIGroup, Resource, and Namespace are required to match resource requests.
|
||||
// "*" matches all resources
|
||||
// +optional
|
||||
Resource string `json:"resource,omitempty"`
|
||||
|
||||
// Namespace is the name of a namespace. APIGroup, Resource, and Namespace are required to match resource requests.
|
||||
// "*" matches all namespaces (including unnamespaced requests)
|
||||
// +optional
|
||||
Namespace string `json:"namespace,omitempty"`
|
||||
|
||||
// NonResourcePath matches non-resource request paths.
|
||||
// "*" matches all paths
|
||||
// "/foo/*" matches all subpaths of foo
|
||||
// +optional
|
||||
NonResourcePath string `json:"nonResourcePath,omitempty"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue