v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 12 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupClient

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

GroupClient defines the CRD Group structure

func Group

func Group(client *rest.RESTClient, scheme *runtime.Scheme, namespace string) *GroupClient

Group returns a new instance of the Group CRD

func NewGroupClient

func NewGroupClient(clientset apiextcs.Interface, config *rest.Config) *GroupClient

NewGroupClient returns an instance of the Group Client

func (*GroupClient) Create

func (c *GroupClient) Create(obj *v1.Group) (*v1.Group, error)

Create creates a new group.

func (*GroupClient) Delete

func (c *GroupClient) Delete(name string, options *meta_v1.DeleteOptions) error

Delete removes the group.

func (*GroupClient) Get

func (c *GroupClient) Get(name string) (*v1.Group, error)

Get fetches the group

func (*GroupClient) List

func (c *GroupClient) List(opts meta_v1.ListOptions) (*v1.GroupList, error)

List fetches the list of groups.

func (*GroupClient) Update

func (c *GroupClient) Update(obj *v1.Group) (*v1.Group, error)

Update modifies the group specification.

func (*GroupClient) Watch

func (c *GroupClient) Watch(opts meta_v1.ListOptions) (watch.Interface, error)

Watch watches for the groups.

type GroupInterface

type GroupInterface interface {
	Create(obj *v1.Group) (*v1.Group, error)
	Update(obj *v1.Group) (*v1.Group, error)
	Delete(name string, options *meta_v1.DeleteOptions) error
	Get(name string) (*v1.Group, error)
	List(opts meta_v1.ListOptions) (*v1.GroupList, error)
	Watch(opts meta_v1.ListOptions) (watch.Interface, error)
}

GroupInterface has client methods we need to access Group object

Jump to

Keyboard shortcuts

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