runnerjob

package module
v0.0.4-beta2 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: MIT Imports: 6 Imported by: 0

README

go-runner-job

go-runner-job

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseJob

type BaseJob struct {
	BaseJobInterface
	Active     bool     `json:"active"`
	ID         string   `json:"id"`
	Admin      JobAdmin `json:"admin"`
	CreateDate string   `json:"createDate"`
	Extra      Extra    `json:"extra"`
}

func (*BaseJob) CreateID

func (job *BaseJob) CreateID() error

CreateID : ID를 생성합니다.

func (*BaseJob) GetDefaultOwner

func (job *BaseJob) GetDefaultOwner() string

GetDefaultOwner : 기본 관리자를 수정하려면, 임베딩을 사용하세요.

func (*BaseJob) GetID

func (job *BaseJob) GetID() string

GetID : Job ID를 반환합니다.

func (*BaseJob) GetOwner

func (job *BaseJob) GetOwner() string

GetOwner : owner 정보를 반환합니다.

func (*BaseJob) HasAdminAuthorization

func (job *BaseJob) HasAdminAuthorization(member string) bool

HasAdminAuthorization : Job를 관리자 수준까지 권한이 있는지 여부를 반한합니다.

func (*BaseJob) HasAuthorization

func (job *BaseJob) HasAuthorization(member string) bool

HasAuthorization : 주어진 멤버가 이 Job에 권한이 있는지 여부를 반환합니다.

func (*BaseJob) IsAvailability

func (job *BaseJob) IsAvailability() bool

IsAvailability : 데이터가 유효성이 존재하는 지 여부를 반환합니다.

func (*BaseJob) IsRun

func (job *BaseJob) IsRun(t time.Time) bool

IsRun : Job를 실행해야하는 타임인지 여부를 반환합니다.

func (*BaseJob) Remove

func (job *BaseJob) Remove(path string) error

Remove : Job를 삭제합니다.

func (*BaseJob) Run

func (job *BaseJob) Run() interface{}

Run : Job를 실행합니다. 임베딩을 사용하세요.

func (*BaseJob) Save

func (job *BaseJob) Save(path string)

Save : Job를 파일로 저장합니다.

func (*BaseJob) SetOwner

func (job *BaseJob) SetOwner(member string)

SetOwner : Job의 주인을 설정합니다.

type BaseJobInterface

type BaseJobInterface interface {
	runner.JobInterface
	Save(path string)
	Remove(path string) error
	GetDefaultOwner() string
	SetOwner(member string)
	GetOwner() string
	CreateID() error
	HasAuthorization(member string) bool
	HasAdminAuthorization(member string) bool
	IsAvailability() bool
}

type Extra

type Extra struct {
	Type string `json:"type"`
}

type JobAdmin

type JobAdmin struct {
	Owner   string   `json:"owner"`
	Members []string `json:"members"`
}

Jump to

Keyboard shortcuts

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