clusterrole

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c *client.Client, cr *Instance) error

Create will create a clusterrole

Args:

  • Pointer to a Client struct
  • Pointer to Instance

Returns:

error or nil

func Delete

func Delete(c *client.Client, clusterrolename string) error

Delete will delete a clusterrole

Args:

  • Pointer to a Client struct
  • clusterrolename name

Returns:

error or nil

func Exists

func Exists(c *client.Client, namespace string) (string, error)

Exists will check if the namespace exists or not

Args:

  • Pointer to a Client struct
  • namespace name

Returns:

string (namespace name) OR error type

func List

List will list all ClusterRoles

Args:

  • Client struct from client module

Returns:

  • pointer v1.NamespaceList or error

Types

type Instance

type Instance struct {
	Name           string
	LabelKey       string
	LabelValue     string
	APIGroups      []string
	Resources      []string
	ResourcesNames []string
	Verbs          []string
}

Instance type refers to the Pod object

Jump to

Keyboard shortcuts

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