resource

package
v1.8.3-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

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

func ClusterPolicy

func ClusterPolicy(raw []byte) Resource

func ClusterRole

func ClusterRole(raw []byte) Resource

func ClusterRoleBinding

func ClusterRoleBinding(raw []byte) Resource

func Clustered

func Clustered(gvr schema.GroupVersionResource, raw []byte) Resource

func ConfigMap

func ConfigMap(ns string, raw []byte) Resource

func Namespace

func Namespace(raw []byte) Resource

func Namespaced

func Namespaced(gvr schema.GroupVersionResource, ns string, raw []byte) Resource

func Resources

func Resources(resources ...Resource) []Resource

func Role

func Role(ns string, raw []byte) Resource

func RoleBinding

func RoleBinding(ns string, raw []byte) Resource

func (*Resource) Data

func (r *Resource) Data() []byte

func (*Resource) Gvr

func (*Resource) IsClustered

func (r *Resource) IsClustered() bool

func (*Resource) IsNamespaced

func (r *Resource) IsNamespaced() bool

func (*Resource) Namespace

func (r *Resource) Namespace() string

func (*Resource) Unstructured

func (r *Resource) Unstructured() *unstructured.Unstructured

Jump to

Keyboard shortcuts

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