delivery

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package delivery is a generated twirp stub package. This code was generated with github.com/twitchtv/twirp/protoc-gen-twirp v7.1.0.

It is generated from these files:

deployment.proto

Index

Constants

View Source
const DeploymentPathPrefix = "/twirp/redsail.bosn.Deployment/"

DeploymentPathPrefix is a convenience constant that could used to identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, that add a "/twirp" prefix by default, and use CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html

Variables

View Source
var (
	LogLevel_name = map[int32]string{
		0: "DEBUG",
		1: "INFO",
		2: "WARN",
		3: "ERROR",
	}
	LogLevel_value = map[string]int32{
		"DEBUG": 0,
		"INFO":  1,
		"WARN":  2,
		"ERROR": 3,
	}
)

Enum value maps for LogLevel.

View Source
var (
	Status_name = map[int32]string{
		0: "NOT_STARTED",
		1: "IN_PROGRESS",
		2: "FAILED",
		3: "SUCCEEDED",
		4: "SKIPPED",
	}
	Status_value = map[string]int32{
		"NOT_STARTED": 0,
		"IN_PROGRESS": 1,
		"FAILED":      2,
		"SUCCEEDED":   3,
		"SKIPPED":     4,
	}
)

Enum value maps for Status.

View Source
var (
	TriggerDeployment_TriggerType_name = map[int32]string{
		0: "WEB",
		1: "MANUAL",
	}
	TriggerDeployment_TriggerType_value = map[string]int32{
		"WEB":    0,
		"MANUAL": 1,
	}
)

Enum value maps for TriggerDeployment_TriggerType.

View Source
var File_deployment_proto protoreflect.FileDescriptor

Functions

func WriteError

func WriteError(resp http.ResponseWriter, err error)

WriteError writes an HTTP response with a valid Twirp error format (code, msg, meta). Useful outside of the Twirp server (e.g. http middleware), but does not trigger hooks. If err is not a twirp.Error, it will get wrapped with twirp.InternalErrorWith(err)

Types

type CreateDeployment

type CreateDeployment struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                         // the name of this deployment
	RepoId   string `protobuf:"bytes,2,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`       // the unique id of the repo to get the deployment yaml from
	Branch   string `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"`                     // the branch from the repo to get the file from
	FilePath string `protobuf:"bytes,4,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // the path to the deployment file
	// contains filtered or unexported fields
}

func (*CreateDeployment) Descriptor deprecated

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

Deprecated: Use CreateDeployment.ProtoReflect.Descriptor instead.

func (*CreateDeployment) GetBranch

func (x *CreateDeployment) GetBranch() string

func (*CreateDeployment) GetFilePath

func (x *CreateDeployment) GetFilePath() string

func (*CreateDeployment) GetName

func (x *CreateDeployment) GetName() string

func (*CreateDeployment) GetRepoId

func (x *CreateDeployment) GetRepoId() string

func (*CreateDeployment) ProtoMessage

func (*CreateDeployment) ProtoMessage()

func (*CreateDeployment) ProtoReflect

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

func (*CreateDeployment) Reset

func (x *CreateDeployment) Reset()

func (*CreateDeployment) String

func (x *CreateDeployment) String() string

type Deployment

type Deployment interface {
	// creates a new delivery
	Create(context.Context, *CreateDeployment) (*DeploymentCreated, error)

	// edits an already existing deployment
	Update(context.Context, *UpdateDeployment) (*DeploymentUpdated, error)

	// removes a deployment from the list of configurations
	Destroy(context.Context, *DestroyDeployment) (*DeploymentDestroyed, error)

	// reads out a deployment
	Read(context.Context, *ReadDeployment) (*DeploymentRead, error)

	// gets all deployments currently configured and their status
	All(context.Context, *ReadDeployments) (*DeploymentsRead, error)

	// get the templated version of this deployment
	Template(context.Context, *TemplateDeployment) (*DeploymentTemplated, error)

	// trigger a deployment
	Trigger(context.Context, *TriggerDeployment) (*DeploymentTriggered, error)

	// read all the information about a particular run
	Run(context.Context, *ReadRun) (*RunRead, error)

	// read summaries of all runs for a particular deployment
	Runs(context.Context, *ReadRuns) (*RunsRead, error)
}

func NewDeploymentJSONClient

func NewDeploymentJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Deployment

NewDeploymentJSONClient creates a JSON client that implements the Deployment interface. It communicates using JSON and can be configured with a custom HTTPClient.

func NewDeploymentProtobufClient

func NewDeploymentProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Deployment

NewDeploymentProtobufClient creates a Protobuf client that implements the Deployment interface. It communicates using Protobuf and can be configured with a custom HTTPClient.

type DeploymentCreated

type DeploymentCreated struct {
	// contains filtered or unexported fields
}

func (*DeploymentCreated) Descriptor deprecated

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

Deprecated: Use DeploymentCreated.ProtoReflect.Descriptor instead.

func (*DeploymentCreated) ProtoMessage

func (*DeploymentCreated) ProtoMessage()

func (*DeploymentCreated) ProtoReflect

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

func (*DeploymentCreated) Reset

func (x *DeploymentCreated) Reset()

func (*DeploymentCreated) String

func (x *DeploymentCreated) String() string

type DeploymentDestroyed

type DeploymentDestroyed struct {
	// contains filtered or unexported fields
}

func (*DeploymentDestroyed) Descriptor deprecated

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

Deprecated: Use DeploymentDestroyed.ProtoReflect.Descriptor instead.

func (*DeploymentDestroyed) ProtoMessage

func (*DeploymentDestroyed) ProtoMessage()

func (*DeploymentDestroyed) ProtoReflect

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

func (*DeploymentDestroyed) Reset

func (x *DeploymentDestroyed) Reset()

func (*DeploymentDestroyed) String

func (x *DeploymentDestroyed) String() string

type DeploymentRead

type DeploymentRead struct {
	Uuid     string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`                         // unique id of the deployment
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                         // the name of this deployment
	RepoId   string `protobuf:"bytes,3,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`       // the unique id of the repo to get the deployment yaml from
	RepoName string `protobuf:"bytes,4,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"` // the name of the repo
	Branch   string `protobuf:"bytes,5,opt,name=branch,proto3" json:"branch,omitempty"`                     // the branch from the repo to get the file from
	FilePath string `protobuf:"bytes,6,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // the path to the deployment file
	// contains filtered or unexported fields
}

func (*DeploymentRead) Descriptor deprecated

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

Deprecated: Use DeploymentRead.ProtoReflect.Descriptor instead.

func (*DeploymentRead) GetBranch

func (x *DeploymentRead) GetBranch() string

func (*DeploymentRead) GetFilePath

func (x *DeploymentRead) GetFilePath() string

func (*DeploymentRead) GetName

func (x *DeploymentRead) GetName() string

func (*DeploymentRead) GetRepoId

func (x *DeploymentRead) GetRepoId() string

func (*DeploymentRead) GetRepoName

func (x *DeploymentRead) GetRepoName() string

func (*DeploymentRead) GetUuid

func (x *DeploymentRead) GetUuid() string

func (*DeploymentRead) ProtoMessage

func (*DeploymentRead) ProtoMessage()

func (*DeploymentRead) ProtoReflect

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

func (*DeploymentRead) Reset

func (x *DeploymentRead) Reset()

func (*DeploymentRead) String

func (x *DeploymentRead) String() string

type DeploymentReadSummary

type DeploymentReadSummary struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // unique id of the deployment
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // the name of this deployment
	// contains filtered or unexported fields
}

func (*DeploymentReadSummary) Descriptor deprecated

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

Deprecated: Use DeploymentReadSummary.ProtoReflect.Descriptor instead.

func (*DeploymentReadSummary) GetName

func (x *DeploymentReadSummary) GetName() string

func (*DeploymentReadSummary) GetUuid

func (x *DeploymentReadSummary) GetUuid() string

func (*DeploymentReadSummary) ProtoMessage

func (*DeploymentReadSummary) ProtoMessage()

func (*DeploymentReadSummary) ProtoReflect

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

func (*DeploymentReadSummary) Reset

func (x *DeploymentReadSummary) Reset()

func (*DeploymentReadSummary) String

func (x *DeploymentReadSummary) String() string

type DeploymentTemplated

type DeploymentTemplated struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // unique id of the deployment
	Yaml string `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"` // the templated yaml for this deployment
	// contains filtered or unexported fields
}

