Documentation
¶
Index ¶
- func MetadataFromKey(key string) (*schedulerv1pb.JobMetadata, error)
- func PrefixesFromNamespace(namespace string) []string
- type Job
- type Options
- type Request
- type Serializer
- func (s *Serializer) FromRequest(ctx context.Context, req Request) (*Job, error)
- func (s *Serializer) FromWatch(stream schedulerv1pb.Scheduler_WatchJobsServer) (*schedulerv1pb.WatchJobsRequestInitial, error)
- func (s *Serializer) PrefixFromList(ctx context.Context, req *schedulerv1pb.JobMetadata) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetadataFromKey ¶
func MetadataFromKey(key string) (*schedulerv1pb.JobMetadata, error)
MetadataFromKey returns the JobMetadata based on a raw job key.
func PrefixesFromNamespace ¶
PrefixesFromNamespace returns key prefixes for all jobs types for a given namespace.
Types ¶
type Request ¶
type Request interface { GetName() string GetMetadata() *schedulerv1pb.JobMetadata }
type Serializer ¶
type Serializer struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts Options) *Serializer
func (*Serializer) FromRequest ¶
func (*Serializer) FromWatch ¶
func (s *Serializer) FromWatch(stream schedulerv1pb.Scheduler_WatchJobsServer) (*schedulerv1pb.WatchJobsRequestInitial, error)
func (*Serializer) PrefixFromList ¶
func (s *Serializer) PrefixFromList(ctx context.Context, req *schedulerv1pb.JobMetadata) (string, error)
Click to show internal directories.
Click to hide internal directories.