Documentation ¶
Index ¶
- Variables
- type Action
- func (*Action) Descriptor() ([]byte, []int)deprecated
- func (x *Action) GetCommand() *command.CommandExec
- func (x *Action) GetName() string
- func (x *Action) GetType() string
- func (*Action) ProtoMessage()
- func (x *Action) ProtoReflect() protoreflect.Message
- func (x *Action) Reset()
- func (x *Action) String() string
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetDescription() string
- func (x *Event) GetName() string
- func (x *Event) GetParameters() *EventParameters
- func (x *Event) GetType() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type EventParameters
- func (*EventParameters) Descriptor() ([]byte, []int)deprecated
- func (x *EventParameters) GetSrcNodeID() string
- func (x *EventParameters) GetUserID() string
- func (*EventParameters) ProtoMessage()
- func (x *EventParameters) ProtoReflect() protoreflect.Message
- func (x *EventParameters) Reset()
- func (x *EventParameters) String() string
- type GitEvents
- type Job
- func (*Job) Descriptor() ([]byte, []int)deprecated
- func (x *Job) GetDescription() string
- func (x *Job) GetName() string
- func (x *Job) GetOnFailure() []string
- func (x *Job) GetOnSuccess() []string
- func (x *Job) GetTasks() []*Task
- func (*Job) ProtoMessage()
- func (x *Job) ProtoReflect() protoreflect.Message
- func (x *Job) Reset()
- func (x *Job) String() string
- type Notify
- type Person
- type PushNotification
- type Schedule
- func (*Schedule) Descriptor() ([]byte, []int)deprecated
- func (x *Schedule) GetCrontab() string
- func (x *Schedule) GetDateTime() *datetime.DateTime
- func (x *Schedule) GetEnabled() bool
- func (*Schedule) ProtoMessage()
- func (x *Schedule) ProtoReflect() protoreflect.Message
- func (x *Schedule) Reset()
- func (x *Schedule) String() string
- type SlackNotification
- func (*SlackNotification) Descriptor() ([]byte, []int)deprecated
- func (x *SlackNotification) GetRecipients() []*Person
- func (*SlackNotification) ProtoMessage()
- func (x *SlackNotification) ProtoReflect() protoreflect.Message
- func (x *SlackNotification) Reset()
- func (x *SlackNotification) String() string
- type Task
- type Triggers
- func (*Triggers) Descriptor() ([]byte, []int)deprecated
- func (x *Triggers) GetEvents() []*Event
- func (x *Triggers) GetGitEvents() *GitEvents
- func (x *Triggers) GetSchedule() *Schedule
- func (x *Triggers) GetWebhook() *Webhook
- func (*Triggers) ProtoMessage()
- func (x *Triggers) ProtoReflect() protoreflect.Message
- func (x *Triggers) Reset()
- func (x *Triggers) String() string
- type Validation
- func (*Validation) Descriptor() ([]byte, []int)deprecated
- func (x *Validation) GetResponsible() *Person
- func (x *Validation) GetTimestamp() int64
- func (x *Validation) GetValidated() bool
- func (*Validation) ProtoMessage()
- func (x *Validation) ProtoReflect() protoreflect.Message
- func (x *Validation) Reset()
- func (x *Validation) String() string
- type Webhook
- type Workflow
- func (*Workflow) Descriptor() ([]byte, []int)deprecated
- func (x *Workflow) GetAccountID() string
- func (x *Workflow) GetAccountToken() string
- func (x *Workflow) GetApproved() bool
- func (x *Workflow) GetApprovedBy() []*Validation
- func (x *Workflow) GetApprovers() []string
- func (x *Workflow) GetDescription() string
- func (x *Workflow) GetEnabled() bool
- func (x *Workflow) GetEventMetrics() *metrics.EventMetrics
- func (x *Workflow) GetJobs() []*Job
- func (x *Workflow) GetName() string
- func (x *Workflow) GetNotify() *Notify
- func (x *Workflow) GetOperations() []*operation.Operation
- func (x *Workflow) GetOwner() *Person
- func (x *Workflow) GetProject() string
- func (x *Workflow) GetProjectID() string
- func (x *Workflow) GetReviewed() bool
- func (x *Workflow) GetReviewedBy() []*Validation
- func (x *Workflow) GetReviewers() []string
- func (x *Workflow) GetTargets() []*network.Node
- func (x *Workflow) GetToken() string
- func (x *Workflow) GetTriggers() *Triggers
- func (x *Workflow) GetWorkflowID() string
- func (*Workflow) ProtoMessage()
- func (x *Workflow) ProtoReflect() protoreflect.Message
- func (x *Workflow) Reset()
- func (x *Workflow) String() string
- type Workflows
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) GetCommand ¶
func (x *Action) GetCommand() *command.CommandExec
func (*Action) ProtoReflect ¶
func (x *Action) ProtoReflect() protoreflect.Message
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) GetParameters ¶
func (x *Event) GetParameters() *EventParameters
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
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) ProtoReflect ¶
func (x *GitEvents) ProtoReflect() protoreflect.Message
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) ProtoReflect ¶
func (x *Job) ProtoReflect() protoreflect.Message
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) GetPush ¶
func (x *Notify) GetPush() *PushNotification
func (*Notify) GetSlack ¶
func (x *Notify) GetSlack() *SlackNotification
func (*Notify) ProtoReflect ¶
func (x *Notify) ProtoReflect() protoreflect.Message
type Person ¶
type Person struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*Person) ProtoReflect ¶
func (x *Person) ProtoReflect() protoreflect.Message
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) ProtoReflect ¶
func (x *Schedule) ProtoReflect() protoreflect.Message
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) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
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) ProtoReflect ¶
func (x *Triggers) ProtoReflect() protoreflect.Message
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) ProtoReflect ¶
func (x *Webhook) ProtoReflect() protoreflect.Message
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) GetApprovedBy ¶
func (x *Workflow) GetApprovedBy() []*Validation
func (*Workflow) GetEventMetrics ¶
func (x *Workflow) GetEventMetrics() *metrics.EventMetrics
func (*Workflow) GetReviewedBy ¶
func (x *Workflow) GetReviewedBy() []*Validation
func (*Workflow) ProtoReflect ¶
func (x *Workflow) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.