rolebinding

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package rolebinding manipulates the k8s api of rolebinding object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*RoleBinding)

Option configures an RoleBinding

func WithCompleteParams

func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option

WithCompleteParams provides an Option

type RoleBinding

type RoleBinding struct {
	// contains filtered or unexported fields
}

RoleBinding is the object to encapsulate secrets

func New

func New(options ...Option) *RoleBinding

New news an RoleBinding

func (*RoleBinding) Create

func (r *RoleBinding) Create(rb *rbacv1.RoleBinding) error

Create create a k8s rolebinding

func (*RoleBinding) Delete

func (r *RoleBinding) Delete(namespace, name string) error

Delete delete a k8s rolebinding

func (*RoleBinding) DeleteIfExists

func (r *RoleBinding) DeleteIfExists(namespace, name string) error

DeleteIfExists delete if k8s rolebinding exists

func (*RoleBinding) Exists

func (r *RoleBinding) Exists(namespace, name string) error

Exists decides whether a rolebinding exists

func (*RoleBinding) Get

func (r *RoleBinding) Get(namespace, name string) (*rbacv1.RoleBinding, error)

Get gets a k8s rolebindling

func (*RoleBinding) Patch

func (r *RoleBinding) Patch(rb *rbacv1.RoleBinding) error

Patch patches a k8s rolebinding object

func (*RoleBinding) Update

func (r *RoleBinding) Update(rb *rbacv1.RoleBinding) error

Update updates a k8s rolebinding

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL