Documentation ¶
Index ¶
- type GroupClient
- func (c *GroupClient) Create(obj *v1.Group) (*v1.Group, error)
- func (c *GroupClient) Delete(name string, options *meta_v1.DeleteOptions) error
- func (c *GroupClient) Get(name string) (*v1.Group, error)
- func (c *GroupClient) List(opts meta_v1.ListOptions) (*v1.GroupList, error)
- func (c *GroupClient) Update(obj *v1.Group) (*v1.Group, error)
- func (c *GroupClient) Watch(opts meta_v1.ListOptions) (watch.Interface, error)
- type GroupInterface
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) 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) 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
Click to show internal directories.
Click to hide internal directories.