types

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MPL-2.0-no-copyleft-exception, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_tinyci_ci_agents_ci_gen_grpc_types_bool_proto protoreflect.FileDescriptor
View Source
var File_github_com_tinyci_ci_agents_ci_gen_grpc_types_error_proto protoreflect.FileDescriptor
View Source
var File_github_com_tinyci_ci_agents_ci_gen_grpc_types_id_proto protoreflect.FileDescriptor
View Source
var File_github_com_tinyci_ci_agents_ci_gen_grpc_types_queue_item_proto protoreflect.FileDescriptor
View Source
var File_github_com_tinyci_ci_agents_ci_gen_grpc_types_ref_proto protoreflect.FileDescriptor
View Source
var File_github_com_tinyci_ci_agents_ci_gen_grpc_types_repository_proto protoreflect.FileDescriptor
View Source
var File_github_com_tinyci_ci_agents_ci_gen_grpc_types_run_proto protoreflect.FileDescriptor
View Source
var File_github_com_tinyci_ci_agents_ci_gen_grpc_types_run_settings_proto protoreflect.FileDescriptor
View Source
var File_github_com_tinyci_ci_agents_ci_gen_grpc_types_session_proto protoreflect.FileDescriptor
View Source
var File_github_com_tinyci_ci_agents_ci_gen_grpc_types_submission_proto protoreflect.FileDescriptor
View Source
var File_github_com_tinyci_ci_agents_ci_gen_grpc_types_task_proto protoreflect.FileDescriptor
View Source
var File_github_com_tinyci_ci_agents_ci_gen_grpc_types_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Bool

type Bool struct {
	Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` // result of boolean query
	// contains filtered or unexported fields
}

func (*Bool) Descriptor deprecated

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

Deprecated: Use Bool.ProtoReflect.Descriptor instead.

func (*Bool) GetResult

func (x *Bool) GetResult() bool

func (*Bool) ProtoMessage

func (*Bool) ProtoMessage()

func (*Bool) ProtoReflect added in v0.3.0

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

func (*Bool) Reset

func (x *Bool) Reset()

func (*Bool) String

func (x *Bool) String() string

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"`
	// contains filtered or unexported fields
}

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

func (*CancelPRRequest) Descriptor deprecated

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

Deprecated: Use CancelPRRequest.ProtoReflect.Descriptor instead.

func (*CancelPRRequest) GetId

func (x *CancelPRRequest) GetId() int64

func (*CancelPRRequest) GetRepository

func (x *CancelPRRequest) GetRepository() string

func (*CancelPRRequest) ProtoMessage

func (*CancelPRRequest) ProtoMessage()

func (*CancelPRRequest) ProtoReflect added in v0.3.0

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

func (*CancelPRRequest) Reset

func (x *CancelPRRequest) Reset()

func (*CancelPRRequest) String

func (x *CancelPRRequest) String() string

type Error

type Error struct {
	Errors []string `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"` // list of errors that occurred
	Log    bool     `protobuf:"varint,2,opt,name=log,proto3" json:"log,omitempty"`      // whether or not the error is intended to be logged; used internally by some functions.
	// contains filtered or unexported fields
}

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

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetErrors

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

func (*Error) GetLog

func (x *Error) GetLog() bool

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect added in v0.3.0

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type IntID

