clientset

package
v0.0.0-...-d0c0f99 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExtendedCodec = &extendedCodec{}

TODO(@sadlil): Find a better way to replace ExtendedCodec to encode and decode objects. Follow the guide to replace it with apiv1.Codec and apiv1.ParameterCodecs.

Functions

This section is empty.

Types

type CertificateGetter

type CertificateGetter interface {
	Certificates(namespace string) CertificateInterface
}

type CertificateImpl

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

func (*CertificateImpl) Create

func (c *CertificateImpl) Create(certificate *tapi.Certificate) (result *tapi.Certificate, err error)

func (*CertificateImpl) Delete

func (c *CertificateImpl) Delete(name string) (err error)

func (*CertificateImpl) Get

func (c *CertificateImpl) Get(name string) (result *tapi.Certificate, err error)

func (*CertificateImpl) List

func (c *CertificateImpl) List(opts metav1.ListOptions) (result *tapi.CertificateList, err error)

func (*CertificateImpl) Update

func (c *CertificateImpl) Update(certificate *tapi.Certificate) (result *tapi.Certificate, err error)

func (*CertificateImpl) UpdateStatus

func (c *CertificateImpl) UpdateStatus(certificate *tapi.Certificate) (result *tapi.Certificate, err error)

func (*CertificateImpl) Watch

type CertificateInterface

type CertificateInterface interface {
	List(opts metav1.ListOptions) (*tapi.CertificateList, error)
	Get(name string) (*tapi.Certificate, error)
	Create(certificate *tapi.Certificate) (*tapi.Certificate, error)
	Update(certificate *tapi.Certificate) (*tapi.Certificate, error)
	Delete(name string) error
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	UpdateStatus(certificate *tapi.Certificate) (*tapi.Certificate, error)
}

type DirectCodecFactory

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

DirectCodecFactory provides methods for retrieving "DirectCodec"s, which do not do conversion.

func (DirectCodecFactory) Decode

func (ec DirectCodecFactory) Decode(data []byte, gvk *schema.GroupVersionKind, obj runtime.Object) (runtime.Object, *schema.GroupVersionKind, error)

func (DirectCodecFactory) DecodeParameters

func (DirectCodecFactory) DecodeParameters(parameters url.Values, from schema.GroupVersion, into runtime.Object) error

DecodeParameters converts the provided url.Values into an object of type From with the kind of into, and then converts that object to into (if necessary). Returns an error if the operation cannot be completed.

func (DirectCodecFactory) DecoderToVersion

func (f DirectCodecFactory) DecoderToVersion(serializer runtime.Decoder, _ runtime.GroupVersioner) runtime.Decoder

DecoderToVersion returns an decoder that does not do conversion. gv is ignored.

func (DirectCodecFactory) Encode

func (ec DirectCodecFactory) Encode(obj runtime.Object, w io.Writer) error

func (DirectCodecFactory) EncodeParameters

func (ec DirectCodecFactory) EncodeParameters(obj runtime.Object, to schema.GroupVersion) (url.Values, error)

EncodeParameters converts the provided object into the to version, then converts that object to url.Values. Returns an error if conversion is not possible.

func (DirectCodecFactory) EncoderForVersion

func (f DirectCodecFactory) EncoderForVersion(serializer runtime.Encoder, _ runtime.GroupVersioner) runtime.Encoder

EncoderForVersion returns an encoder that does not do conversion. gv is ignored.

func (DirectCodecFactory) SupportedMediaTypes

func (f DirectCodecFactory) SupportedMediaTypes() []runtime.SerializerInfo

SupportedMediaTypes returns the RFC2046 media types that this factory has serializers for.

type ExtensionClient

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

ExtensionClient is used to interact with experimental Kubernetes features. Features of Extensions group are not supported and may be changed or removed in incompatible ways at any time.

func New

New creates a new ExtensionClient for the given RESTClient.

func NewForConfig

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

NewForConfig creates a new ExtensionClient for the given config. This client provides access to experimental Kubernetes features. Features of Extensions group are not supported and may be changed or removed in incompatible ways at any time.

func NewForConfigOrDie

func NewForConfigOrDie(c *rest.Config) *ExtensionClient

NewForConfigOrDie creates a new ExtensionClient for the given config and panics if there is an error in the config. Features of Extensions group are not supported and may be changed or removed in incompatible ways at any time.

func (*ExtensionClient) Certificates

func (c *ExtensionClient) Certificates(namespace string) CertificateInterface

func (*ExtensionClient) Ingresses

func (c *ExtensionClient) Ingresses(namespace string) IngressInterface

func (*ExtensionClient) RESTClient

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

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

type ExtensionInterface

type ExtensionInterface interface {
	RESTClient() rest.Interface
	IngressesGetter
	CertificateGetter
}

type IngressImpl

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

IngressImpl implements IngressesGetter interface

func (*IngressImpl) Create

func (c *IngressImpl) Create(extendedIngress *tapi.Ingress) (result *tapi.Ingress, err error)

Create creates a new ExtendedIngress.

func (*IngressImpl) Delete

func (c *IngressImpl) Delete(name string) (err error)

Delete deletes a ExtendedIngress, returns error if one occurs.

func (*IngressImpl) Get

func (c *IngressImpl) Get(name string) (result *tapi.Ingress, err error)

Get returns information about a particular ExtendedIngress.

func (*IngressImpl) List

func (c *IngressImpl) List(opts metav1.ListOptions) (result *tapi.IngressList, err error)

List returns a list of ExtendedIngress that match the label and field selectors.

func (*IngressImpl) Update

func (c *IngressImpl) Update(extendedIngress *tapi.Ingress) (result *tapi.Ingress, err error)

Update updates an existing ExtendedIngress.

func (*IngressImpl) UpdateStatus

func (c *IngressImpl) UpdateStatus(extendedIngress *tapi.Ingress) (result *tapi.Ingress, err error)

UpdateStatus takes the name of the ExtendedIngress and the new status. Returns the server's representation of the ExtendedIngress, and an error, if it occurs.

func (*IngressImpl) Watch

func (c *IngressImpl) Watch(opts metav1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested ExtendedIngress.

type IngressInterface

type IngressInterface interface {
	List(opts metav1.ListOptions) (*tapi.IngressList, error)
	Get(name string) (*tapi.Ingress, error)
	Create(ExtendedIngress *tapi.Ingress) (*tapi.Ingress, error)
	Update(ExtendedIngress *tapi.Ingress) (*tapi.Ingress, error)
	Delete(name string) error
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	UpdateStatus(ExtendedIngress *tapi.Ingress) (*tapi.Ingress, error)
}

ExtendedIngressInterface exposes methods to work on ExtendedIngress resources.

type IngressesGetter

type IngressesGetter interface {
	Ingresses(namespace string) IngressInterface
}

IngressesGetter has methods to work with ExtendedIngress resources in a namespace

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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