clusterrolebinding

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, crb *Instance) error

Create will create a ClusterRoleBinding

Args:

  • Pointer to a Client struct
  • Pointer to Instance

Returns:

error or nil

func Delete

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

Delete will delete a ClusteRroleBinding

Args:

  • Pointer to a Client struct
  • clusterrolebinding name

Returns:

error or nil

func List

List will list all ClusterRoleBinding

Args:

  • Client struct from client module

Returns:

  • pointer v1.NamespaceList or error

Types

type Instance

type Instance struct {
	Name            string
	LabelKey        string
	LabelValue      string
	SubjectKind     string
	SubjectName     string
	SubjectAPIGroup string
	RoleRefName     string
	RoleRefKind     string
	RoleRefAPIGroup string
	Annotations     map[string]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