client-go: k8s.io/client-go/kubernetes/typed/networking/v1/fake Index | Files

package fake

import "k8s.io/client-go/kubernetes/typed/networking/v1/fake"

Package fake has the automatically generated clients.

Index

Package Files

doc.go fake_networking_client.go fake_networkpolicy.go

type FakeNetworkPolicies Uses

type FakeNetworkPolicies struct {
    Fake *FakeNetworkingV1
    // contains filtered or unexported fields
}

FakeNetworkPolicies implements NetworkPolicyInterface

func (*FakeNetworkPolicies) Create Uses

func (c *FakeNetworkPolicies) Create(networkPolicy *networkingv1.NetworkPolicy) (result *networkingv1.NetworkPolicy, err error)

Create takes the representation of a networkPolicy and creates it. Returns the server's representation of the networkPolicy, and an error, if there is any.

func (*FakeNetworkPolicies) Delete Uses

func (c *FakeNetworkPolicies) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the networkPolicy and deletes it. Returns an error if one occurs.

func (*FakeNetworkPolicies) DeleteCollection Uses

func (c *FakeNetworkPolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeNetworkPolicies) Get Uses

func (c *FakeNetworkPolicies) Get(name string, options v1.GetOptions) (result *networkingv1.NetworkPolicy, err error)

Get takes name of the networkPolicy, and returns the corresponding networkPolicy object, and an error if there is any.

func (*FakeNetworkPolicies) List Uses

func (c *FakeNetworkPolicies) List(opts v1.ListOptions) (result *networkingv1.NetworkPolicyList, err error)

List takes label and field selectors, and returns the list of NetworkPolicies that match those selectors.

func (*FakeNetworkPolicies) Patch Uses

func (c *FakeNetworkPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *networkingv1.NetworkPolicy, err error)

Patch applies the patch and returns the patched networkPolicy.

func (*FakeNetworkPolicies) Update Uses

func (c *FakeNetworkPolicies) Update(networkPolicy *networkingv1.NetworkPolicy) (result *networkingv1.NetworkPolicy, err error)

Update takes the representation of a networkPolicy and updates it. Returns the server's representation of the networkPolicy, and an error, if there is any.

func (*FakeNetworkPolicies) Watch Uses

func (c *FakeNetworkPolicies) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeNetworkingV1 Uses

type FakeNetworkingV1 struct {
    *testing.Fake
}

func (*FakeNetworkingV1) NetworkPolicies Uses

func (c *FakeNetworkingV1) NetworkPolicies(namespace string) v1.NetworkPolicyInterface

func (*FakeNetworkingV1) RESTClient Uses

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

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

Package fake imports 9 packages (graph) and is imported by 2 packages. Updated 2018-07-02. Refresh now. Tools for package owners.