rolebinding

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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