types

package
v0.0.0-...-b0f4c4c Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	Id   string `json:"id,omitempty"`
	Meta *Meta  `json:"meta,omitempty"`
}

type Execution

type Execution struct {
	Id        string    `json:"id,omitempty"`
	State     string    `json:"state,omitempty"`
	JobId     string    `json:"job_id,omitempty"`
	SeedId    string    `json:"seed_id,omitempty"`
	StartTime time.Time `json:"start_time,omitempty"`
	EndTime   time.Time `json:"end_time,omitempty"`
	Statuses  int32     `json:"statuses,omitempty"`
	Error     string    `json:"error,omitempty"`
}

func (*Execution) FromProto

func (e *Execution) FromProto(exec *api.Execution) (*Execution, error)

func (*Execution) ToProto

func (e *Execution) ToProto() (*api.Execution, error)

type Job

type Job struct {
	Id             string    `json:"id,omitempty"`
	Meta           *Meta     `json:"meta,omitempty"`
	CronExpression string    `json:"cronExpression,omitempty"`
	ValidFrom      time.Time `json:"validFrom,omitempty"`
	ValidTo        time.Time `json:"validTo,omitempty"`
	Disabled       bool      `json:"disabled,omitempty"`
}

func (*Job) FromProto

func (j *Job) FromProto(job *api.Job) (*Job, error)

func (*Job) IsValid

func (j *Job) IsValid() bool

func (*Job) ToProto

func (j *Job) ToProto() (*api.Job, error)

type Label

type Label struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

func (*Label) FromProto

func (l *Label) FromProto(label *api.Label) *Label

func (*Label) ToProto

func (l *Label) ToProto() *api.Label

type Meta

type Meta struct {
	Name           string    `json:"name,omitempty"`
	Description    string    `json:"description,omitempty"`
	Created        time.Time `json:"created,omitempty"`
	CreatedBy      string    `json:"createdBy,omitempty"`
	LastModified   time.Time `json:"lastModified,omitempty"`
	LastModifiedBy string    `json:"lastModifiedBy,omitempty"`
	Label          []*Label  `json:"label,omitempty"`
}

func (*Meta) FromProto

func (m *Meta) FromProto(meta *api.Meta) (*Meta, error)

func (*Meta) ToProto

func (m *Meta) ToProto() (*api.Meta, error)

type Response

type Response struct {
	Status   string              `json:"status"`
	Code     int                 `json:"code"`
	Protocol string              `json:"protocol"`
	Header   map[string][]string `json:"header"`
}

func (*Response) FromHttpResponse

func (r *Response) FromHttpResponse(response *http.Response) *Response

type Seed

type Seed struct {
	Id       string   `json:"id,omitempty"`
	Meta     *Meta    `json:"meta,omitempty"`
	EntityId string   `json:"entityId,omitempty"`
	JobId    []string `json:"jobId,omitempty"`
	Disabled bool     `json:"disabled,omitempty"`
}

func (*Seed) FromProto

func (s *Seed) FromProto(seed *api.Seed) (*Seed, error)

func (*Seed) ToProto

func (s *Seed) ToProto() (*api.Seed, error)

Jump to

Keyboard shortcuts

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