role

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package role manipulates the k8s api of role object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Role)

Option configures an Role

func WithCompleteParams

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

WithCompleteParams provides an Option

type Role

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

Role is the object to encapsulate secrets

func New

func New(options ...Option) *Role

New news an Role

func (*Role) Create

func (r *Role) Create(role *rbacv1.Role) error

Create create a k8s role

func (*Role) Delete

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

Delete delete a k8s role

func (*Role) DeleteIfExists

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

DeleteIfExists delete if k8s role exists

func (*Role) Exists

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

Exists decides whether a role exists

func (*Role) Get

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

Get gets a k8s role

func (*Role) Patch

func (r *Role) Patch(role *rbacv1.Role) error

Patch patches a k8s role object

func (*Role) Update

func (r *Role) Update(role *rbacv1.Role) error

Update updates a k8s role

Jump to

Keyboard shortcuts

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