type IntID struct {
	ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // ID is the ID.
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use IntID.ProtoReflect.Descriptor instead.

func (*IntID) GetID

func (x *IntID) GetID() int64

func (*IntID) ProtoMessage

func (*IntID) ProtoMessage()

func (*IntID) ProtoReflect added in v0.3.0

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

func (*IntID) Reset

func (x *IntID) Reset()

func (*IntID) String

func (x *IntID) String() string

type Merge added in v0.3.0

type Merge struct {
	DoNotMerge bool     `protobuf:"varint,1,opt,name=doNotMerge,proto3" json:"doNotMerge,omitempty"`                  // do not merge any branch
	IgnoreRefs []string `protobuf:"bytes,2,rep,name=ignore_refs,json=ignoreRefs,proto3" json:"ignore_refs,omitempty"` // do not merge these refs
	// contains filtered or unexported fields
}

func (*Merge) Descriptor deprecated added in v0.3.0

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

Deprecated: Use Merge.ProtoReflect.Descriptor instead.

func (*Merge) GetDoNotMerge added in v0.3.0

func (x *Merge) GetDoNotMerge() bool

func (*Merge) GetIgnoreRefs added in v0.3.0

func (x *Merge) GetIgnoreRefs() []string

func (*Merge) ProtoMessage added in v0.3.0

func (*Merge) ProtoMessage()

func (*Merge) ProtoReflect added in v0.3.0

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

func (*Merge) Reset added in v0.3.0

func (x *Merge) Reset()

func (*Merge) String added in v0.3.0

func (x *Merge) String() string

type QueueItem

type QueueItem struct {
	Id        int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`              // ID of queue item
	Running   bool                   `protobuf:"varint,2,opt,name=running,proto3" json:"running,omitempty"`    // Is the job running?
	RunningOn string                 `protobuf:"bytes,3,opt,name=runningOn,proto3" json:"runningOn,omitempty"` // What host is it running on
	StartedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=startedAt,proto3" json:"startedAt,omitempty"` // When did it start?
	QueueName string                 `protobuf:"bytes,5,opt,name=queueName,proto3" json:"queueName,omitempty"` // The name of the queue
	Run       *Run                   `protobuf:"bytes,6,opt,name=run,proto3" json:"run,omitempty"`             // The run itself.
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use QueueItem.ProtoReflect.Descriptor instead.

func (*QueueItem) GetId

func (x *QueueItem) GetId() int64

func (*QueueItem) GetQueueName

func (x *QueueItem) GetQueueName() string

func (*QueueItem) GetRun

func (x *QueueItem) GetRun() *Run

func (*QueueItem) GetRunning

func (x *QueueItem) GetRunning() bool

func (*QueueItem) GetRunningOn

func (x *QueueItem) GetRunningOn() string

func (*QueueItem) GetStartedAt

func (x *QueueItem) GetStartedAt() *timestamppb.Timestamp

func (*QueueItem) ProtoMessage

func (*QueueItem) ProtoMessage()

func (*QueueItem) ProtoReflect added in v0.3.0

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

func (*QueueItem) Reset

func (x *QueueItem) Reset()

func (*QueueItem) String

func (x *QueueItem) String() string

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"`
	// contains filtered or unexported fields
}

QueueRequest is issued by runners to the queuesvc.

func (*QueueRequest) Descriptor deprecated

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

Deprecated: Use QueueRequest.ProtoReflect.Descriptor instead.

func (*QueueRequest) GetQueueName

func (x *QueueRequest) GetQueueName() string

func (*QueueRequest) GetRunningOn

func (x *QueueRequest) GetRunningOn() string

func (*QueueRequest) ProtoMessage

func (*QueueRequest) ProtoMessage()

func (*QueueRequest) ProtoReflect added in v0.3.0

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

func (*QueueRequest) Reset

func (x *QueueRequest) Reset()

func (*QueueRequest) String

func (x *QueueRequest) String() string

type Ref

type Ref struct {
	Id         int64       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                // Internal ID of ref
	Repository *Repository `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` // Repository the ref belongs to (typically, the fork)
	RefName    string      `protobuf:"bytes,3,opt,name=refName,proto3" json:"refName,omitempty"`       // RefName is the name of the ref (branch, tag) if determined.
	Sha        string      `protobuf:"bytes,4,opt,name=sha,proto3" json:"sha,omitempty"`               // SHA is the SHA of the latest commit in the ref.
	// contains filtered or unexported fields
}

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

func (*Ref) Descriptor deprecated

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

Deprecated: Use Ref.ProtoReflect.Descriptor instead.

func (*Ref) GetId

func (x *Ref) GetId() int64

func (*Ref) GetRefName

func (x *Ref) GetRefName() string

func (*Ref) GetRepository

func (x *Ref) GetRepository() *Repository

func (*Ref) GetSha

func (x *Ref) GetSha() string

func (*Ref) ProtoMessage

func (*Ref) ProtoMessage()

func (*Ref) ProtoReflect added in v0.3.0

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

func (*Ref) Reset

func (x *Ref) Reset()

func (*Ref) String

func (x *Ref) String() string

type RepoConfig added in v0.3.0

type RepoConfig struct {
	AllowPrivileged   bool              `protobuf:"varint,1,opt,name=allow_privileged,json=allowPrivileged,proto3" json:"allow_privileged,omitempty"`      // allow privileged runs in this repository?
	Workdir           string            `protobuf:"bytes,2,opt,name=workdir,proto3" json:"workdir,omitempty"`                                              // global workdir
	Queue             string            `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"`                                                  // queue name
	OverrideQueue     bool              `protobuf:"varint,4,opt,name=override_queue,json=overrideQueue,proto3" json:"override_queue,omitempty"`            // override queue settings?
	GlobalTimeout     int64             `protobuf:"varint,5,opt,name=global_timeout,json=globalTimeout,proto3" json:"global_timeout,omitempty"`            // timeout for all unspecified runs
	OverrideTimeout   bool              `protobuf:"varint,6,opt,name=override_timeout,json=overrideTimeout,proto3" json:"override_timeout,omitempty"`      // override timeout with the global timeout?
	IgnoreDirectories []string          `protobuf:"bytes,7,rep,name=ignore_directories,json=ignoreDirectories,proto3" json:"ignore_directories,omitempty"` // directories to ignore
	Metadata          map[string]string ``                                                                                                                 // metadata to populate in each run
	/* 157-byte string literal not displayed */
	OverrideMetadata bool       `protobuf:"varint,9,opt,name=override_metadata,json=overrideMetadata,proto3" json:"override_metadata,omitempty"` // override metadata?
	DefaultImage     string     `protobuf:"bytes,10,opt,name=default_image,json=defaultImage,proto3" json:"default_image,omitempty"`             // use this image as the default
	DefaultResources *Resources `protobuf:"bytes,11,opt,name=default_resources,json=defaultResources,proto3" json:"default_resources,omitempty"` // default resources to consume
	MergeOptions     *Merge     `protobuf:"bytes,12,opt,name=merge_options,json=mergeOptions,proto3" json:"merge_options,omitempty"`             // merge options
	// contains filtered or unexported fields
}

RepoConfig corresponds to the tinyci.yml file at the root of the repository. It is only read from the default branch during submissions, but its inclusion into the structs is necessary to evaluate them by runners at times, or in more advanced validation scenarios against task.yml.

func (*RepoConfig) Descriptor deprecated added in v0.3.0

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

Deprecated: Use RepoConfig.ProtoReflect.Descriptor instead.

func (*RepoConfig) GetAllowPrivileged added in v0.3.0

func (x *RepoConfig) GetAllowPrivileged() bool

func (*RepoConfig) GetDefaultImage added in v0.3.0

func (x *RepoConfig) GetDefaultImage() string

func (*RepoConfig) GetDefaultResources added in v0.3.0

func (x *RepoConfig) GetDefaultResources() *Resources

func (*RepoConfig) GetGlobalTimeout added in v0.3.0

func (x *RepoConfig) GetGlobalTimeout() int64

func (*RepoConfig) GetIgnoreDirectories added in v0.3.0

func (x *RepoConfig) GetIgnoreDirectories() []string

func (*RepoConfig) GetMergeOptions added in v0.3.0

func (x *RepoConfig) GetMergeOptions() *Merge

func (*RepoConfig) GetMetadata added in v0.3.0

func (x *RepoConfig) GetMetadata() map[string]string

func (*RepoConfig) GetOverrideMetadata added in v0.3.0

func (x *RepoConfig) GetOverrideMetadata() bool

func (*RepoConfig) GetOverrideQueue added in v0.3.0

func (x *RepoConfig) GetOverrideQueue() bool

func (*RepoConfig) GetOverrideTimeout added in v0.3.0

func (x *RepoConfig) GetOverrideTimeout() bool

func (*RepoConfig) GetQueue added in v0.3.0

func (x *RepoConfig) GetQueue() string

func (*RepoConfig) GetWorkdir added in v0.3.0

func (x *RepoConfig) GetWorkdir() string

func (*RepoConfig) ProtoMessage added in v0.3.0

func (*RepoConfig) ProtoMessage()

func (*RepoConfig) ProtoReflect added in v0.3.0

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

func (*RepoConfig) Reset added in v0.3.0

func (x *RepoConfig) Reset()

func (*RepoConfig) String added in v0.3.0

func (x *RepoConfig) String() string

type Repository

type Repository struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                   // ID is the internal ID of the repository
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                // Name is the string name of the repository, in owner/repo format
	Private     bool   `protobuf:"varint,3,opt,name=private,proto3" json:"private,omitempty"`         // Private tells the CI system to not expose this repository for subscription, unless they are an owner.
	Disabled    bool   `protobuf:"varint,4,opt,name=disabled,proto3" json:"disabled,omitempty"`       // Disabled is true by default; and indicates whether or not the repository is disabled from testing.
	Owner       *User  `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`              // Owner is the user who can manipulate this repository, as well as those whose keys will be used for testing.
	AutoCreated bool   `protobuf:"varint,6,opt,name=autoCreated,proto3" json:"autoCreated,omitempty"` // AutoCreated is the flag that demonstrates this was created from a repo scan and not added manually.
	HookSecret  string `protobuf:"bytes,7,opt,name=hookSecret,proto3" json:"hookSecret,omitempty"`    // HookSecret is the secret populated into the github webhooks; and validated by us on incoming hook requests.
	Github      []byte `protobuf:"bytes,8,opt,name=github,proto3" json:"github,omitempty"`            // JSON covering the entire repository's properties, when gathered from Github.
	// contains filtered or unexported fields
}

