Documentation
¶
Index ¶
- type Client
- func (c *Client) CanRunUserInitiatedJobs(ctx context.Context) (bool, error)
- func (c *Client) Cancel(ctx context.Context, arg0 int32) error
- func (c *Client) CancelAll(ctx context.Context) error
- func (c *Client) CancelInAllNamespaces(ctx context.Context) error
- func (c *Client) Enqueue(ctx context.Context, arg0 int64, arg1 int64) (int32, error)
- func (c *Client) ForNamespace(ctx context.Context, arg0 string) (int64, error)
- func (c *Client) GetAllPendingJobs(ctx context.Context) (int64, error)
- func (c *Client) GetNamespace(ctx context.Context) (string, error)
- func (c *Client) GetPendingJob(ctx context.Context, arg0 int32) (int64, error)
- func (c *Client) GetPendingJobReason(ctx context.Context, arg0 int32) (int32, error)
- func (c *Client) GetPendingJobReasons(ctx context.Context, arg0 int32) (int64, error)
- func (c *Client) GetPendingJobReasonsHistory(ctx context.Context, arg0 int32) (int64, error)
- func (c *Client) Schedule(ctx context.Context, arg0 int64) (int32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the gRPC SchedulerService client.
func NewClient ¶
func NewClient(cc grpc.ClientConnInterface) *Client
NewClient creates a new job client.
func (*Client) CanRunUserInitiatedJobs ¶
CanRunUserInitiatedJobs calls the CanRunUserInitiatedJobs RPC.
func (*Client) CancelInAllNamespaces ¶
CancelInAllNamespaces calls the CancelInAllNamespaces RPC.
func (*Client) ForNamespace ¶
ForNamespace calls the ForNamespace RPC.
func (*Client) GetAllPendingJobs ¶ added in v0.0.4
GetAllPendingJobs calls the GetAllPendingJobs RPC.
func (*Client) GetNamespace ¶
GetNamespace calls the GetNamespace RPC.
func (*Client) GetPendingJob ¶ added in v0.0.4
GetPendingJob calls the GetPendingJob RPC.
func (*Client) GetPendingJobReason ¶
GetPendingJobReason calls the GetPendingJobReason RPC.
func (*Client) GetPendingJobReasons ¶
GetPendingJobReasons calls the GetPendingJobReasons RPC.
func (*Client) GetPendingJobReasonsHistory ¶
GetPendingJobReasonsHistory calls the GetPendingJobReasonsHistory RPC.
Click to show internal directories.
Click to hide internal directories.