client

package
v0.0.0-...-03926e5 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Scheme = runtime.NewScheme()

Functions

This section is empty.

Types

type PodGroups

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

PodGroups implements PodGroupInterface

func (*PodGroups) Create

func (c *PodGroups) Create(ctx context.Context, podGroup *apiv1.PodGroup, opts v1.CreateOptions) (result *apiv1.PodGroup, err error)

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

func (*PodGroups) Delete

func (c *PodGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*PodGroups) DeleteCollection

func (c *PodGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*PodGroups) Get

func (c *PodGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *apiv1.PodGroup, err error)

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

func (*PodGroups) List

func (c *PodGroups) List(ctx context.Context, opts v1.ListOptions) (result *apiv1.PodGroupList, err error)

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

func (*PodGroups) Patch

func (c *PodGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *apiv1.PodGroup, err error)

Patch applies the patch and returns the patched podGroup.

func (*PodGroups) Update

func (c *PodGroups) Update(ctx context.Context, podGroup *apiv1.PodGroup, opts v1.UpdateOptions) (result *apiv1.PodGroup, err error)

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

func (*PodGroups) UpdateStatus

func (c *PodGroups) UpdateStatus(ctx context.Context, podGroup *apiv1.PodGroup, opts v1.UpdateOptions) (result *apiv1.PodGroup, err error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*PodGroups) Watch

func (c *PodGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type SchedulingClient

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

SchedulingClient is used to interact with features provided by the scheduling.sigs.k8s.io group.

func New

New creates a new SchedulingClient for the given RESTClient.

func NewForConfig

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

NewForConfig creates a new SchedulingClient for the given config.

func NewForConfigOrDie

func NewForConfigOrDie(c *rest.Config) *SchedulingClient

NewForConfigOrDie creates a new SchedulingV1alpha1Client for the given config and panics if there is an error in the config.

func (*SchedulingClient) PodGroups

func (c *SchedulingClient) PodGroups(namespace string) *PodGroups

func (*SchedulingClient) RESTClient

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