func (*DeploymentTemplated) Descriptor deprecated

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

Deprecated: Use DeploymentTemplated.ProtoReflect.Descriptor instead.

func (*DeploymentTemplated) GetUuid

func (x *DeploymentTemplated) GetUuid() string

func (*DeploymentTemplated) GetYaml

func (x *DeploymentTemplated) GetYaml() string

func (*DeploymentTemplated) ProtoMessage

func (*DeploymentTemplated) ProtoMessage()

func (*DeploymentTemplated) ProtoReflect

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

func (*DeploymentTemplated) Reset

func (x *DeploymentTemplated) Reset()

func (*DeploymentTemplated) String

func (x *DeploymentTemplated) String() string

type DeploymentTriggered

type DeploymentTriggered struct {
	RunUuid string `protobuf:"bytes,1,opt,name=run_uuid,json=runUuid,proto3" json:"run_uuid,omitempty"` // unique id of the resulting run
	// contains filtered or unexported fields
}

func (*DeploymentTriggered) Descriptor deprecated

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

Deprecated: Use DeploymentTriggered.ProtoReflect.Descriptor instead.

func (*DeploymentTriggered) GetRunUuid

func (x *DeploymentTriggered) GetRunUuid() string

func (*DeploymentTriggered) ProtoMessage

func (*DeploymentTriggered) ProtoMessage()

func (*DeploymentTriggered) ProtoReflect

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

func (*DeploymentTriggered) Reset

func (x *DeploymentTriggered) Reset()

func (*DeploymentTriggered) String

func (x *DeploymentTriggered) String() string

type DeploymentUpdated

type DeploymentUpdated struct {
	// contains filtered or unexported fields
}

func (*DeploymentUpdated) Descriptor deprecated

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

Deprecated: Use DeploymentUpdated.ProtoReflect.Descriptor instead.

func (*DeploymentUpdated) ProtoMessage

func (*DeploymentUpdated) ProtoMessage()

func (*DeploymentUpdated) ProtoReflect

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

func (*DeploymentUpdated) Reset

func (x *DeploymentUpdated) Reset()

func (*DeploymentUpdated) String

func (x *DeploymentUpdated) String() string

type DeploymentsRead

type DeploymentsRead struct {
	Deployments []*DeploymentReadSummary `protobuf:"bytes,1,rep,name=deployments,proto3" json:"deployments,omitempty"` // the list of deployments
	// contains filtered or unexported fields
}

func (*DeploymentsRead) Descriptor deprecated

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

Deprecated: Use DeploymentsRead.ProtoReflect.Descriptor instead.

func (*DeploymentsRead) GetDeployments

func (x *DeploymentsRead) GetDeployments() []*DeploymentReadSummary

func (*DeploymentsRead) ProtoMessage

func (*DeploymentsRead) ProtoMessage()

func (*DeploymentsRead) ProtoReflect

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

func (*DeploymentsRead) Reset

func (x *DeploymentsRead) Reset()

func (*DeploymentsRead) String

func (x *DeploymentsRead) String() string

type DestroyDeployment

type DestroyDeployment struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // unique id of the deployment
	// contains filtered or unexported fields
}

func (*DestroyDeployment) Descriptor deprecated

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

Deprecated: Use DestroyDeployment.ProtoReflect.Descriptor instead.

