types

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: MPL-2.0-no-copyleft-exception, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	Result               bool     `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Bool) Descriptor

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

func (*Bool) GetResult

func (m *Bool) GetResult() bool

func (*Bool) ProtoMessage

func (*Bool) ProtoMessage()

func (*Bool) Reset

func (m *Bool) Reset()

func (*Bool) String

func (m *Bool) String() string

func (*Bool) XXX_DiscardUnknown

func (m *Bool) XXX_DiscardUnknown()

func (*Bool) XXX_Marshal

func (m *Bool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Bool) XXX_Merge

func (m *Bool) XXX_Merge(src proto.Message)

func (*Bool) XXX_Size

func (m *Bool) XXX_Size() int

func (*Bool) XXX_Unmarshal

func (m *Bool) XXX_Unmarshal(b []byte) error

type CancelPRRequest

type CancelPRRequest struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Repository           string   `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

CancelPRRequest is used in CancelTasksByPR in the datasvc; can be used to cancel all runs for a PR.

func (*CancelPRRequest) Descriptor

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

func (*CancelPRRequest) GetId

func (m *CancelPRRequest) GetId() int64

func (*CancelPRRequest) GetRepository

func (m *CancelPRRequest) GetRepository() string

func (*CancelPRRequest) ProtoMessage

func (*CancelPRRequest) ProtoMessage()

func (*CancelPRRequest) Reset

func (m *CancelPRRequest) Reset()

func (*CancelPRRequest) String

func (m *CancelPRRequest) String() string

func (*CancelPRRequest) XXX_DiscardUnknown

func (m *CancelPRRequest) XXX_DiscardUnknown()

func (*CancelPRRequest) XXX_Marshal

func (m *CancelPRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CancelPRRequest) XXX_Merge

func (m *CancelPRRequest) XXX_Merge(src proto.Message)

func (*CancelPRRequest) XXX_Size

func (m *CancelPRRequest) XXX_Size() int

func (*CancelPRRequest) XXX_Unmarshal

func (m *CancelPRRequest) XXX_Unmarshal(b []byte) error

type Error