Repository is the model for a github repository.

func (*Repository) Descriptor deprecated

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

Deprecated: Use Repository.ProtoReflect.Descriptor instead.

func (*Repository) GetAutoCreated

func (x *Repository) GetAutoCreated() bool

func (*Repository) GetDisabled

func (x *Repository) GetDisabled() bool

func (*Repository) GetGithub

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

func (*Repository) GetHookSecret

func (x *Repository) GetHookSecret() string

func (*Repository) GetId

func (x *Repository) GetId() int64

func (*Repository) GetName

func (x *Repository) GetName() string

func (*Repository) GetOwner

func (x *Repository) GetOwner() *User

func (*Repository) GetPrivate

func (x *Repository) GetPrivate() bool

func (*Repository) ProtoMessage

func (*Repository) ProtoMessage()

func (*Repository) ProtoReflect added in v0.3.0

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

func (*Repository) Reset

func (x *Repository) Reset()

func (*Repository) String

func (x *Repository) String() string

type RepositoryList

type RepositoryList struct {
	List []*Repository `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*RepositoryList) Descriptor deprecated

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

Deprecated: Use RepositoryList.ProtoReflect.Descriptor instead.

func (*RepositoryList) GetList

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

func (*RepositoryList) ProtoMessage

func (*RepositoryList) ProtoMessage()

func (*RepositoryList) ProtoReflect added in v0.3.0

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

func (*RepositoryList) Reset

func (x *RepositoryList) Reset()

func (*RepositoryList) String

func (x *RepositoryList) String() string

type Resources added in v0.3.0

type Resources struct {
	Cpu    string `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"`       // cpu utilization
	Memory string `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory,omitempty"` // memory available
	Disk   string `protobuf:"bytes,3,opt,name=disk,proto3" json:"disk,omitempty"`     // disk available
	Iops   string `protobuf:"bytes,4,opt,name=iops,proto3" json:"iops,omitempty"`     // iops available
	// contains filtered or unexported fields
}

