networkpolicy

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type REST

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

REST implements rest.Storage for NetworkPolicies.

func NewREST

func NewREST(networkPolicyStore storage.Interface) *REST

NewREST returns a REST object that will work against API services.

func (*REST) ConvertToTable

func (r *REST) ConvertToTable(ctx context.Context, obj runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

func (*REST) Get

func (r *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

func (*REST) List

func (r *REST) List(ctx context.Context, options *internalversion.ListOptions) (runtime.Object, error)

func (*REST) NamespaceScoped

func (r *REST) NamespaceScoped() bool

func (*REST) New

func (r *REST) New() runtime.Object

func (*REST) NewList

func (r *REST) NewList() runtime.Object

func (*REST) Watch

func (r *REST) Watch(ctx context.Context, options *internalversion.ListOptions) (watch.Interface, error)

type StatusREST

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

StatusREST implements the REST endpoint for getting NetworkPolicy's status.

func NewStatusREST

func NewStatusREST(collector statusCollector) *StatusREST

NewStatusREST returns a REST object that will work against API services.

func (StatusREST) Create

func (s StatusREST) Create(ctx context.Context, name string, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)

func (StatusREST) New

func (s StatusREST) New() runtime.Object

Jump to

Keyboard shortcuts

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