func (*DestroyDeployment) GetUuid

func (x *DestroyDeployment) GetUuid() string

func (*DestroyDeployment) ProtoMessage

func (*DestroyDeployment) ProtoMessage()

func (*DestroyDeployment) ProtoReflect

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

func (*DestroyDeployment) Reset

func (x *DestroyDeployment) Reset()

func (*DestroyDeployment) String

func (x *DestroyDeployment) String() string

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient is the interface used by generated clients to send HTTP requests. It is fulfilled by *(net/http).Client, which is sufficient for most users. Users can provide their own implementation for special retry policies.

HTTPClient implementations should not follow redirects. Redirects are automatically disabled if *(net/http).Client is passed to client constructors. See the withoutRedirects function in this file for more details.

type LogLevel

type LogLevel int32
const (
	LogLevel_DEBUG LogLevel = 0
	LogLevel_INFO  LogLevel = 1
	LogLevel_WARN  LogLevel = 2
	LogLevel_ERROR LogLevel = 3
)

func (LogLevel) Descriptor

func (LogLevel) Descriptor() protoreflect.EnumDescriptor

func (LogLevel) Enum

func (x LogLevel) Enum() *LogLevel

func (LogLevel) EnumDescriptor deprecated

func (LogLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogLevel.Descriptor instead.

func (LogLevel) Number

func (x LogLevel) Number() protoreflect.EnumNumber

func (LogLevel) String

func (x LogLevel) String() string

func (LogLevel) Type

type ReadDeployment

type ReadDeployment struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // unique id of the deployment
	// contains filtered or unexported fields
}

func (*ReadDeployment) Descriptor deprecated

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

Deprecated: Use ReadDeployment.ProtoReflect.Descriptor instead.

func (*ReadDeployment) GetUuid

func (x *ReadDeployment) GetUuid() string

func (*ReadDeployment) ProtoMessage

func (*ReadDeployment) ProtoMessage()

func (*ReadDeployment) ProtoReflect

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

func (*ReadDeployment) Reset

func (x *ReadDeployment) Reset()

func (*ReadDeployment) String

func (x *ReadDeployment) String() string

type ReadDeployments

type ReadDeployments struct {
	// contains filtered or unexported fields
}

func (*ReadDeployments) Descriptor deprecated

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

Deprecated: Use ReadDeployments.ProtoReflect.Descriptor instead.

func (*ReadDeployments) ProtoMessage

func (*ReadDeployments) ProtoMessage()

func (*ReadDeployments) ProtoReflect

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

func (*ReadDeployments) Reset

func (x *ReadDeployments) Reset()

func (*ReadDeployments) String

func (x *ReadDeployments) String() string

type ReadRun

type ReadRun struct {
	DeploymentUuid string `protobuf:"bytes,1,opt,name=deployment_uuid,json=deploymentUuid,proto3" json:"deployment_uuid,omitempty"` // unique id of the run
	// contains filtered or unexported fields
}

func (*ReadRun) Descriptor deprecated

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

Deprecated: Use ReadRun.ProtoReflect.Descriptor instead.

func (*ReadRun) GetDeploymentUuid

func (x *ReadRun) GetDeploymentUuid() string

func (*ReadRun) ProtoMessage

func (*ReadRun) ProtoMessage()

func (*ReadRun) ProtoReflect

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

func (*ReadRun) Reset

func (x *ReadRun) Reset()

func (*ReadRun) String

func (x *ReadRun) String() string

type ReadRuns

type ReadRuns struct {
	DeploymentUuid string `protobuf:"bytes,1,opt,name=deployment_uuid,json=deploymentUuid,proto3" json:"deployment_uuid,omitempty"` // unique id of the deployment to get runs for
	// contains filtered or unexported fields
}

func (*ReadRuns) Descriptor deprecated

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

Deprecated: Use ReadRuns.ProtoReflect.Descriptor instead.

func (*ReadRuns) GetDeploymentUuid