Resources covers resource constraints that a runner might act on. It is voluntary for a runner to take these values into consideration. It is also up to the runner to interpret these values, and will differ between different runners.

func (*Resources) Descriptor deprecated added in v0.3.0

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

Deprecated: Use Resources.ProtoReflect.Descriptor instead.

func (*Resources) GetCpu added in v0.3.0

func (x *Resources) GetCpu() string

func (*Resources) GetDisk added in v0.3.0

func (x *Resources) GetDisk() string

func (*Resources) GetIops added in v0.3.0

func (x *Resources) GetIops() string

func (*Resources) GetMemory added in v0.3.0

func (x *Resources) GetMemory() string

func (*Resources) ProtoMessage added in v0.3.0

func (*Resources) ProtoMessage()

func (*Resources) ProtoReflect added in v0.3.0

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

func (*Resources) Reset added in v0.3.0

func (x *Resources) Reset()

func (*Resources) String added in v0.3.0

func (x *Resources) String() string

type Run

type Run struct {
	Id         int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                // ID is the internal ID of the run.
	Name       string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`             // Name is the name of the run. Typically this is in `dir:run_name` format.
	CreatedAt  *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=createdAt,proto3" json:"createdAt,omitempty"`   // When was this run created
	StartedAt  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=startedAt,proto3" json:"startedAt,omitempty"`   // When did this run start
	FinishedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=finishedAt,proto3" json:"finishedAt,omitempty"` // When did this run finish
	Status     bool                   `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`        // What is the status of this run
	StatusSet  bool                   `protobuf:"varint,7,opt,name=statusSet,proto3" json:"statusSet,omitempty"`  // Is the status valid? (nil internally for invalid settings, but proto doesn't like nil)
	Settings   *RunSettings           `protobuf:"bytes,8,opt,name=settings,proto3" json:"settings,omitempty"`     // The settings for the Run (image, command etc)
	Task       *Task                  `protobuf:"bytes,9,opt,name=task,proto3" json:"task,omitempty"`             // Task for the Run.
	RanOn      string                 `protobuf:"bytes,10,opt,name=ranOn,proto3" json:"ranOn,omitempty"`          // what host the run happened on
	RanOnSet   bool                   `protobuf:"varint,11,opt,name=ranOnSet,proto3" json:"ranOnSet,omitempty"`   // if the ranOn host was set.
	// contains filtered or unexported fields
}

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

