internalversion

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

This package has the automatically generated typed clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreClient

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

CoreClient is used to interact with features provided by the k8s.io/kubernetes/pkg/apimachinery/registered.Group group.

func New

New creates a new CoreClient for the given RESTClient.

func NewForConfig

func NewForConfig(c *restclient.Config) (*CoreClient, error)

NewForConfig creates a new CoreClient for the given config.

func NewForConfigOrDie

func NewForConfigOrDie(c *restclient.Config) *CoreClient

NewForConfigOrDie creates a new CoreClient for the given config and panics if there is an error in the config.

func (*CoreClient) Policies

func (c *CoreClient) Policies(namespace string) PolicyInterface

func (*CoreClient) RESTClient

func (c *CoreClient) RESTClient() restclient.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

type CoreInterface

type CoreInterface interface {
	RESTClient() restclient.Interface
	PoliciesGetter
}

type PoliciesGetter

type PoliciesGetter interface {
	Policies(namespace string) PolicyInterface
}

PoliciesGetter has a method to return a PolicyInterface. A group's client should implement this interface.

type PolicyExpansion

type PolicyExpansion interface{}

type PolicyInterface

type PolicyInterface interface {
	Create(*api.Policy) (*api.Policy, error)
	Update(*api.Policy) (*api.Policy, error)
	Delete(name string, options *pkg_api.DeleteOptions) error
	DeleteCollection(options *pkg_api.DeleteOptions, listOptions pkg_api.ListOptions) error
	Get(name string) (*api.Policy, error)
	List(opts pkg_api.ListOptions) (*api.PolicyList, error)
	Watch(opts pkg_api.ListOptions) (watch.Interface, error)
	Patch(name string, pt pkg_api.PatchType, data []byte, subresources ...string) (result *api.Policy, err error)
	PolicyExpansion
}

PolicyInterface has methods to work with Policy resources.

Directories

Path Synopsis
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

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