Documentation ¶
Index ¶
- type DefaultK8sJobClient
- type S
- func (s *S) CancelJob(ctx context.Context, req *v1.CancelJobRequest) (*v1.Job, error)
- func (s *S) CreateJob(ctx context.Context, req *v1.CreateJobRequest) (*v1.Job, error)
- func (s *S) ListJobs(ctx context.Context, req *v1.ListJobsRequest) (*v1.ListJobsResponse, error)
- func (s *S) Run(ctx context.Context, port int, authConfig config.AuthConfig) error
- func (s *S) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultK8sJobClient ¶ added in v0.2.0
type DefaultK8sJobClient struct {
// contains filtered or unexported fields
}
DefaultK8sJobClient is a client for Kubernetes Job resources.
func NewK8sJobClient ¶ added in v0.2.0
func NewK8sJobClient(client kubernetes.Interface, jobNamespace string) *DefaultK8sJobClient
NewK8sJobClient creates a new K8sJobClient.
type S ¶
type S struct { v1.UnimplementedFineTuningServiceServer // contains filtered or unexported fields }
S is a server.
func New ¶
func New( store *store.S, fileGetClient fileGetClient, modelClient modelClient, k8sJobClient k8sJobClient, ) *S
New creates a server.
func (*S) ListJobs ¶
func (s *S) ListJobs( ctx context.Context, req *v1.ListJobsRequest, ) (*v1.ListJobsResponse, error)
ListJobs lists all jobs.
Click to show internal directories.
Click to hide internal directories.