fake

package
v0.0.0-...-468f387 Latest Latest
Warning

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

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

README

fakes

This package is a fake kube resource implementation. Should Only be used for Testing purpose.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAlert

type FakeAlert struct {
	Fake *testing.Fake
	// contains filtered or unexported fields
}

func (*FakeAlert) Create

func (mock *FakeAlert) Create(svc *aci.Alert) (*aci.Alert, error)

Create creates a new Alert.

func (*FakeAlert) Delete

func (mock *FakeAlert) Delete(name string) error

Delete deletes a Alert by name.

func (*FakeAlert) Get

func (mock *FakeAlert) Get(name string) (*aci.Alert, error)

Get returns the Alert by name.

func (*FakeAlert) List

func (mock *FakeAlert) List(opts api.ListOptions) (*aci.AlertList, error)

List returns the a of Alerts.

func (*FakeAlert) Update

func (mock *FakeAlert) Update(svc *aci.Alert) (*aci.Alert, error)

Update updates a Alert.

func (*FakeAlert) UpdateStatus

func (mock *FakeAlert) UpdateStatus(srv *aci.Alert) (*aci.Alert, error)

func (*FakeAlert) Watch

func (mock *FakeAlert) Watch(opts api.ListOptions) (watch.Interface, error)

type FakeCertificate

type FakeCertificate struct {
	Fake *testing.Fake
	// contains filtered or unexported fields
}

func (*FakeCertificate) Create

func (mock *FakeCertificate) Create(svc *aci.Certificate) (*aci.Certificate, error)

Create creates a new Certificate.

func (*FakeCertificate) Delete

func (mock *FakeCertificate) Delete(name string) error

Delete deletes a Certificate by name.

func (*FakeCertificate) Get

func (mock *FakeCertificate) Get(name string) (*aci.Certificate, error)

Get returns the Certificate by name.

func (*FakeCertificate) List

func (mock *FakeCertificate) List(opts api.ListOptions) (*aci.CertificateList, error)

List returns the a of Certificates.

func (*FakeCertificate) Update

func (mock *FakeCertificate) Update(svc *aci.Certificate) (*aci.Certificate, error)

Update updates a Certificate.

func (*FakeCertificate) UpdateStatus

func (mock *FakeCertificate) UpdateStatus(srv *aci.Certificate) (*aci.Certificate, error)

func (*FakeCertificate) Watch

func (mock *FakeCertificate) Watch(opts api.ListOptions) (watch.Interface, error)

type FakeExtensionClient

type FakeExtensionClient struct {
	*testing.Fake
}

func NewFakeExtensionClient

func NewFakeExtensionClient(objects ...runtime.Object) *FakeExtensionClient

func (*FakeExtensionClient) Alert

func (a *FakeExtensionClient) Alert(namespace string) clientset.AlertInterface

func (*FakeExtensionClient) Certificate

func (*FakeExtensionClient) Ingress

func (a *FakeExtensionClient) Ingress(namespace string) clientset.IngressInterface

func (*FakeExtensionClient) RESTClient

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

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

type FakeIngress

type FakeIngress struct {
	Fake *testing.Fake
	// contains filtered or unexported fields
}

func (*FakeIngress) Create

func (mock *FakeIngress) Create(svc *aci.Ingress) (*aci.Ingress, error)

Create creates a new Ingress.

func (*FakeIngress) Delete

func (mock *FakeIngress) Delete(name string) error

Delete deletes a Ingress by name.

func (*FakeIngress) Get

func (mock *FakeIngress) Get(name string) (*aci.Ingress, error)

Get returns the Ingress by name.

func (*FakeIngress) List

func (mock *FakeIngress) List(opts api.ListOptions) (*aci.IngressList, error)

List returns the a of Ingresss.

func (*FakeIngress) Update

func (mock *FakeIngress) Update(svc *aci.Ingress) (*aci.Ingress, error)

Update updates a Ingress.

func (*FakeIngress) UpdateStatus

func (mock *FakeIngress) UpdateStatus(srv *aci.Ingress) (*aci.Ingress, error)

func (*FakeIngress) Watch

func (mock *FakeIngress) Watch(opts api.ListOptions) (watch.Interface, error)

Jump to

Keyboard shortcuts

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