func (*Run) Descriptor deprecated

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

Deprecated: Use Run.ProtoReflect.Descriptor instead.

func (*Run) GetCreatedAt

func (x *Run) GetCreatedAt() *timestamppb.Timestamp

func (*Run) GetFinishedAt

func (x *Run) GetFinishedAt() *timestamppb.Timestamp

func (*Run) GetId

func (x *Run) GetId() int64

func (*Run) GetName

func (x *Run) GetName() string

func (*Run) GetRanOn

func (x *Run) GetRanOn() string

func (*Run) GetRanOnSet

func (x *Run) GetRanOnSet() bool

func (*Run) GetSettings

func (x *Run) GetSettings() *RunSettings

func (*Run) GetStartedAt

func (x *Run) GetStartedAt() *timestamppb.Timestamp

func (*Run) GetStatus

func (x *Run) GetStatus() bool

func (*Run) GetStatusSet

func (x *Run) GetStatusSet() bool

func (*Run) GetTask

func (x *Run) GetTask() *Task

func (*Run) ProtoMessage

func (*Run) ProtoMessage()

func (*Run) ProtoReflect added in v0.3.0

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

func (*Run) Reset

func (x *Run) Reset()

func (*Run) String

func (x *Run) String() string

type RunList

type RunList struct {
	List []*Run `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // The list of runs!
	// contains filtered or unexported fields
}

RunList is just an array of runs

func (*RunList) Descriptor deprecated

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

Deprecated: Use RunList.ProtoReflect.Descriptor instead.

func (*RunList) GetList

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

func (*RunList) ProtoMessage

func (*RunList) ProtoMessage()

func (*RunList) ProtoReflect added in v0.3.0

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

func (*RunList) Reset

func (x *RunList) Reset()

func (*RunList) String

func (x *RunList) String() string

type RunSettings

type RunSettings struct {
	Command    []string         `protobuf:"bytes,1,rep,name=command,proto3" json:"command,omitempty"`        // Command is the command in execv() form (array of strings)
	Image      string           `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`            // Image is an arbitrary image name, the overlay runner needs docker registry format
	Queue      string           `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"`            // Queue is the name of the queue this run should be placed in.
	Metadata   *structpb.Struct `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`      // Metadata is a free form grab-bag of properties for runners to use.
	Name       string           `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`              // Name is the name of the run
	Timeout    int64            `protobuf:"varint,6,opt,name=timeout,proto3" json:"timeout,omitempty"`       // Timeout is the timeout, in seconds, to wait before automatically canceling a run.
	Resources  *Resources       `protobuf:"bytes,7,opt,name=resources,proto3" json:"resources,omitempty"`    // Resource constraint values
	Privileged bool             `protobuf:"varint,8,opt,name=privileged,proto3" json:"privileged,omitempty"` // use a privileged container to run this test?
	Env        []string         `protobuf:"bytes,9,rep,name=env,proto3" json:"env,omitempty"`                // environment variables
	// contains filtered or unexported fields
}

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

func (*RunSettings) Descriptor deprecated

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

Deprecated: Use RunSettings.ProtoReflect.Descriptor instead.

func (*RunSettings) GetCommand

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

func (*RunSettings) GetEnv added in v0.3.0

func (x *RunSettings) GetEnv() []string

func (*RunSettings) GetImage

func (x *RunSettings) GetImage() string

func (*RunSettings) GetMetadata

func (x *RunSettings) GetMetadata() *structpb.Struct

func (*RunSettings) GetName

func (x *RunSettings) GetName() string

func (*RunSettings) GetPrivileged added in v0.3.0

func (x *RunSettings) GetPrivileged() bool

func (*RunSettings) GetQueue

func (x *RunSettings) GetQueue() string

func (*RunSettings) GetResources added in v0.3.0

func (x *RunSettings) GetResources() *Resources

func (*RunSettings) GetTimeout

func (x *RunSettings) GetTimeout() int64

func (*RunSettings) ProtoMessage

func (*RunSettings) ProtoMessage()

func (*RunSettings) ProtoReflect added in v0.3.0

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

func (*RunSettings) Reset

func (x *RunSettings) Reset()

func (*RunSettings) String

func (x *RunSettings) String() string

type Session

type Session struct {
	Key       string                 `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`             // The key
	Values    string                 `protobuf:"bytes,2,opt,name=values,proto3" json:"values,omitempty"`       // The value
	ExpiresOn *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expiresOn,proto3" json:"expiresOn,omitempty"` // When it expires
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetExpiresOn

func (x *Session) GetExpiresOn() *timestamppb.Timestamp

func (*Session) GetKey

func (x *Session) GetKey() string

func (*Session) GetValues

func (x *Session) GetValues() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect added in v0.3.0

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

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"`
	// contains filtered or unexported fields
}

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