type Error struct {
	Errors               []string `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"`
	Log                  bool     `protobuf:"varint,2,opt,name=log,proto3" json:"log,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Errors that occur within the program's calls after a request. Bound to the user, not the connection.

func (*Error) Descriptor

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

func (*Error) GetErrors

func (m *Error) GetErrors() []string

func (*Error) GetLog

func (m *Error) GetLog() bool

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

func (*Error) XXX_DiscardUnknown

func (m *Error) XXX_DiscardUnknown()

func (*Error) XXX_Marshal

func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Error) XXX_Merge

func (m *Error) XXX_Merge(src proto.Message)

func (*Error) XXX_Size

func (m *Error) XXX_Size() int

func (*Error) XXX_Unmarshal

func (m *Error) XXX_Unmarshal(b []byte) error

type IntID

type IntID struct {
	ID                   int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

IntID is a basic integer ID -- it's used to control a variety of things that use basic sequences and so forth.

func (*IntID) Descriptor

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

func (*IntID) GetID

func (m *IntID) GetID() int64

func (*IntID) ProtoMessage

func (*IntID) ProtoMessage()

func (*IntID) Reset

func (m *IntID) Reset()

func (*IntID) String

func (m *IntID) String() string

func (*IntID) XXX_DiscardUnknown

func (m *IntID) XXX_DiscardUnknown()

func (*IntID) XXX_Marshal

func (m *IntID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntID) XXX_Merge

func (m *IntID) XXX_Merge(src proto.Message)

func (*IntID) XXX_Size

func (m *IntID) XXX_Size() int

func (*IntID) XXX_Unmarshal

func (m *IntID) XXX_Unmarshal(b []byte) error

type QueueItem

type QueueItem struct {
	Id                   int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Running              bool                 `protobuf:"varint,2,opt,name=running,proto3" json:"running,omitempty"`
	RunningOn            string               `protobuf:"bytes,3,opt,name=runningOn,proto3" json:"runningOn,omitempty"`
	StartedAt            *timestamp.Timestamp `protobuf:"bytes,4,opt,name=startedAt,proto3" json:"startedAt,omitempty"`
	QueueName            string               `protobuf:"bytes,5,opt,name=queueName,proto3" json:"queueName,omitempty"`
	Run                  *Run                 `protobuf:"bytes,6,opt,name=run,proto3" json:"run,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

QueueItems are the subject sent to runners when runners are able to execute a job. Runners poll for these endless through the queuesvc.

func (*QueueItem) Descriptor

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

func (*QueueItem) GetId

func (m *QueueItem) GetId() int64

func (*QueueItem) GetQueueName

func (m *QueueItem) GetQueueName() string

func (*QueueItem) GetRun

func (m *QueueItem) GetRun() *Run

func (*QueueItem) GetRunning

func (m *QueueItem) GetRunning() bool

func (*QueueItem) GetRunningOn

func (m *QueueItem) GetRunningOn() string

func (*QueueItem) GetStartedAt

func (m *QueueItem) GetStartedAt() *timestamp.Timestamp

func (*QueueItem) ProtoMessage

func (*QueueItem) ProtoMessage()

func (*QueueItem) Reset

func (m *QueueItem) Reset()

func (*QueueItem) String

func (m *QueueItem) String() string

func (*QueueItem) XXX_DiscardUnknown

func (m *QueueItem) XXX_DiscardUnknown()

func (*QueueItem) XXX_Marshal

func (m *QueueItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueueItem) XXX_Merge

func (m *QueueItem) XXX_Merge(src proto.Message)

func (*QueueItem) XXX_Size

func (m *QueueItem) XXX_Size() int

func (*QueueItem) XXX_Unmarshal

func (m *QueueItem) XXX_Unmarshal(b []byte) error

type QueueRequest

type QueueRequest struct {
	QueueName            string   `protobuf:"bytes,1,opt,name=queueName,proto3" json:"queueName,omitempty"`
	RunningOn            string   `protobuf:"bytes,2,opt,name=runningOn,proto3" json:"runningOn,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

QueueRequest is issued by runners to the queuesvc.

func (*QueueRequest) Descriptor

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

func (*QueueRequest) GetQueueName

func (m *QueueRequest) GetQueueName() string

func (*QueueRequest) GetRunningOn

func (m *QueueRequest) GetRunningOn() string

func (*QueueRequest) ProtoMessage

func (*QueueRequest) ProtoMessage()

func (*QueueRequest) Reset

func (m *QueueRequest) Reset()

func (*QueueRequest) String

func (m *QueueRequest) String() string

func (*QueueRequest) XXX_DiscardUnknown

func (m *QueueRequest) XXX_DiscardUnknown()

func (*QueueRequest) XXX_Marshal

func (m *QueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueueRequest) XXX_Merge

func (m *QueueRequest) XXX_Merge(src proto.Message)

func (*QueueRequest) XXX_Size

func (m *QueueRequest) XXX_Size() int

func (*QueueRequest) XXX_Unmarshal

func (m *QueueRequest) XXX_Unmarshal(b []byte) error

type Ref

type Ref struct {
	Id                   int64       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Repository           *Repository `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"`
	RefName              string      `protobuf:"bytes,3,opt,name=refName,proto3" json:"refName,omitempty"`
	Sha                  string      `protobuf:"bytes,4,opt,name=sha,proto3" json:"sha,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

Ref is the encapsulation of a git ref and communicates repository as well as version information.

func (*Ref) Descriptor

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

func (*Ref) GetId

func (m *Ref) GetId() int64

func (*Ref) GetRefName

func (m *Ref) GetRefName() string

func (*Ref) GetRepository

func (m *Ref) GetRepository() *Repository

func (*Ref) GetSha

func (m *Ref) GetSha() string

func (*Ref) ProtoMessage

func (*Ref) ProtoMessage()

func (*Ref) Reset

func (m *Ref) Reset()

func (*Ref) String

func (m *Ref) String() string

func (*Ref) XXX_DiscardUnknown

func (m *Ref) XXX_DiscardUnknown()

func (*Ref) XXX_Marshal

func (m *Ref) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ref) XXX_Merge

func (m *Ref) XXX_Merge(src proto.Message)

func (*Ref) XXX_Size

func (m *Ref) XXX_Size() int

func (*Ref) XXX_Unmarshal

func (m *Ref) XXX_Unmarshal(b []byte) error

type Repository

type Repository struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Private              bool     `protobuf:"varint,3,opt,name=private,proto3" json:"private,omitempty"`
	Disabled             bool     `protobuf:"varint,4,opt,name=disabled,proto3" json:"disabled,omitempty"`
	Owner                *User    `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
	AutoCreated          bool     `protobuf:"varint,6,opt,name=autoCreated,proto3" json:"autoCreated,omitempty"`
	HookSecret           string   `protobuf:"bytes,7,opt,name=hookSecret,proto3" json:"hookSecret,omitempty"`
	Github               []byte   `protobuf:"bytes,8,opt,name=github,proto3" json:"github,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Repository is the model for a github repository.

func (*Repository) Descriptor

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

func (*Repository) GetAutoCreated

func (m *Repository) GetAutoCreated() bool

func (*Repository) GetDisabled

func (m *Repository) GetDisabled() bool

func (*Repository) GetGithub

func (m *Repository) GetGithub() []byte

func (*Repository) GetHookSecret

func (m *Repository) GetHookSecret() string

func (*Repository) GetId

func (m *Repository) GetId() int64

func (*Repository) GetName

func (m *Repository) GetName() string

func (*Repository) GetOwner

func (m *Repository) GetOwner() *User

func (*Repository) GetPrivate

func (m *Repository) GetPrivate() bool

func (*Repository) ProtoMessage

func (*Repository) ProtoMessage()

func (*Repository) Reset

func (m *Repository) Reset()

func (*Repository) String

func (m *Repository) String() string

func (*Repository) XXX_DiscardUnknown

func (m *Repository) XXX_DiscardUnknown()

func (*Repository) XXX_Marshal

func (m *Repository) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Repository) XXX_Merge

func (m *Repository) XXX_Merge(src proto.Message)

func (*Repository) XXX_Size

func (m *Repository) XXX_Size() int

func (*Repository) XXX_Unmarshal

func (m *Repository) XXX_Unmarshal(b []byte) error

type RepositoryList

type RepositoryList struct {
	List                 []*Repository `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*RepositoryList) Descriptor

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

func (*RepositoryList) GetList

func (m *RepositoryList) GetList() []*Repository

func (*RepositoryList) ProtoMessage

func (*RepositoryList) ProtoMessage()

func (*RepositoryList) Reset

func (m *RepositoryList) Reset()

func (*RepositoryList) String

func (m *RepositoryList) String() string

func (*RepositoryList) XXX_DiscardUnknown

func (m *RepositoryList) XXX_DiscardUnknown()

func (*RepositoryList) XXX_Marshal

func (m *RepositoryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RepositoryList) XXX_Merge

func (m *RepositoryList) XXX_Merge(src proto.Message)

func (*RepositoryList) XXX_Size

func (m *RepositoryList) XXX_Size() int

func (*RepositoryList) XXX_Unmarshal

func (m *RepositoryList) XXX_Unmarshal(b []byte) error

type Run

type Run struct {
	Id                   int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,3,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	StartedAt            *timestamp.Timestamp `protobuf:"bytes,4,opt,name=startedAt,proto3" json:"startedAt,omitempty"`
	FinishedAt           *timestamp.Timestamp `protobuf:"bytes,5,opt,name=finishedAt,proto3" json:"finishedAt,omitempty"`
	Status               bool                 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`
	StatusSet            bool                 `protobuf:"varint,7,opt,name=statusSet,proto3" json:"statusSet,omitempty"`
	Settings             *RunSettings         `protobuf:"bytes,8,opt,name=settings,proto3" json:"settings,omitempty"`
	Task                 *Task                `protobuf:"bytes,9,opt,name=task,proto3" json:"task,omitempty"`
	RanOn                string               `protobuf:"bytes,10,opt,name=ranOn,proto3" json:"ranOn,omitempty"`
	RanOnSet             bool                 `protobuf:"varint,11,opt,name=ranOnSet,proto3" json:"ranOnSet,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Run is a single CI run, intended to be sent to a runner.

func (*Run) Descriptor

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

func (*Run) GetCreatedAt

func (m *Run) GetCreatedAt() *timestamp.Timestamp

func (*Run) GetFinishedAt

func (m *Run) GetFinishedAt() *timestamp.Timestamp

func (*Run) GetId

func (m *Run) GetId() int64

func (*Run) GetName

func (m *Run) GetName() string

func (*Run) GetRanOn

func (m *Run) GetRanOn() string

func (*Run) GetRanOnSet

func (m *Run) GetRanOnSet() bool

func (*Run) GetSettings

func (m *Run) GetSettings() *RunSettings

func (*Run) GetStartedAt

func (m *Run) GetStartedAt() *timestamp.Timestamp

func (*Run) GetStatus

func (m *Run) GetStatus() bool

func (*Run) GetStatusSet

func (m *Run) GetStatusSet() bool

func (*Run) GetTask

func (m *Run) GetTask() *Task

func (*Run) ProtoMessage

func (*Run) ProtoMessage()

func (*Run) Reset

func (m *Run) Reset()

func (*Run) String

func (m *Run) String() string

func (*Run) XXX_DiscardUnknown

func (m *Run) XXX_DiscardUnknown()

func (*Run) XXX_Marshal

func (m *Run) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Run) XXX_Merge

func (m *Run) XXX_Merge(src proto.Message)

func (*Run) XXX_Size

func (m *Run) XXX_Size() int

func (*Run) XXX_Unmarshal

func (m *Run) XXX_Unmarshal(b []byte) error

type RunList

type RunList struct {
	List                 []*Run   `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RunList is just an array of runs

func (*RunList) Descriptor

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

func (*RunList) GetList

func (m *RunList) GetList() []*Run

func (*RunList) ProtoMessage

func (*RunList) ProtoMessage()

func (*RunList) Reset

func (m *RunList) Reset()

func (*RunList) String

func (m *RunList) String() string

func (*RunList) XXX_DiscardUnknown

func (m *RunList) XXX_DiscardUnknown()

func (*RunList) XXX_Marshal

func (m *RunList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RunList) XXX_Merge

func (m *RunList) XXX_Merge(src proto.Message)

func (*RunList) XXX_Size

func (m *RunList) XXX_Size() int

func (*RunList) XXX_Unmarshal

func (m *RunList) XXX_Unmarshal(b []byte) error

type RunSettings

type RunSettings struct {
	Command              []string        `protobuf:"bytes,1,rep,name=command,proto3" json:"command,omitempty"`
	Image                string          `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	Queue                string          `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"`
	Metadata             *_struct.Struct `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Name                 string          `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	Timeout              int64           `protobuf:"varint,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

RunSettings covers all the features that tinyCI supports to manage runs and execute them.

func (*RunSettings) Descriptor

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

func (*RunSettings) GetCommand

func (m *RunSettings) GetCommand() []string

func (*RunSettings) GetImage

func (m *RunSettings) GetImage() string

func (*RunSettings) GetMetadata

func (m *RunSettings) GetMetadata() *_struct.Struct

func (*RunSettings) GetName

func (m *RunSettings) GetName() string

func (*RunSettings) GetQueue

func (m *RunSettings) GetQueue() string

func (*RunSettings) GetTimeout

func (m *RunSettings) GetTimeout() int64

func (*RunSettings) ProtoMessage

func (*RunSettings) ProtoMessage()

func (*RunSettings) Reset

func (m *RunSettings) Reset()

func (*RunSettings) String

func (m *RunSettings) String() string

func (*RunSettings) XXX_DiscardUnknown

func (m *RunSettings) XXX_DiscardUnknown()

func (*RunSettings) XXX_Marshal

func (m *RunSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RunSettings) XXX_Merge

func (m *RunSettings) XXX_Merge(src proto.Message)

func (*RunSettings) XXX_Size

func (m *RunSettings) XXX_Size() int

func (*RunSettings) XXX_Unmarshal

func (m *RunSettings) XXX_Unmarshal(b []byte) error

type Session

type Session struct {
	Key                  string               `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Values               string               `protobuf:"bytes,2,opt,name=values,proto3" json:"values,omitempty"`
	ExpiresOn            *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expiresOn,proto3" json:"expiresOn,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Session is a session key/value pair as well as an expiry time for the session. All values are encrypted with the session key.

func (*Session) Descriptor

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

func (*Session) GetExpiresOn

func (m *Session) GetExpiresOn() *timestamp.Timestamp

func (*Session) GetKey

func (m *Session) GetKey() string

func (*Session) GetValues

func (m *Session) GetValues() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) Reset

func (m *Session) Reset()

func (*Session) String

func (m *Session) String() string

func (*Session) XXX_DiscardUnknown

func (m *Session) XXX_DiscardUnknown()

func (*Session) XXX_Marshal

func (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Session) XXX_Merge

func (m *Session) XXX_Merge(src proto.Message)

func (*Session) XXX_Size

func (m *Session) XXX_Size() int

func (*Session) XXX_Unmarshal

func (m *Session) XXX_Unmarshal(b []byte) error

type Status

type Status struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Status               bool     `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	AdditionalMessage    string   `protobuf:"bytes,3,opt,name=additionalMessage,proto3" json:"additionalMessage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Status is reported to the queuesvc on completion of a run.

func (*Status) Descriptor

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

func (*Status) GetAdditionalMessage

func (m *Status) GetAdditionalMessage() string

func (*Status) GetId

func (m *Status) GetId() int64

func (*Status) GetStatus

func (m *Status) GetStatus() bool

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) String

