workflow

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_mmesh_protobuf_network_v1_resources_ae_workflow_job_proto protoreflect.FileDescriptor
View Source
var File_mmesh_protobuf_network_v1_resources_ae_workflow_notify_proto protoreflect.FileDescriptor
View Source
var File_mmesh_protobuf_network_v1_resources_ae_workflow_person_proto protoreflect.FileDescriptor
View Source
var File_mmesh_protobuf_network_v1_resources_ae_workflow_trigger_proto protoreflect.FileDescriptor
View Source
var File_mmesh_protobuf_network_v1_resources_ae_workflow_workflow_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Action

type Action struct {
	Name    string               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type    string               `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`       // "command" | "docker"
	Command *command.CommandExec `protobuf:"bytes,3,opt,name=command,proto3" json:"command,omitempty"` // command.DockerRun dockerImg = 4;
	// contains filtered or unexported fields
}

func (*Action) Descriptor deprecated

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

Deprecated: Use Action.ProtoReflect.Descriptor instead.

func (*Action) GetCommand

func (x *Action) GetCommand() *command.CommandExec

func (*Action) GetName

func (x *Action) GetName() string

func (*Action) GetType

func (x *Action) GetType() string

func (*Action) ProtoMessage

func (*Action) ProtoMessage()

func (*Action) ProtoReflect

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

func (*Action) Reset

func (x *Action) Reset()

func (*Action) String

func (x *Action) String() string

type Event