func (*Status) Descriptor deprecated

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetAdditionalMessage

func (x *Status) GetAdditionalMessage() string

func (*Status) GetId

func (x *Status) GetId() int64

func (*Status) GetStatus

func (x *Status) GetStatus() bool

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect added in v0.3.0

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

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

type StringID

type StringID struct {
	ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // ID is the ID.
	// contains filtered or unexported fields
}

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

func (*StringID) Descriptor deprecated

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

Deprecated: Use StringID.ProtoReflect.Descriptor instead.

func (*StringID) GetID

func (x *StringID) GetID() string

func (*StringID) ProtoMessage

func (*StringID) ProtoMessage()

func (*StringID) ProtoReflect added in v0.3.0

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

func (*StringID) Reset

func (x *StringID) Reset()

func (*StringID) String

func (x *StringID) String() string

type Submission

type Submission struct {
	Id         int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                 // ID of the submission
	HeadRef    *Ref                   `protobuf:"bytes,2,opt,name=headRef,proto3" json:"headRef,omitempty"`        // Head git ref of the submission
	BaseRef    *Ref                   `protobuf:"bytes,3,opt,name=baseRef,proto3" json:"baseRef,omitempty"`        // Base git ref of the submission
	User       *User                  `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`              // User who submitted it
	CreatedAt  *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"`    // When it was submitted
	TasksCount int64                  `protobuf:"varint,6,opt,name=tasksCount,proto3" json:"tasksCount,omitempty"` // The number of tasks in this submission
	FinishedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=finishedAt,proto3" json:"finishedAt,omitempty"`  // When it completed
	Status     bool                   `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"`         // What is the status of this submission
	StatusSet  bool                   `protobuf:"varint,9,opt,name=statusSet,proto3" json:"statusSet,omitempty"`   // Is the status valid? (nil internally for invalid settings, but proto doesn't like nil)
	StartedAt  *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=startedAt,proto3" json:"startedAt,omitempty"`   // When it started
	Canceled   bool                   `protobuf:"varint,11,opt,name=canceled,proto3" json:"canceled,omitempty"`    // If the whole submission was canceled
	TicketID   int64                  `protobuf:"varint,12,opt,name=ticketID,proto3" json:"ticketID,omitempty"`    // ID of the corresponding ticket in source control
	RunsCount  int64                  `protobuf:"varint,13,opt,name=runsCount,proto3" json:"runsCount,omitempty"`  // The number of runs in this submission
	// contains filtered or unexported fields
}

func (*Submission) Descriptor deprecated

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

Deprecated: Use Submission.ProtoReflect.Descriptor instead.

func (*Submission) GetBaseRef

func (x *Submission) GetBaseRef() *Ref

func (*Submission) GetCanceled

func (x *Submission) GetCanceled() bool

func (*Submission) GetCreatedAt

func (x *Submission) GetCreatedAt() *timestamppb.Timestamp

func (*Submission) GetFinishedAt

func (x *Submission) GetFinishedAt() *timestamppb.Timestamp

func (*Submission) GetHeadRef

func (x *Submission) GetHeadRef() *Ref

func (*Submission) GetId

func (x *Submission) GetId() int64

func (*Submission) GetRunsCount

func (x *Submission) GetRunsCount() int64

func (*Submission) GetStartedAt

func (x *Submission) GetStartedAt() *timestamppb.Timestamp

func (*Submission) GetStatus

func (x *Submission) GetStatus() bool

func (*Submission) GetStatusSet

func (x *Submission) GetStatusSet() bool

func (*Submission) GetTasksCount

func (x *Submission) GetTasksCount() int64

func (*Submission) GetTicketID

func (x *Submission) GetTicketID() int64

func (*Submission) GetUser

func (x *Submission) GetUser() *User

func (*Submission) ProtoMessage

func (*Submission) ProtoMessage()

func (*Submission) ProtoReflect added in v0.3.0

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

func (*Submission) Reset

func (x *Submission) Reset()

func (*Submission) String

func (x *Submission) String() string

type SubmissionList