func (m *Status) String() string

func (*Status) XXX_DiscardUnknown

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal

func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Status) XXX_Merge

func (m *Status) XXX_Merge(src proto.Message)

func (*Status) XXX_Size

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal

func (m *Status) XXX_Unmarshal(b []byte) error

type StringID

type StringID struct {
	ID                   string   `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

StringID is just like types.IntID but instead it's a string!

func (*StringID) Descriptor

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

func (*StringID) GetID

func (m *StringID) GetID() string

func (*StringID) ProtoMessage

func (*StringID) ProtoMessage()

func (*StringID) Reset

func (m *StringID) Reset()

func (*StringID) String

func (m *StringID) String() string

func (*StringID) XXX_DiscardUnknown

func (m *StringID) XXX_DiscardUnknown()

func (*StringID) XXX_Marshal

func (m *StringID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringID) XXX_Merge

func (m *StringID) XXX_Merge(src proto.Message)

func (*StringID) XXX_Size

func (m *StringID) XXX_Size() int

func (*StringID) XXX_Unmarshal

func (m *StringID) XXX_Unmarshal(b []byte) error

type Submission

type Submission struct {
	Id                   int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	HeadRef              *Ref                 `protobuf:"bytes,2,opt,name=headRef,proto3" json:"headRef,omitempty"`
	BaseRef              *Ref                 `protobuf:"bytes,3,opt,name=baseRef,proto3" json:"baseRef,omitempty"`
	User                 *User                `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	TasksCount           int64                `protobuf:"varint,6,opt,name=tasksCount,proto3" json:"tasksCount,omitempty"`
	FinishedAt           *timestamp.Timestamp `protobuf:"bytes,7,opt,name=finishedAt,proto3" json:"finishedAt,omitempty"`
	Status               bool                 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"`
	StatusSet            bool                 `protobuf:"varint,9,opt,name=statusSet,proto3" json:"statusSet,omitempty"`
	StartedAt            *timestamp.Timestamp `protobuf:"bytes,10,opt,name=startedAt,proto3" json:"startedAt,omitempty"`
	Canceled             bool                 `protobuf:"varint,11,opt,name=canceled,proto3" json:"canceled,omitempty"`
	TicketID             int64                `protobuf:"varint,12,opt,name=ticketID,proto3" json:"ticketID,omitempty"`
	RunsCount            int64                `protobuf:"varint,13,opt,name=runsCount,proto3" json:"runsCount,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Submission) Descriptor

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

func (*Submission) GetBaseRef

func (m *Submission) GetBaseRef() *Ref

func (*Submission) GetCanceled

func (m *Submission) GetCanceled() bool

func (*Submission) GetCreatedAt

func (m *Submission) GetCreatedAt() *timestamp.Timestamp

func (*Submission) GetFinishedAt

func (m *Submission) GetFinishedAt() *timestamp.Timestamp

func (*Submission) GetHeadRef

func (m *Submission) GetHeadRef() *Ref

func (*Submission) GetId

func (m *Submission) GetId() int64

func (*Submission) GetRunsCount

func (m *Submission) GetRunsCount() int64

func (*Submission) GetStartedAt

func (m *Submission) GetStartedAt() *timestamp.Timestamp

func (*Submission) GetStatus

func (m *Submission) GetStatus() bool

func (*Submission) GetStatusSet

func (m *Submission) GetStatusSet() bool

func (*Submission) GetTasksCount

func (m *Submission) GetTasksCount() int64

func (*Submission) GetTicketID

func (m *Submission) GetTicketID() int64

func (*Submission) GetUser

func (m *Submission) GetUser() *User

func (*Submission) ProtoMessage

func (*Submission) ProtoMessage()

func (*Submission) Reset

func (m *Submission) Reset()

func (*Submission) String

func (m *Submission) String() string

func (*Submission) XXX_DiscardUnknown

func (m *Submission) XXX_DiscardUnknown()

func (*Submission) XXX_Marshal

func (m *Submission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Submission) XXX_Merge

func (m *Submission) XXX_Merge(src proto.Message)

func (*Submission) XXX_Size

func (m *Submission) XXX_Size() int

func (*Submission) XXX_Unmarshal

func (m *Submission) XXX_Unmarshal(b []byte) error

type SubmissionList

type SubmissionList struct {
	Submissions          []*Submission `protobuf:"bytes,1,rep,name=submissions,proto3" json:"submissions,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*SubmissionList) Descriptor

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

func (*SubmissionList) GetSubmissions

func (m *SubmissionList) GetSubmissions() []*Submission

func (*SubmissionList) ProtoMessage

func (*SubmissionList) ProtoMessage()

func (*SubmissionList) Reset

func (m *SubmissionList) Reset()

func (*SubmissionList) String

func (m *SubmissionList) String() string

func (*SubmissionList) XXX_DiscardUnknown

func (m *SubmissionList) XXX_DiscardUnknown()

func (*SubmissionList) XXX_Marshal

func (m *SubmissionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubmissionList) XXX_Merge

func (m *SubmissionList) XXX_Merge(src proto.Message)

func (*SubmissionList) XXX_Size

func (m *SubmissionList) XXX_Size() int

func (*SubmissionList) XXX_Unmarshal

func (m *SubmissionList) XXX_Unmarshal(b []byte) error

type Task

type Task struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// XXX Fields that are no longer used
	// types.Repository          parent        = 2; // Parent Repository
	// types.Ref                 ref           = 3; // Associated Ref to be tested
	// string                    baseSHA       = 4; // BaseSHA for diff
	PullRequestID        int64                `protobuf:"varint,5,opt,name=pullRequestID,proto3" json:"pullRequestID,omitempty"`
	Canceled             bool                 `protobuf:"varint,6,opt,name=canceled,proto3" json:"canceled,omitempty"`
	FinishedAt           *timestamp.Timestamp `protobuf:"bytes,7,opt,name=finishedAt,proto3" json:"finishedAt,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	StartedAt            *timestamp.Timestamp `protobuf:"bytes,9,opt,name=startedAt,proto3" json:"startedAt,omitempty"`
	Status               bool                 `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"`
	StatusSet            bool                 `protobuf:"varint,11,opt,name=statusSet,proto3" json:"statusSet,omitempty"`
	Settings             *TaskSettings        `protobuf:"bytes,12,opt,name=settings,proto3" json:"settings,omitempty"`
	Path                 string               `protobuf:"bytes,13,opt,name=path,proto3" json:"path,omitempty"`
	Runs                 int64                `protobuf:"varint,14,opt,name=runs,proto3" json:"runs,omitempty"`
	Submission           *Submission          `protobuf:"bytes,15,opt,name=submission,proto3" json:"submission,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Task corresponds to directories within the tree that have a `task.yml` placed in them. Each task is decomposed into runs, and this record is created indicating the group of them, as well as properties they share.

func (*Task) Descriptor

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

func (*Task) GetCanceled

func (m *Task) GetCanceled() bool

func (*Task) GetCreatedAt

func (m *Task) GetCreatedAt() *timestamp.Timestamp

func (*Task) GetFinishedAt

func (m *Task) GetFinishedAt() *timestamp.Timestamp

func (*Task) GetId

func (m *Task) GetId() int64

func (*Task) GetPath

func (m *Task) GetPath() string

func (*Task) GetPullRequestID

func (m *Task) GetPullRequestID() int64

func (*Task) GetRuns

func (m *Task) GetRuns() int64

func (*Task) GetSettings

func (m *Task) GetSettings() *TaskSettings

func (*Task) GetStartedAt

func (m *Task) GetStartedAt() *timestamp.Timestamp

func (*Task) GetStatus

func (m *Task) GetStatus() bool

func (*Task) GetStatusSet

func (m *Task) GetStatusSet() bool

func (*Task) GetSubmission

func (m *Task) GetSubmission() *Submission

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) Reset

func (m *Task) Reset()

func (*Task) String

func (m *Task) String() string

func (*Task) XXX_DiscardUnknown

func (m *Task) XXX_DiscardUnknown()

func (*Task) XXX_Marshal

func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Task) XXX_Merge

func (m *Task) XXX_Merge(src proto.Message)

func (*Task) XXX_Size

func (m *Task) XXX_Size() int

func (*Task) XXX_Unmarshal

func (m *Task) XXX_Unmarshal(b []byte) error

type TaskList

type TaskList struct {
	Tasks                []*Task  `protobuf:"bytes,1,rep,name=Tasks,proto3" json:"Tasks,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

TaskList is simply a repeated list of tasks.

func (*TaskList) Descriptor

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

func (*TaskList) GetTasks

func (m *TaskList) GetTasks() []*Task

func (*TaskList) ProtoMessage

func (*TaskList) ProtoMessage()

func (*TaskList) Reset

func (m *TaskList) Reset()

func (*TaskList) String

func (m *TaskList) String() string

func (*TaskList) XXX_DiscardUnknown

func (m *TaskList) XXX_DiscardUnknown()

func (*TaskList) XXX_Marshal

func (m *TaskList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaskList) XXX_Merge

func (m *TaskList) XXX_Merge(src proto.Message)

func (*TaskList) XXX_Size

func (m *TaskList) XXX_Size() int

func (*TaskList) XXX_Unmarshal

func (m *TaskList) XXX_Unmarshal(b []byte) error

type TaskSettings

type TaskSettings struct {
	Mountpoint           string                  `protobuf:"bytes,1,opt,name=mountpoint,proto3" json:"mountpoint,omitempty"`
	Env                  []string                `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`
	Workdir              string                  `protobuf:"bytes,3,opt,name=workdir,proto3" json:"workdir,omitempty"`
	Runs                 map[string]*RunSettings `` /* 149-byte string literal not displayed */
	DefaultTimeout       int64                   `protobuf:"varint,5,opt,name=defaultTimeout,proto3" json:"defaultTimeout,omitempty"`
	DefaultQueue         string                  `protobuf:"bytes,6,opt,name=defaultQueue,proto3" json:"defaultQueue,omitempty"`
	DefaultImage         string                  `protobuf:"bytes,7,opt,name=defaultImage,proto3" json:"defaultImage,omitempty"`
	Metadata             *_struct.Struct         `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Dependencies         []string                `protobuf:"bytes,9,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

TaskSettings is the parsed representation to struct of task.yml files.

func (*TaskSettings) Descriptor

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

func (*TaskSettings) GetDefaultImage

func (m *TaskSettings) GetDefaultImage() string

func (*TaskSettings) GetDefaultQueue

func (m *TaskSettings) GetDefaultQueue() string

func (*TaskSettings) GetDefaultTimeout

func (m *TaskSettings) GetDefaultTimeout() int64

func (*TaskSettings) GetDependencies

func (m *TaskSettings) GetDependencies() []string

func (*TaskSettings) GetEnv

func (m *TaskSettings) GetEnv() []string

func (*TaskSettings) GetMetadata

func (m *TaskSettings) GetMetadata() *_struct.Struct

func (*TaskSettings) GetMountpoint

func (m *TaskSettings) GetMountpoint() string

func (*TaskSettings) GetRuns

func (m *TaskSettings) GetRuns() map[string]*RunSettings

func (*TaskSettings) GetWorkdir

func (m *TaskSettings) GetWorkdir() string

func (*TaskSettings) ProtoMessage

func (*TaskSettings) ProtoMessage()

func (*TaskSettings) Reset

func (m *TaskSettings) Reset()

func (*TaskSettings) String

func (m *TaskSettings) String() string

func (*TaskSettings) XXX_DiscardUnknown

func (m *TaskSettings) XXX_DiscardUnknown()

func (*TaskSettings) XXX_Marshal

func (m *TaskSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaskSettings) XXX_Merge

func (m *TaskSettings) XXX_Merge(src proto.Message)

func (*TaskSettings) XXX_Size

func (m *TaskSettings) XXX_Size() int

func (*TaskSettings) XXX_Unmarshal

func (m *TaskSettings) XXX_Unmarshal(b []byte) error

type User

type User struct {
	Id               int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username         string               `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	LastScannedRepos *timestamp.Timestamp `protobuf:"bytes,3,opt,name=lastScannedRepos,proto3" json:"lastScannedRepos,omitempty"`
	Errors           []*UserError         `protobuf:"bytes,4,rep,name=errors,proto3" json:"errors,omitempty"`
	// JSON corresponding to the oauth2 response from github when first signing
	// up; this contains an access and refresh token. Encrypted with the token
	// key.
	TokenJSON            []byte   `protobuf:"bytes,5,opt,name=tokenJSON,proto3" json:"tokenJSON,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

User is ... a user record

func (*User) Descriptor

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

func (*User) GetErrors

func (m *User) GetErrors() []*UserError

func (*User) GetId

func (m *User) GetId() int64

func (*User) GetLastScannedRepos

func (m *User) GetLastScannedRepos() *timestamp.Timestamp

func (*User) GetTokenJSON

func (m *User) GetTokenJSON() []byte

func (*User) GetUsername

func (m *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*User) XXX_Merge

func (m *User) XXX_Merge(src proto.Message)

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

func (m *User) XXX_Unmarshal(b []byte) error

type UserError

type UserError struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserID               int64    `protobuf:"varint,2,opt,name=userID,proto3" json:"userID,omitempty"`
	Error                string   `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

UserError is the pre-converted UserError record. It is later converted to a types.Error.

func (*UserError) Descriptor

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

func (*UserError) GetError

func (m *UserError) GetError() string

func (*UserError) GetId

func (m *UserError) GetId() int64

func (*UserError) GetUserID

func (m *UserError) GetUserID() int64

func (*UserError) ProtoMessage

func (*UserError) ProtoMessage()

func (*UserError) Reset

func (m *UserError) Reset()

func (*UserError) String

func (m *UserError) String() string

func (*UserError) XXX_DiscardUnknown

func (m *UserError) XXX_DiscardUnknown()

func (*UserError) XXX_Marshal

func (m *UserError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserError) XXX_Merge

func (m *UserError) XXX_Merge(src proto.Message)

func (*UserError) XXX_Size

func (m *UserError) XXX_Size() int

func (*UserError) XXX_Unmarshal

func (m *UserError) XXX_Unmarshal(b []byte) error

type UserErrors

type UserErrors struct {
	Errors               []*UserError `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

List of UserError

func (*UserErrors) Descriptor

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

func (*UserErrors) GetErrors

func (m *UserErrors) GetErrors() []*UserError

func (*UserErrors) ProtoMessage

func (*UserErrors) ProtoMessage()

func (*UserErrors) Reset

func (m *UserErrors) Reset()

func (*UserErrors) String

func (m *UserErrors) String() string

func (*UserErrors) XXX_DiscardUnknown

func (m *UserErrors) XXX_DiscardUnknown()

func (*UserErrors) XXX_Marshal

func (m *UserErrors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserErrors) XXX_Merge

func (m *UserErrors) XXX_Merge(src proto.Message)

func (*UserErrors) XXX_Size

func (m *UserErrors) XXX_Size() int

func (*UserErrors) XXX_Unmarshal

func (m *UserErrors) XXX_Unmarshal(b []byte) error

type UserList

type UserList struct {
	Users                []*User  `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

List of Users

func (*UserList) Descriptor

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

func (*UserList) GetUsers

func (m *UserList) GetUsers() []*User

func (*UserList) ProtoMessage

func (*UserList) ProtoMessage()

func (*UserList) Reset

func (m *UserList) Reset()

func (*UserList) String

func (m *UserList) String() string

func (*UserList) XXX_DiscardUnknown

func (m *UserList) XXX_DiscardUnknown()

func (*UserList) XXX_Marshal

func (m *UserList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserList) XXX_Merge

func (m *UserList) XXX_Merge(src proto.Message)

func (*UserList) XXX_Size

func (m *UserList) XXX_Size() int

func (*UserList) XXX_Unmarshal

func (m *UserList) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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