type Event struct {
	Name        string           `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string           `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Type        string           `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // nodeActivity | userActivity
	Parameters  *EventParameters `protobuf:"bytes,4,opt,name=parameters,proto3" json:"parameters,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetDescription

func (x *Event) GetDescription() string

func (*Event) GetName

func (x *Event) GetName() string

func (*Event) GetParameters

func (x *Event) GetParameters() *EventParameters

func (*Event) GetType

func (x *Event) GetType() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type EventParameters

type EventParameters struct {
	SrcNodeID string `protobuf:"bytes,4,opt,name=srcNodeID,proto3" json:"srcNodeID,omitempty"`
	UserID    string `protobuf:"bytes,5,opt,name=userID,proto3" json:"userID,omitempty"`
	// contains filtered or unexported fields
}

func (*EventParameters) Descriptor deprecated

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

Deprecated: Use EventParameters.ProtoReflect.Descriptor instead.

func (*EventParameters) GetSrcNodeID

func (x *EventParameters) GetSrcNodeID() string

func (*EventParameters) GetUserID

func (x *EventParameters) GetUserID() string

func (*EventParameters) ProtoMessage

func (*EventParameters) ProtoMessage()

func (*EventParameters) ProtoReflect

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

func (*EventParameters) Reset

func (x *EventParameters) Reset()

func (*EventParameters) String

func (x *EventParameters) String() string

type GitEvents

type GitEvents struct {
	Events    []string `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	Triggered bool     `protobuf:"varint,2,opt,name=triggered,proto3" json:"triggered,omitempty"`
	// contains filtered or unexported fields
}

func (*GitEvents) Descriptor deprecated

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

Deprecated: Use GitEvents.ProtoReflect.Descriptor instead.

func (*GitEvents) GetEvents

func (x *GitEvents) GetEvents() []string

func (*GitEvents) GetTriggered

func (x *GitEvents) GetTriggered() bool

func (*GitEvents) ProtoMessage

func (*GitEvents) ProtoMessage()

func (*GitEvents) ProtoReflect

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

func (*GitEvents) Reset

func (x *GitEvents) Reset()

func (*GitEvents) String

func (x *GitEvents) String() string

type Job

type Job struct {
	Name        string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	OnSuccess   []string `protobuf:"bytes,3,rep,name=onSuccess,proto3" json:"onSuccess,omitempty"` // array of workflow names
	OnFailure   []string `protobuf:"bytes,4,rep,name=onFailure,proto3" json:"onFailure,omitempty"` // array of workflow names
	Tasks       []*Task  `protobuf:"bytes,6,rep,name=tasks,proto3" json:"tasks,omitempty"`         // job steps
	// contains filtered or unexported fields
}

func (*Job) Descriptor deprecated

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

Deprecated: Use Job.ProtoReflect.Descriptor instead.

func (*Job) GetDescription

func (x *Job) GetDescription() string

func (*Job) GetName

func (x *Job) GetName() string

func (*Job) GetOnFailure

func (x *Job) GetOnFailure() []string

func (*Job) GetOnSuccess

func (x *Job) GetOnSuccess() []string

func (*Job) GetTasks

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

func (*Job) ProtoMessage

func (*Job) ProtoMessage()

func (*Job) ProtoReflect

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

func (*Job) Reset

func (x *Job) Reset()

func (*Job) String

func (x *Job) String() string

type Notify

type Notify struct {
	Slack *SlackNotification `protobuf:"bytes,1,opt,name=slack,proto3" json:"slack,omitempty"`
	Push  *PushNotification  `protobuf:"bytes,2,opt,name=push,proto3" json:"push,omitempty"`
	// contains filtered or unexported fields
}

func (*Notify) Descriptor deprecated

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

Deprecated: Use Notify.ProtoReflect.Descriptor instead.

func (*Notify) GetPush

func (x *Notify) GetPush() *PushNotification

func (*Notify) GetSlack

func (x *Notify) GetSlack() *SlackNotification

func (*Notify) ProtoMessage

func (*Notify) ProtoMessage()

func (*Notify) ProtoReflect

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

func (*Notify) Reset

func (x *Notify) Reset()

func (*Notify) String

func (x *Notify) String() string

type Person

type Person struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*Person) Descriptor deprecated

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

Deprecated: Use Person.ProtoReflect.Descriptor instead.

func (*Person) GetEmail

func (x *Person) GetEmail() string

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) ProtoReflect

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

func (*Person) Reset

func (x *Person) Reset()

func (*Person) String

func (x *Person) String() string

type PushNotification

type PushNotification struct {
	Recipients []*Person `protobuf:"bytes,1,rep,name=recipients,proto3" json:"recipients,omitempty"`
	// contains filtered or unexported fields
}

func (*PushNotification) Descriptor deprecated

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

Deprecated: Use PushNotification.ProtoReflect.Descriptor instead.

func (*PushNotification) GetRecipients

func (x *PushNotification) GetRecipients() []*Person

func (*PushNotification) ProtoMessage

func (*PushNotification) ProtoMessage()

func (*PushNotification) ProtoReflect

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

func (*PushNotification) Reset

func (x *PushNotification) Reset()

func (*PushNotification) String

func (x *PushNotification) String() string

type Schedule

type Schedule struct {
	Enabled  bool               `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	DateTime *datetime.DateTime `protobuf:"bytes,2,opt,name=dateTime,proto3" json:"dateTime,omitempty"`
	Crontab  string             `protobuf:"bytes,3,opt,name=crontab,proto3" json:"crontab,omitempty"`
	// contains filtered or unexported fields
}

func (*Schedule) Descriptor deprecated

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

Deprecated: Use Schedule.ProtoReflect.Descriptor instead.

func (*Schedule) GetCrontab

func (x *Schedule) GetCrontab() string

func (*Schedule) GetDateTime

func (x *Schedule) GetDateTime() *datetime.DateTime

func (*Schedule) GetEnabled

func (x *Schedule) GetEnabled() bool

func (*Schedule) ProtoMessage

func (*Schedule) ProtoMessage()

func (*Schedule) ProtoReflect

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

func (*Schedule) Reset

func (x *Schedule) Reset()

func (*Schedule) String

func (x *Schedule) String() string

type SlackNotification

type SlackNotification struct {
	Recipients []*Person `protobuf:"bytes,1,rep,name=recipients,proto3" json:"recipients,omitempty"`
	// contains filtered or unexported fields
}

func (*SlackNotification) Descriptor deprecated

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

Deprecated: Use SlackNotification.ProtoReflect.Descriptor instead.

func (*SlackNotification) GetRecipients

func (x *SlackNotification) GetRecipients() []*Person

func (*SlackNotification) ProtoMessage

func (*SlackNotification) ProtoMessage()

func (*SlackNotification) ProtoReflect

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

func (*SlackNotification) Reset

func (x *SlackNotification) Reset()

func (*SlackNotification) String

func (x *SlackNotification) String() string

type Task

type Task struct {
	Name        string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string    `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Actions     []*Action `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*Task) Descriptor deprecated

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

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetActions

func (x *Task) GetActions() []*Action

func (*Task) GetDescription

func (x *Task) GetDescription() string

func (*Task) GetName

func (x *Task) GetName() string

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

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

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

type Triggers

type Triggers struct {
	Webhook   *Webhook   `protobuf:"bytes,1,opt,name=webhook,proto3" json:"webhook,omitempty"`
	GitEvents *GitEvents `protobuf:"bytes,2,opt,name=gitEvents,proto3" json:"gitEvents,omitempty"`
	Schedule  *Schedule  `protobuf:"bytes,4,opt,name=schedule,proto3" json:"schedule,omitempty"`
	Events    []*Event   `protobuf:"bytes,6,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

func (*Triggers) Descriptor deprecated

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

Deprecated: Use Triggers.ProtoReflect.Descriptor instead.

func (*Triggers) GetEvents

func (x *Triggers) GetEvents() []*Event

func (*Triggers) GetGitEvents

func (x *Triggers) GetGitEvents() *GitEvents

func (*Triggers) GetSchedule

func (x *Triggers) GetSchedule() *Schedule

func (*Triggers) GetWebhook

func (x *Triggers) GetWebhook() *Webhook

func (*Triggers) ProtoMessage

func (*Triggers) ProtoMessage()

func (*Triggers) ProtoReflect

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

func (*Triggers) Reset

func (x *Triggers) Reset()

func (*Triggers) String

func (x *Triggers) String() string

type Validation

type Validation struct {
	Responsible *Person `protobuf:"bytes,1,opt,name=responsible,proto3" json:"responsible,omitempty"`
	Validated   bool    `protobuf:"varint,2,opt,name=validated,proto3" json:"validated,omitempty"`
	Timestamp   int64   `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*Validation) Descriptor deprecated

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

Deprecated: Use Validation.ProtoReflect.Descriptor instead.

func (*Validation) GetResponsible

func (x *Validation) GetResponsible() *Person

func (*Validation) GetTimestamp

func (x *Validation) GetTimestamp() int64

func (*Validation) GetValidated

func (x *Validation) GetValidated() bool

func (*Validation) ProtoMessage

func (*Validation) ProtoMessage()

func (*Validation) ProtoReflect

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

func (*Validation) Reset

func (x *Validation) Reset()

func (*Validation) String

func (x *Validation) String() string

type Webhook

type Webhook struct {
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*Webhook) Descriptor deprecated

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

Deprecated: Use Webhook.ProtoReflect.Descriptor instead.

func (*Webhook) GetEnabled

func (x *Webhook) GetEnabled() bool

func (*Webhook) ProtoMessage

func (*Webhook) ProtoMessage()

func (*Webhook) ProtoReflect

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

func (*Webhook) Reset

func (x *Webhook) Reset()

func (*Webhook) String

func (x *Webhook) String() string

type Workflow

type Workflow struct {
	AccountID    string                 `protobuf:"bytes,1,opt,name=accountID,proto3" json:"accountID,omitempty"`
	AccountToken string                 `protobuf:"bytes,2,opt,name=accountToken,proto3" json:"accountToken,omitempty"`
	ProjectID    string                 `protobuf:"bytes,3,opt,name=projectID,proto3" json:"projectID,omitempty"`
	WorkflowID   string                 `protobuf:"bytes,4,opt,name=workflowID,proto3" json:"workflowID,omitempty"`
	Token        string                 `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"`
	Name         string                 `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	Description  string                 `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
	Project      string                 `protobuf:"bytes,8,opt,name=project,proto3" json:"project,omitempty"`
	Enabled      bool                   `protobuf:"varint,9,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Owner        *Person                `protobuf:"bytes,10,opt,name=owner,proto3" json:"owner,omitempty"`
	Reviewed     bool                   `protobuf:"varint,11,opt,name=reviewed,proto3" json:"reviewed,omitempty"`
	Reviewers    []string               `protobuf:"bytes,12,rep,name=reviewers,proto3" json:"reviewers,omitempty"`
	ReviewedBy   []*Validation          `protobuf:"bytes,13,rep,name=reviewedBy,proto3" json:"reviewedBy,omitempty"`
	Approved     bool                   `protobuf:"varint,14,opt,name=approved,proto3" json:"approved,omitempty"`
	Approvers    []string               `protobuf:"bytes,15,rep,name=approvers,proto3" json:"approvers,omitempty"`
	ApprovedBy   []*Validation          `protobuf:"bytes,16,rep,name=approvedBy,proto3" json:"approvedBy,omitempty"`
	Triggers     *Triggers              `protobuf:"bytes,17,opt,name=triggers,proto3" json:"triggers,omitempty"`
	Jobs         []*Job                 `protobuf:"bytes,18,rep,name=jobs,proto3" json:"jobs,omitempty"`
	Notify       *Notify                `protobuf:"bytes,19,opt,name=notify,proto3" json:"notify,omitempty"`
	Targets      []*network.Node        `protobuf:"bytes,20,rep,name=targets,proto3" json:"targets,omitempty"`
	Operations   []*operation.Operation `protobuf:"bytes,21,rep,name=operations,proto3" json:"operations,omitempty"`
	EventMetrics *metrics.EventMetrics  `protobuf:"bytes,22,opt,name=eventMetrics,proto3" json:"eventMetrics,omitempty"`
	// contains filtered or unexported fields
}

func (*Workflow) Descriptor deprecated

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

Deprecated: Use Workflow.ProtoReflect.Descriptor instead.

func (*Workflow) GetAccountID

func (x *Workflow) GetAccountID() string

func (*Workflow) GetAccountToken

func (x *Workflow) GetAccountToken() string

func (*Workflow) GetApproved

func (x *Workflow) GetApproved() bool

func (*Workflow) GetApprovedBy

func (x *Workflow) GetApprovedBy() []*Validation

func (*Workflow) GetApprovers

func (x *Workflow) GetApprovers() []string

func (*Workflow) GetDescription

func (x *Workflow) GetDescription() string

func (*Workflow) GetEnabled

func (x *Workflow) GetEnabled() bool

func (*Workflow) GetEventMetrics

func (x *Workflow) GetEventMetrics() *metrics.EventMetrics

func (*Workflow) GetJobs

func (x *Workflow) GetJobs() []*Job

func (*Workflow) GetName

func (x *Workflow) GetName() string

func (*Workflow) GetNotify

func (x *Workflow) GetNotify() *Notify

func (*Workflow) GetOperations

func (x *Workflow) GetOperations() []*operation.Operation

func (*Workflow) GetOwner

func (x *Workflow) GetOwner() *Person

func (*Workflow) GetProject

func (x *Workflow) GetProject() string

func (*Workflow) GetProjectID

func (x *Workflow) GetProjectID() string

func (*Workflow) GetReviewed

func (x *Workflow) GetReviewed() bool

func (*Workflow) GetReviewedBy

func (x *Workflow) GetReviewedBy() []*Validation

func (*Workflow) GetReviewers

func (x *Workflow) GetReviewers() []string

func (*Workflow) GetTargets

func (x *Workflow) GetTargets() []*network.Node

func (*Workflow) GetToken

func (x *Workflow) GetToken() string

func (*Workflow) GetTriggers

func (x *Workflow) GetTriggers() *Triggers

func (*Workflow) GetWorkflowID

func (x *Workflow) GetWorkflowID() string

func (*Workflow) ProtoMessage

func (*Workflow) ProtoMessage()

func (*Workflow) ProtoReflect

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

func (*Workflow) Reset

func (x *Workflow) Reset()

func (*Workflow) String

func (x *Workflow) String() string

type Workflows

type Workflows struct {
	Workflows []*Workflow `protobuf:"bytes,1,rep,name=workflows,proto3" json:"workflows,omitempty"`
	// contains filtered or unexported fields
}

func (*Workflows) Descriptor deprecated

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

Deprecated: Use Workflows.ProtoReflect.Descriptor instead.

func (*Workflows) GetWorkflows

func (x *Workflows) GetWorkflows() []*Workflow

func (*Workflows) ProtoMessage

func (*Workflows) ProtoMessage()

func (*Workflows) ProtoReflect

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

func (*Workflows) Reset

func (x *Workflows) Reset()

func (*Workflows) String

func (x *Workflows) String() string

Jump to

Keyboard shortcuts

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