| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
package v1beta1 |
| 20 |
|
| 21 |
import ( |
| 22 |
context "context" |
| 23 |
|
| 24 |
rbacv1beta1 "k8s.io/api/rbac/v1beta1" |
| 25 |
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 26 |
types "k8s.io/apimachinery/pkg/types" |
| 27 |
watch "k8s.io/apimachinery/pkg/watch" |
| 28 |
applyconfigurationsrbacv1beta1 "k8s.io/client-go/applyconfigurations/rbac/v1beta1" |
| 29 |
gentype "k8s.io/client-go/gentype" |
| 30 |
scheme "k8s.io/client-go/kubernetes/scheme" |
| 31 |
) |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
type ClusterRoleBindingsGetter interface { |
| 36 |
ClusterRoleBindings() ClusterRoleBindingInterface |
| 37 |
} |
| 38 |
|
| 39 |
|
| 40 |
type ClusterRoleBindingInterface interface { |
| 41 |
Create(ctx context.Context, clusterRoleBinding *rbacv1beta1.ClusterRoleBinding, opts v1.CreateOptions) (*rbacv1beta1.ClusterRoleBinding, error) |
| 42 |
Update(ctx context.Context, clusterRoleBinding *rbacv1beta1.ClusterRoleBinding, opts v1.UpdateOptions) (*rbacv1beta1.ClusterRoleBinding, error) |
| 43 |
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error |
| 44 |
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error |
| 45 |
Get(ctx context.Context, name string, opts v1.GetOptions) (*rbacv1beta1.ClusterRoleBinding, error) |
| 46 |
List(ctx context.Context, opts v1.ListOptions) (*rbacv1beta1.ClusterRoleBindingList, error) |
| 47 |
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) |
| 48 |
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *rbacv1beta1.ClusterRoleBinding, err error) |
| 49 |
Apply(ctx context.Context, clusterRoleBinding *applyconfigurationsrbacv1beta1.ClusterRoleBindingApplyConfiguration, opts v1.ApplyOptions) (result *rbacv1beta1.ClusterRoleBinding, err error) |
| 50 |
ClusterRoleBindingExpansion |
| 51 |
} |
| 52 |
|
| 53 |
|
| 54 |
type clusterRoleBindings struct { |
| 55 |
*gentype.ClientWithListAndApply[*rbacv1beta1.ClusterRoleBinding, *rbacv1beta1.ClusterRoleBindingList, *applyconfigurationsrbacv1beta1.ClusterRoleBindingApplyConfiguration] |
| 56 |
} |
| 57 |
|
| 58 |
|
| 59 |
func newClusterRoleBindings(c *RbacV1beta1Client) *clusterRoleBindings { |
| 60 |
return &clusterRoleBindings{ |
| 61 |
gentype.NewClientWithListAndApply[*rbacv1beta1.ClusterRoleBinding, *rbacv1beta1.ClusterRoleBindingList, *applyconfigurationsrbacv1beta1.ClusterRoleBindingApplyConfiguration]( |
| 62 |
"clusterrolebindings", |
| 63 |
c.RESTClient(), |
| 64 |
scheme.ParameterCodec, |
| 65 |
"", |
| 66 |
func() *rbacv1beta1.ClusterRoleBinding { return &rbacv1beta1.ClusterRoleBinding{} }, |
| 67 |
func() *rbacv1beta1.ClusterRoleBindingList { return &rbacv1beta1.ClusterRoleBindingList{} }, |
| 68 |
gentype.PrefersProtobuf[*rbacv1beta1.ClusterRoleBinding](), |
| 69 |
), |
| 70 |
} |
| 71 |
} |