jobs

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLivemapMarkerColor = "5C7AFF"

Variables

View Source
var File_resources_jobs_jobs_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Job

type Job struct {
	Name   string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" sql:"primary_key" alias:"name"` // @gotags: sql:"primary_key" alias:"name"
	Label  string      `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty" alias:"label"`                // @gotags: alias:"label"
	Grades []*JobGrade `protobuf:"bytes,3,rep,name=grades,proto3" json:"grades,omitempty"`
	// contains filtered or unexported fields
}

func (*Job) Descriptor deprecated

func (*Job) Descriptor() ([]byte, []int)

Deprecated: Use Job.ProtoReflect.Descriptor instead.

func (*Job) GetGrades

func (x *Job) GetGrades() []*JobGrade

func (*Job) GetJob

func (x *Job) GetJob() string

func (*Job) GetLabel

func (x *Job) GetLabel() string

func (*Job) GetName

func (x *Job) GetName() string

func (*Job) ProtoMessage

func (*Job) ProtoMessage()

func (*Job) ProtoReflect

func (x *Job) ProtoReflect() protoreflect.Message

func (*Job) Reset

func (x *Job) Reset()

func (*Job) SetJobLabel

func (x *Job) SetJobLabel(label string)

func (*Job) String

func (x *Job) String() string

func (*Job) Validate

func (m *Job) Validate() error

Validate checks the field values on Job with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Job) ValidateAll

func (m *Job) ValidateAll() error

ValidateAll checks the field values on Job with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in JobMultiError, or nil if none found.

type JobGrade

type JobGrade struct {
	JobName *string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3,oneof" json:"job_name,omitempty" alias:"job_name"` // @gotags: alias:"job_name"
	Grade   int32   `protobuf:"varint,2,opt,name=grade,proto3" json:"grade,omitempty" alias:"grade"`                            // @gotags: alias:"grade"
	Label   string  `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty" alias:"label"`                             // @gotags: alias:"label"
	// contains filtered or unexported fields
}

func (*JobGrade) Descriptor deprecated

func (*JobGrade) Descriptor() ([]byte, []int)

Deprecated: Use JobGrade.ProtoReflect.Descriptor instead.

func (*JobGrade) GetGrade

func (x *JobGrade) GetGrade() int32

func (*JobGrade) GetJobName

func (x *JobGrade) GetJobName() string

func (*JobGrade) GetLabel

func (x *JobGrade) GetLabel() string

func (*JobGrade) ProtoMessage

func (*JobGrade) ProtoMessage()

func (*JobGrade) ProtoReflect

func (x *JobGrade) ProtoReflect() protoreflect.Message

func (*JobGrade) Reset

func (x *JobGrade) Reset()

func (*JobGrade) String

func (x *JobGrade) String() string

func (*JobGrade) Validate

func (m *JobGrade) Validate() error

Validate checks the field values on JobGrade with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*JobGrade) ValidateAll

func (m *JobGrade) ValidateAll() error

ValidateAll checks the field values on JobGrade with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in JobGradeMultiError, or nil if none found.

type JobGradeMultiError

type JobGradeMultiError []error

JobGradeMultiError is an error wrapping multiple validation errors returned by JobGrade.ValidateAll() if the designated constraints aren't met.

func (JobGradeMultiError) AllErrors

func (m JobGradeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JobGradeMultiError) Error

