policy

package
v0.0.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodPoliciesGetter

type PodPoliciesGetter interface {
	PodPolicies() PodPolicyInterface
}

PodsGetter has a method to return a PodInterface. A group's client should implement this interface.

type PodPolicyInterface

type PodPolicyInterface interface {
	Create(policy *policyv1.PodPolicy) (*policyv1.PodPolicy, error)
	Update(*policyv1.PodPolicy) (*policyv1.PodPolicy, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*policyv1.PodPolicy, error)
	List(opts metav1.ListOptions) (*policyv1.PodPolicyList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *policyv1.PodPolicy, err error)
}

PodInterface has methods to work with Pod resources.

type PolicyV1Client

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

func NewForConfig

func NewForConfig(c *rest.Config) (*PolicyV1Client, error)

func (*PolicyV1Client) PodPolicies

func (c *PolicyV1Client) PodPolicies() PodPolicyInterface

func (*PolicyV1Client) RESTClient

func (c *PolicyV1Client) RESTClient() rest.Interface

type PolicyV1Interface

type PolicyV1Interface interface {
	RESTClient() rest.Interface
	PodPoliciesGetter
}

Jump to

Keyboard shortcuts

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