func (x *ReadRuns) GetDeploymentUuid() string

func (*ReadRuns) ProtoMessage

func (*ReadRuns) ProtoMessage()

func (*ReadRuns) ProtoReflect

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

func (*ReadRuns) Reset

func (x *ReadRuns) Reset()

func (*ReadRuns) String

func (x *ReadRuns) String() string

type RunRead

type RunRead struct {
	Uuid      string      `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Version   string      `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Status    Status      `protobuf:"varint,3,opt,name=status,proto3,enum=redsail.bosn.Status" json:"status,omitempty"`
	StartTime int64       `protobuf:"varint,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	StopTime  int64       `protobuf:"varint,5,opt,name=stop_time,json=stopTime,proto3" json:"stop_time,omitempty"`
	Steps     []*StepRead `protobuf:"bytes,6,rep,name=steps,proto3" json:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (*RunRead) Descriptor deprecated

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

Deprecated: Use RunRead.ProtoReflect.Descriptor instead.

func (*RunRead) GetStartTime

func (x *RunRead) GetStartTime() int64

func (*RunRead) GetStatus

func (x *RunRead) GetStatus() Status

func (*RunRead) GetSteps

func (x *RunRead) GetSteps() []*StepRead

func (*RunRead) GetStopTime

func (x *RunRead) GetStopTime() int64

func (*RunRead) GetUuid

func (x *RunRead) GetUuid() string

func (*RunRead) GetVersion

func (x *RunRead) GetVersion() string

func (*RunRead) ProtoMessage

func (*RunRead) ProtoMessage()

func (*RunRead) ProtoReflect

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

func (*RunRead) Reset

func (x *RunRead) Reset()

func (*RunRead) String

func (x *RunRead) String() string

type RunReadSummary

type RunReadSummary struct {
	Uuid      string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Version   string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Status    Status `protobuf:"varint,3,opt,name=status,proto3,enum=redsail.bosn.Status" json:"status,omitempty"`
	StartTime int64  `protobuf:"varint,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	StopTime  int64  `protobuf:"varint,5,opt,name=stop_time,json=stopTime,proto3" json:"stop_time,omitempty"`
	// contains filtered or unexported fields
}

func (*RunReadSummary) Descriptor deprecated

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

Deprecated: Use RunReadSummary.ProtoReflect.Descriptor instead.

func (*RunReadSummary) GetStartTime

func (x *RunReadSummary) GetStartTime() int64

func (*RunReadSummary) GetStatus

func (x *RunReadSummary) GetStatus() Status

func (*RunReadSummary) GetStopTime

func (x *RunReadSummary) GetStopTime() int64

func (*RunReadSummary) GetUuid

func (x *RunReadSummary) GetUuid() string

func (*RunReadSummary) GetVersion

func (x *RunReadSummary) GetVersion() string

func (*RunReadSummary) ProtoMessage

func (*RunReadSummary) ProtoMessage()

func (*RunReadSummary) ProtoReflect

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

func (*RunReadSummary) Reset

func (x *RunReadSummary) Reset()

func (*RunReadSummary) String

func (x *RunReadSummary) String() string

type RunsRead

type RunsRead struct {
	Runs []*RunReadSummary `protobuf:"bytes,1,rep,name=runs,proto3" json:"runs,omitempty"` //the runs
	// contains filtered or unexported fields
}

func (*RunsRead) Descriptor deprecated

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

Deprecated: Use RunsRead.ProtoReflect.Descriptor instead.

func (*RunsRead) GetRuns

func (x *RunsRead) GetRuns() []*RunReadSummary

func (*RunsRead) ProtoMessage

func (*RunsRead) ProtoMessage()

func (*RunsRead) ProtoReflect

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

func (*RunsRead) Reset

func (x *RunsRead) Reset()

func (*RunsRead) String

func (x *RunsRead) String() string

type Status

type Status int32
const (
	Status_NOT_STARTED Status = 0
	Status_IN_PROGRESS Status = 1
	Status_FAILED      Status = 2
	Status_SUCCEEDED   Status = 3
	Status_SKIPPED     Status = 4
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

func (Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type StepLog

type StepLog struct {
	Timestamp int64    `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Level     LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=redsail.bosn.LogLevel" json:"level,omitempty"`
	Message   string   `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*StepLog) Descriptor deprecated

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

Deprecated: Use StepLog.ProtoReflect.Descriptor instead.

func (*StepLog) GetLevel

func (x *StepLog) GetLevel() LogLevel

func (*StepLog) GetMessage

func (x *StepLog) GetMessage() string

func (*StepLog) GetTimestamp

func (x *StepLog) GetTimestamp() int64

func (*StepLog) ProtoMessage

func (*StepLog) ProtoMessage()

func (*StepLog) ProtoReflect

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

func (*StepLog) Reset

func (x *StepLog) Reset()

func (*StepLog) String

func (x *StepLog) String() string

type StepRead

type StepRead struct {
	Name      string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Status    Status     `protobuf:"varint,2,opt,name=status,proto3,enum=redsail.bosn.Status" json:"status,omitempty"`
	StartTime int64      `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	StopTime  int64      `protobuf:"varint,4,opt,name=stop_time,json=stopTime,proto3" json:"stop_time,omitempty"`
	Logs      []*StepLog `protobuf:"bytes,5,rep,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

func (*StepRead) Descriptor deprecated

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

Deprecated: Use StepRead.ProtoReflect.Descriptor instead.

func (*StepRead) GetLogs

func (x *StepRead) GetLogs() []*StepLog

func (*StepRead) GetName

func (x *StepRead) GetName() string

func (*StepRead) GetStartTime

func (x *StepRead) GetStartTime() int64

func (*StepRead) GetStatus

func (x *StepRead) GetStatus() Status

func (*StepRead) GetStopTime

func (x *StepRead) GetStopTime() int64

func (*StepRead) ProtoMessage

func (*StepRead) ProtoMessage()

func (*StepRead) ProtoReflect

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

func (*StepRead) Reset

func (x *StepRead) Reset()

func (*StepRead) String

func (x *StepRead) String() string

type TemplateDeployment

type TemplateDeployment struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // unique id of the deployment
	// contains filtered or unexported fields
}

func (*TemplateDeployment) Descriptor deprecated

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

Deprecated: Use TemplateDeployment.ProtoReflect.Descriptor instead.

func (*TemplateDeployment) GetUuid

func (x *TemplateDeployment) GetUuid() string

func (*TemplateDeployment) ProtoMessage

func (*TemplateDeployment) ProtoMessage()

func (*TemplateDeployment) ProtoReflect

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

func (*TemplateDeployment) Reset

func (x *TemplateDeployment) Reset()

func (*TemplateDeployment) String

func (x *TemplateDeployment) String() string

type TriggerDeployment

type TriggerDeployment struct {
	Uuid      string                        `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`                                                  // unique id of the deployment
	Name      string                        `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                                  // name of the trigger within this deployment
	Type      TriggerDeployment_TriggerType `protobuf:"varint,3,opt,name=type,proto3,enum=redsail.bosn.TriggerDeployment_TriggerType" json:"type,omitempty"` // the type of trigger
	Arguments []byte                        `protobuf:"bytes,4,opt,name=arguments,proto3" json:"arguments,omitempty"`                                        // args for this run
	// contains filtered or unexported fields
}

func (*TriggerDeployment) Descriptor deprecated

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

Deprecated: Use TriggerDeployment.ProtoReflect.Descriptor instead.

func (*TriggerDeployment) GetArguments

func (x *TriggerDeployment) GetArguments() []byte

func (*TriggerDeployment) GetName

func (x *TriggerDeployment) GetName() string

func (*TriggerDeployment) GetType

func (*TriggerDeployment) GetUuid

func (x *TriggerDeployment) GetUuid() string

func (*TriggerDeployment) ProtoMessage

func (*TriggerDeployment) ProtoMessage()

func (*TriggerDeployment) ProtoReflect

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

func (*TriggerDeployment) Reset

func (x *TriggerDeployment) Reset()

func (*TriggerDeployment) String

func (x *TriggerDeployment) String() string

type TriggerDeployment_TriggerType

type TriggerDeployment_TriggerType int32
const (
	TriggerDeployment_WEB    TriggerDeployment_TriggerType = 0
	TriggerDeployment_MANUAL TriggerDeployment_TriggerType = 1
)

func (TriggerDeployment_TriggerType) Descriptor

func (TriggerDeployment_TriggerType) Enum

func (TriggerDeployment_TriggerType) EnumDescriptor deprecated

func (TriggerDeployment_TriggerType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TriggerDeployment_TriggerType.Descriptor instead.

func (TriggerDeployment_TriggerType) Number

func (TriggerDeployment_TriggerType) String

func (TriggerDeployment_TriggerType) Type

type TwirpServer

type TwirpServer interface {
	http.Handler

	// ServiceDescriptor returns gzipped bytes describing the .proto file that
	// this service was generated from. Once unzipped, the bytes can be
	// unmarshalled as a
	// github.com/golang/protobuf/protoc-gen-go/descriptor.FileDescriptorProto.
	//
	// The returned integer is the index of this particular service within that
	// FileDescriptorProto's 'Service' slice of ServiceDescriptorProtos. This is a
	// low-level field, expected to be used for reflection.
	ServiceDescriptor() ([]byte, int)

	// ProtocGenTwirpVersion is the semantic version string of the version of
	// twirp used to generate this file.
	ProtocGenTwirpVersion() string

	// PathPrefix returns the HTTP URL path prefix for all methods handled by this
	// service. This can be used with an HTTP mux to route Twirp requests.
	// The path prefix is in the form: "/<prefix>/<package>.<Service>/"
	// that is, everything in a Twirp route except for the <Method> at the end.
	PathPrefix() string
}

TwirpServer is the interface generated server structs will support: they're HTTP handlers with additional methods for accessing metadata about the service. Those accessors are a low-level API for building reflection tools. Most people can think of TwirpServers as just http.Handlers.

func NewDeploymentServer

func NewDeploymentServer(svc Deployment, opts ...interface{}) TwirpServer

NewDeploymentServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation. The opts are twirp.ServerOption modifiers, for example twirp.WithServerHooks(hooks).

type UpdateDeployment

type UpdateDeployment struct {
	Uuid     string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`                         // unique id of the deployment
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                         // the name of this deployment
	RepoId   string `protobuf:"bytes,3,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`       // the unique id of the repo to get the deployment yaml from
	Branch   string `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"`                     // the branch from the repo to get the file from
	FilePath string `protobuf:"bytes,5,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // the path to the deployment file
	// contains filtered or unexported fields
}

func (*UpdateDeployment) Descriptor deprecated

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

Deprecated: Use UpdateDeployment.ProtoReflect.Descriptor instead.

func (*UpdateDeployment) GetBranch

func (x *UpdateDeployment) GetBranch() string

func (*UpdateDeployment) GetFilePath

func (x *UpdateDeployment) GetFilePath() string

func (*UpdateDeployment) GetName

func (x *UpdateDeployment) GetName() string

func (*UpdateDeployment) GetRepoId

func (x *UpdateDeployment) GetRepoId() string

func (*UpdateDeployment) GetUuid

func (x *UpdateDeployment) GetUuid() string

func (*UpdateDeployment) ProtoMessage

func (*UpdateDeployment) ProtoMessage()

func (*UpdateDeployment) ProtoReflect

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

func (*UpdateDeployment) Reset

func (x *UpdateDeployment) Reset()

func (*UpdateDeployment) String

func (x *UpdateDeployment) String() string

Jump to

Keyboard shortcuts

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