type SubmissionList struct {
	Submissions []*Submission `protobuf:"bytes,1,rep,name=submissions,proto3" json:"submissions,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmissionList) Descriptor deprecated

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

Deprecated: Use SubmissionList.ProtoReflect.Descriptor instead.

func (*SubmissionList) GetSubmissions

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

func (*SubmissionList) ProtoMessage

func (*SubmissionList) ProtoMessage()

func (*SubmissionList) ProtoReflect added in v0.3.0

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

func (*SubmissionList) Reset

func (x *SubmissionList) Reset()

func (*SubmissionList) String

func (x *SubmissionList) String() string

type Task

type Task struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the task
	// 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"` // A pull request ID for PR events; 0 otherwise
	Canceled      bool                   `protobuf:"varint,6,opt,name=canceled,proto3" json:"canceled,omitempty"`           // Was the run canceled?
	FinishedAt    *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=finishedAt,proto3" json:"finishedAt,omitempty"`        // When did it finish?
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"`          // When was it created?
	StartedAt     *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=startedAt,proto3" json:"startedAt,omitempty"`          // When did it start
	Status        bool                   `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"`              // What is the status?
	StatusSet     bool                   `protobuf:"varint,11,opt,name=statusSet,proto3" json:"statusSet,omitempty"`        // Is the status valid?
	Settings      *TaskSettings          `protobuf:"bytes,12,opt,name=settings,proto3" json:"settings,omitempty"`           // TaskSettings associated with the task (parsed task.yml)
	Path          string                 `protobuf:"bytes,13,opt,name=path,proto3" json:"path,omitempty"`                   // dirname of the task.yml
	Runs          int64                  `protobuf:"varint,14,opt,name=runs,proto3" json:"runs,omitempty"`                  // count of runs for this task
	Submission    *Submission            `protobuf:"bytes,15,opt,name=submission,proto3" json:"submission,omitempty"`       // submission associated with the run
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetCanceled

func (x *Task) GetCanceled() bool

func (*Task) GetCreatedAt

func (x *Task) GetCreatedAt() *timestamppb.Timestamp

func (*Task) GetFinishedAt

func (x *Task) GetFinishedAt() *timestamppb.Timestamp

func (*Task) GetId

func (x *Task) GetId() int64

func (*Task) GetPath

func (x *Task) GetPath() string

func (*Task) GetPullRequestID

func (x *Task) GetPullRequestID() int64

func (*Task) GetRuns

func (x *Task) GetRuns() int64

func (*Task) GetSettings

func (x *Task) GetSettings() *TaskSettings

func (*Task) GetStartedAt

func (x *Task) GetStartedAt() *timestamppb.Timestamp

func (*Task) GetStatus

func (x *Task) GetStatus() bool

func (*Task) GetStatusSet

func (x *Task) GetStatusSet() bool

func (*Task) GetSubmission

func (x *Task) GetSubmission() *Submission

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect added in v0.3.0

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

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

type TaskList

type TaskList struct {
	Tasks []*Task `protobuf:"bytes,1,rep,name=Tasks,proto3" json:"Tasks,omitempty"` // List of tasks
	// contains filtered or unexported fields
}

TaskList is simply a repeated list of tasks.

func (*TaskList) Descriptor deprecated

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

Deprecated: Use TaskList.ProtoReflect.Descriptor instead.

func (*TaskList) GetTasks

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

func (*TaskList) ProtoMessage

func (*TaskList) ProtoMessage()

func (*TaskList) ProtoReflect added in v0.3.0

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

func (*TaskList) Reset

func (x *TaskList) Reset()

func (*TaskList) String

func (x *TaskList) String() string

type TaskSettings

type TaskSettings struct {
	Mountpoint string                  `protobuf:"bytes,1,opt,name=mountpoint,proto3" json:"mountpoint,omitempty"` // Mountpoint to use for the source code inside the container
	Env        []string                `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`               // Environment variables -- in environ syntax.
	Workdir    string                  `protobuf:"bytes,3,opt,name=workdir,proto3" json:"workdir,omitempty"`       // Working dir inside the container; defaults to mountpoint
	Runs       map[string]*RunSettings ``                                                                          // Map of run name -> run settings, used for defining runs to create
	/* 149-byte string literal not displayed */
	DefaultTimeout int64            `protobuf:"varint,5,opt,name=defaultTimeout,proto3" json:"defaultTimeout,omitempty"` // Default Timeout if none is specified
	DefaultQueue   string           `protobuf:"bytes,6,opt,name=defaultQueue,proto3" json:"defaultQueue,omitempty"`      // Default Queue is none is specified; otherwise this is 'default'
	DefaultImage   string           `protobuf:"bytes,7,opt,name=defaultImage,proto3" json:"defaultImage,omitempty"`      // Default Image to use in runs.
	Metadata       *structpb.Struct `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"`              // Free-form metadata to be returned to runners.
	Dependencies   []string         `protobuf:"bytes,9,rep,name=dependencies,proto3" json:"dependencies,omitempty"`      // Dependency list.
	Resources      *Resources       `protobuf:"bytes,10,opt,name=resources,proto3" json:"resources,omitempty"`           // Resources to constrain all runs of this task.
	Config         *RepoConfig      `protobuf:"bytes,11,opt,name=config,proto3" json:"config,omitempty"`                 // Repository configuration parsed from `tinyci.yml`.
	// contains filtered or unexported fields
}

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

func (*TaskSettings) Descriptor deprecated

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

Deprecated: Use TaskSettings.ProtoReflect.Descriptor instead.

func (*TaskSettings) GetConfig added in v0.3.0

func (x *TaskSettings) GetConfig() *RepoConfig

func (*TaskSettings) GetDefaultImage

func (x *TaskSettings) GetDefaultImage() string

func (*TaskSettings) GetDefaultQueue

func (x *TaskSettings) GetDefaultQueue() string

func (*TaskSettings) GetDefaultTimeout

func (x *TaskSettings) GetDefaultTimeout() int64

func (*TaskSettings) GetDependencies

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

func (*TaskSettings) GetEnv

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

func (*TaskSettings) GetMetadata

func (x *TaskSettings) GetMetadata() *structpb.Struct

func (*TaskSettings) GetMountpoint

func (x *TaskSettings) GetMountpoint() string

func (*TaskSettings) GetResources added in v0.3.0

func (x *TaskSettings) GetResources() *Resources

func (*TaskSettings) GetRuns

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

func (*TaskSettings) GetWorkdir

func (x *TaskSettings) GetWorkdir() string

func (*TaskSettings) ProtoMessage

func (*TaskSettings) ProtoMessage()

func (*TaskSettings) ProtoReflect added in v0.3.0

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

func (*TaskSettings) Reset

func (x *TaskSettings) Reset()

func (*TaskSettings) String

func (x *TaskSettings) String() string

type User

type User struct {
	Id               int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                            // ID of user
	Username         string                 `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`                 // Username -- retrieved from github
	LastScannedRepos *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=lastScannedRepos,proto3" json:"lastScannedRepos,omitempty"` // This flag is used to described when someone last scanned repositories for adding to CI.
	Errors           []*UserError           `protobuf:"bytes,4,rep,name=errors,proto3" json:"errors,omitempty"`                     // Errors for the user. See types.Errors
	// 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"`
	// contains filtered or unexported fields
}

User is ... a user record

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetErrors

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

func (*User) GetId

func (x *User) GetId() int64

func (*User) GetLastScannedRepos

func (x *User) GetLastScannedRepos() *timestamppb.Timestamp

func (*User) GetTokenJSON

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

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect added in v0.3.0

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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"`
	// contains filtered or unexported fields
}

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