func (m JobGradeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type JobGradeValidationError

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

JobGradeValidationError is the validation error returned by JobGrade.Validate if the designated constraints aren't met.

func (JobGradeValidationError) Cause

func (e JobGradeValidationError) Cause() error

Cause function returns cause value.

func (JobGradeValidationError) Error

func (e JobGradeValidationError) Error() string

Error satisfies the builtin error interface

func (JobGradeValidationError) ErrorName

func (e JobGradeValidationError) ErrorName() string

ErrorName returns error name.

func (JobGradeValidationError) Field

func (e JobGradeValidationError) Field() string

Field function returns field value.

func (JobGradeValidationError) Key

func (e JobGradeValidationError) Key() bool

Key function returns key value.

func (JobGradeValidationError) Reason

func (e JobGradeValidationError) Reason() string

Reason function returns reason value.

type JobMultiError

type JobMultiError []error

JobMultiError is an error wrapping multiple validation errors returned by Job.ValidateAll() if the designated constraints aren't met.

func (JobMultiError) AllErrors

func (m JobMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JobMultiError) Error

func (m JobMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type JobProps

type JobProps struct {
	Job                string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty" alias:"job"`       // @gotags: alias:"job"
	Theme              string `protobuf:"bytes,2,opt,name=theme,proto3" json:"theme,omitempty" alias:"theme"` // @gotags: alias:"theme"
	LivemapMarkerColor string ``                                                                              // @gotags: alias:"livemap_marker_color"
	/* 146-byte string literal not displayed */
	QuickButtons string `protobuf:"bytes,4,opt,name=quick_buttons,json=quickButtons,proto3" json:"quick_buttons,omitempty" alias:"quick_buttons"` // @gotags: alias:"quick_buttons"
	// contains filtered or unexported fields
}

func (*JobProps) Default

func (x *JobProps) Default(job string)

func (*JobProps) Descriptor deprecated

func (*JobProps) Descriptor() ([]byte, []int)

Deprecated: Use JobProps.ProtoReflect.Descriptor instead.

func (*JobProps) GetJob

func (x *JobProps) GetJob() string

func (*JobProps) GetLivemapMarkerColor

func (x *JobProps) GetLivemapMarkerColor() string

func (*JobProps) GetQuickButtons

func (x *JobProps) GetQuickButtons() string

func (*JobProps) GetTheme

func (x *JobProps) GetTheme() string

func (*JobProps) ProtoMessage

func (*JobProps) ProtoMessage()

func (*JobProps) ProtoReflect

func (x *JobProps) ProtoReflect() protoreflect.Message

func (*JobProps) Reset

func (x *JobProps) Reset()

func (*JobProps) String

func (x *JobProps) String() string

func (*JobProps) Validate

func (m *JobProps) Validate() error

Validate checks the field values on JobProps with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*JobProps) ValidateAll

func (m *JobProps) ValidateAll() error

ValidateAll checks the field values on JobProps with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in JobPropsMultiError, or nil if none found.

type JobPropsMultiError

type JobPropsMultiError []error

JobPropsMultiError is an error wrapping multiple validation errors returned by JobProps.ValidateAll() if the designated constraints aren't met.

func (JobPropsMultiError) AllErrors

func (m JobPropsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JobPropsMultiError) Error

func (m JobPropsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type JobPropsValidationError

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

JobPropsValidationError is the validation error returned by JobProps.Validate if the designated constraints aren't met.

func (JobPropsValidationError) Cause

func (e JobPropsValidationError) Cause() error

Cause function returns cause value.

func (JobPropsValidationError) Error

func (e JobPropsValidationError) Error() string

Error satisfies the builtin error interface

func (JobPropsValidationError) ErrorName

func (e JobPropsValidationError) ErrorName() string

ErrorName returns error name.

func (JobPropsValidationError) Field

func (e JobPropsValidationError) Field() string

Field function returns field value.

func (JobPropsValidationError) Key

func (e JobPropsValidationError) Key() bool

Key function returns key value.

func (JobPropsValidationError) Reason

func (e JobPropsValidationError) Reason() string

Reason function returns reason value.

type JobValidationError

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

JobValidationError is the validation error returned by Job.Validate if the designated constraints aren't met.

func (JobValidationError) Cause

func (e JobValidationError) Cause() error

Cause function returns cause value.

func (JobValidationError) Error

func (e JobValidationError) Error() string

Error satisfies the builtin error interface

func (JobValidationError) ErrorName

func (e JobValidationError) ErrorName() string

ErrorName returns error name.

func (JobValidationError) Field

func (e JobValidationError) Field() string

Field function returns field value.

func (JobValidationError) Key

func (e JobValidationError) Key() bool

Key function returns key value.

func (JobValidationError) Reason

func (e JobValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL