Documentation
¶
Index ¶
- Variables
- type PodGroups
- func (c *PodGroups) Create(ctx context.Context, podGroup *apiv1.PodGroup, opts v1.CreateOptions) (result *apiv1.PodGroup, err error)
- func (c *PodGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *PodGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *PodGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *apiv1.PodGroup, err error)
- func (c *PodGroups) List(ctx context.Context, opts v1.ListOptions) (result *apiv1.PodGroupList, err error)
- func (c *PodGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *apiv1.PodGroup, err error)
- func (c *PodGroups) Update(ctx context.Context, podGroup *apiv1.PodGroup, opts v1.UpdateOptions) (result *apiv1.PodGroup, err error)
- func (c *PodGroups) UpdateStatus(ctx context.Context, podGroup *apiv1.PodGroup, opts v1.UpdateOptions) (result *apiv1.PodGroup, err error)
- func (c *PodGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type SchedulingClient
Constants ¶
This section is empty.
Variables ¶
var Codecs = serializer.NewCodecFactory(Scheme)
var ParameterCodec = runtime.NewParameterCodec(Scheme)
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 ¶
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().
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 ¶
func New(c rest.Interface) *SchedulingClient
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.