func (*UserError) Descriptor deprecated

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

Deprecated: Use UserError.ProtoReflect.Descriptor instead.

func (*UserError) GetError

func (x *UserError) GetError() string

func (*UserError) GetId

func (x *UserError) GetId() int64

func (*UserError) GetUserID

func (x *UserError) GetUserID() int64

func (*UserError) ProtoMessage

func (*UserError) ProtoMessage()

func (*UserError) ProtoReflect added in v0.3.0

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

func (*UserError) Reset

func (x *UserError) Reset()

func (*UserError) String

func (x *UserError) String() string

type UserErrors

type UserErrors struct {
	Errors []*UserError `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"` // the list!
	// contains filtered or unexported fields
}

List of UserError

func (*UserErrors) Descriptor deprecated

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

Deprecated: Use UserErrors.ProtoReflect.Descriptor instead.

func (*UserErrors) GetErrors

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

func (*UserErrors) ProtoMessage

func (*UserErrors) ProtoMessage()

func (*UserErrors) ProtoReflect added in v0.3.0

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

func (*UserErrors) Reset

func (x *UserErrors) Reset()

func (*UserErrors) String

func (x *UserErrors) String() string

type UserList

type UserList struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // the list!
	// contains filtered or unexported fields
}

List of Users

func (*UserList) Descriptor deprecated

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

Deprecated: Use UserList.ProtoReflect.Descriptor instead.

func (*UserList) GetUsers

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

func (*UserList) ProtoMessage

func (*UserList) ProtoMessage()

func (*UserList) ProtoReflect added in v0.3.0

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

func (*UserList) Reset

func (x *UserList) Reset()

func (*UserList) String

func (x *UserList) String() string

Jump to

Keyboard shortcuts

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