Documentation ¶
Overview ¶
Package deployment is a generated twirp stub package. This code was generated with github.com/twitchtv/twirp/protoc-gen-twirp v7.1.1.
It is generated from these files:
deployment.proto
Index ¶
- Constants
- Variables
- func WriteError(resp http.ResponseWriter, err error)
- type ApprovalRead
- func (*ApprovalRead) Descriptor() ([]byte, []int)deprecated
- func (x *ApprovalRead) GetName() string
- func (x *ApprovalRead) GetRunName() string
- func (x *ApprovalRead) GetRunUuid() string
- func (x *ApprovalRead) GetRunVersion() string
- func (x *ApprovalRead) GetStepName() string
- func (x *ApprovalRead) GetUuid() string
- func (*ApprovalRead) ProtoMessage()
- func (x *ApprovalRead) ProtoReflect() protoreflect.Message
- func (x *ApprovalRead) Reset()
- func (x *ApprovalRead) String() string
- type ApprovalsRead
- type ApproveStep
- func (*ApproveStep) Descriptor() ([]byte, []int)deprecated
- func (x *ApproveStep) GetApprove() bool
- func (x *ApproveStep) GetOverride() bool
- func (x *ApproveStep) GetRunUuid() string
- func (*ApproveStep) ProtoMessage()
- func (x *ApproveStep) ProtoReflect() protoreflect.Message
- func (x *ApproveStep) Reset()
- func (x *ApproveStep) String() string
- type CreateDeployment
- func (*CreateDeployment) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDeployment) GetBranch() string
- func (x *CreateDeployment) GetFilePath() string
- func (x *CreateDeployment) GetName() string
- func (x *CreateDeployment) GetRepoId() string
- func (*CreateDeployment) ProtoMessage()
- func (x *CreateDeployment) ProtoReflect() protoreflect.Message
- func (x *CreateDeployment) Reset()
- func (x *CreateDeployment) String() string
- type Deployment
- type DeploymentCreated
- type DeploymentDestroyed
- type DeploymentRead
- func (*DeploymentRead) Descriptor() ([]byte, []int)deprecated
- func (x *DeploymentRead) GetBranch() string
- func (x *DeploymentRead) GetFilePath() string
- func (x *DeploymentRead) GetName() string
- func (x *DeploymentRead) GetRepoId() string
- func (x *DeploymentRead) GetRepoName() string
- func (x *DeploymentRead) GetUuid() string
- func (*DeploymentRead) ProtoMessage()
- func (x *DeploymentRead) ProtoReflect() protoreflect.Message
- func (x *DeploymentRead) Reset()
- func (x *DeploymentRead) String() string
- type DeploymentReadSummary
- func (*DeploymentReadSummary) Descriptor() ([]byte, []int)deprecated
- func (x *DeploymentReadSummary) GetName() string
- func (x *DeploymentReadSummary) GetUuid() string
- func (*DeploymentReadSummary) ProtoMessage()
- func (x *DeploymentReadSummary) ProtoReflect() protoreflect.Message
- func (x *DeploymentReadSummary) Reset()
- func (x *DeploymentReadSummary) String() string
- type DeploymentTemplated
- func (*DeploymentTemplated) Descriptor() ([]byte, []int)deprecated
- func (x *DeploymentTemplated) GetUuid() string
- func (x *DeploymentTemplated) GetYaml() string
- func (*DeploymentTemplated) ProtoMessage()
- func (x *DeploymentTemplated) ProtoReflect() protoreflect.Message
- func (x *DeploymentTemplated) Reset()
- func (x *DeploymentTemplated) String() string
- type DeploymentTokenRead
- func (*DeploymentTokenRead) Descriptor() ([]byte, []int)deprecated
- func (x *DeploymentTokenRead) GetToken() string
- func (*DeploymentTokenRead) ProtoMessage()
- func (x *DeploymentTokenRead) ProtoReflect() protoreflect.Message
- func (x *DeploymentTokenRead) Reset()
- func (x *DeploymentTokenRead) String() string
- type DeploymentUpdated
- type DeploymentsRead
- func (*DeploymentsRead) Descriptor() ([]byte, []int)deprecated
- func (x *DeploymentsRead) GetDeployments() []*DeploymentReadSummary
- func (*DeploymentsRead) ProtoMessage()
- func (x *DeploymentsRead) ProtoReflect() protoreflect.Message
- func (x *DeploymentsRead) Reset()
- func (x *DeploymentsRead) String() string
- type DestroyDeployment
- type HTTPClient
- type LinkRead
- type LogLevel
- type ReadApprovals
- type ReadDeployment
- type ReadDeploymentToken
- func (*ReadDeploymentToken) Descriptor() ([]byte, []int)deprecated
- func (x *ReadDeploymentToken) GetUuid() string
- func (*ReadDeploymentToken) ProtoMessage()
- func (x *ReadDeploymentToken) ProtoReflect() protoreflect.Message
- func (x *ReadDeploymentToken) Reset()
- func (x *ReadDeploymentToken) String() string
- type ReadDeployments
- type ReadRun
- type ReadRuns
- type RunRead
- func (*RunRead) Descriptor() ([]byte, []int)deprecated
- func (x *RunRead) GetLinks() []*LinkRead
- func (x *RunRead) GetName() string
- func (x *RunRead) GetStartTime() int64
- func (x *RunRead) GetStatus() Status
- func (x *RunRead) GetSteps() []*StepRead
- func (x *RunRead) GetStopTime() int64
- func (x *RunRead) GetUuid() string
- func (x *RunRead) GetVersion() string
- func (*RunRead) ProtoMessage()
- func (x *RunRead) ProtoReflect() protoreflect.Message
- func (x *RunRead) Reset()
- func (x *RunRead) String() string
- type RunReadSummary
- func (*RunReadSummary) Descriptor() ([]byte, []int)deprecated
- func (x *RunReadSummary) GetName() string
- func (x *RunReadSummary) GetStartTime() int64
- func (x *RunReadSummary) GetStatus() Status
- func (x *RunReadSummary) GetStopTime() int64
- func (x *RunReadSummary) GetUuid() string
- func (x *RunReadSummary) GetVersion() string
- func (*RunReadSummary) ProtoMessage()
- func (x *RunReadSummary) ProtoReflect() protoreflect.Message
- func (x *RunReadSummary) Reset()
- func (x *RunReadSummary) String() string
- type RunsRead
- type Status
- type StepApproved
- type StepLog
- func (*StepLog) Descriptor() ([]byte, []int)deprecated
- func (x *StepLog) GetLevel() LogLevel
- func (x *StepLog) GetMessage() string
- func (x *StepLog) GetTimestamp() int64
- func (*StepLog) ProtoMessage()
- func (x *StepLog) ProtoReflect() protoreflect.Message
- func (x *StepLog) Reset()
- func (x *StepLog) String() string
- type StepRead
- func (*StepRead) Descriptor() ([]byte, []int)deprecated
- func (x *StepRead) GetLogs() []*StepLog
- func (x *StepRead) GetName() string
- func (x *StepRead) GetStartTime() int64
- func (x *StepRead) GetStatus() Status
- func (x *StepRead) GetStopTime() int64
- func (*StepRead) ProtoMessage()
- func (x *StepRead) ProtoReflect() protoreflect.Message
- func (x *StepRead) Reset()
- func (x *StepRead) String() string
- type TemplateDeployment
- func (*TemplateDeployment) Descriptor() ([]byte, []int)deprecated
- func (x *TemplateDeployment) GetUuid() string
- func (*TemplateDeployment) ProtoMessage()
- func (x *TemplateDeployment) ProtoReflect() protoreflect.Message
- func (x *TemplateDeployment) Reset()
- func (x *TemplateDeployment) String() string
- type TwirpServer
- type UpdateDeployment
- func (*UpdateDeployment) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDeployment) GetBranch() string
- func (x *UpdateDeployment) GetFilePath() string
- func (x *UpdateDeployment) GetName() string
- func (x *UpdateDeployment) GetRepoId() string
- func (x *UpdateDeployment) GetUuid() string
- func (*UpdateDeployment) ProtoMessage()
- func (x *UpdateDeployment) ProtoReflect() protoreflect.Message
- func (x *UpdateDeployment) Reset()
- func (x *UpdateDeployment) String() string
Constants ¶
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 ¶
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.
var ( Status_name = map[int32]string{ 0: "NOT_STARTED", 1: "IN_PROGRESS", 2: "AWAITING_APPROVAL", 3: "FAILED", 4: "SUCCEEDED", 5: "SKIPPED", } Status_value = map[string]int32{ "NOT_STARTED": 0, "IN_PROGRESS": 1, "AWAITING_APPROVAL": 2, "FAILED": 3, "SUCCEEDED": 4, "SKIPPED": 5, } )
Enum value maps for Status.
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 ApprovalRead ¶ added in v0.8.0
type ApprovalRead struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` RunUuid string `protobuf:"bytes,3,opt,name=run_uuid,json=runUuid,proto3" json:"run_uuid,omitempty"` RunName string `protobuf:"bytes,4,opt,name=run_name,json=runName,proto3" json:"run_name,omitempty"` RunVersion string `protobuf:"bytes,5,opt,name=run_version,json=runVersion,proto3" json:"run_version,omitempty"` StepName string `protobuf:"bytes,6,opt,name=step_name,json=stepName,proto3" json:"step_name,omitempty"` // contains filtered or unexported fields }
func (*ApprovalRead) Descriptor
deprecated
added in
v0.8.0
func (*ApprovalRead) Descriptor() ([]byte, []int)
Deprecated: Use ApprovalRead.ProtoReflect.Descriptor instead.
func (*ApprovalRead) GetName ¶ added in v0.8.8
func (x *ApprovalRead) GetName() string
func (*ApprovalRead) GetRunName ¶ added in v0.8.0
func (x *ApprovalRead) GetRunName() string
func (*ApprovalRead) GetRunUuid ¶ added in v0.8.0
func (x *ApprovalRead) GetRunUuid() string
func (*ApprovalRead) GetRunVersion ¶ added in v0.8.0
func (x *ApprovalRead) GetRunVersion() string
func (*ApprovalRead) GetStepName ¶ added in v0.8.0
func (x *ApprovalRead) GetStepName() string
func (*ApprovalRead) GetUuid ¶ added in v0.8.0
func (x *ApprovalRead) GetUuid() string
func (*ApprovalRead) ProtoMessage ¶ added in v0.8.0
func (*ApprovalRead) ProtoMessage()
func (*ApprovalRead) ProtoReflect ¶ added in v0.8.0
func (x *ApprovalRead) ProtoReflect() protoreflect.Message
func (*ApprovalRead) Reset ¶ added in v0.8.0
func (x *ApprovalRead) Reset()
func (*ApprovalRead) String ¶ added in v0.8.0
func (x *ApprovalRead) String() string
type ApprovalsRead ¶ added in v0.8.0
type ApprovalsRead struct { Approvals []*ApprovalRead `protobuf:"bytes,1,rep,name=approvals,proto3" json:"approvals,omitempty"` // contains filtered or unexported fields }
func (*ApprovalsRead) Descriptor
deprecated
added in
v0.8.0
func (*ApprovalsRead) Descriptor() ([]byte, []int)
Deprecated: Use ApprovalsRead.ProtoReflect.Descriptor instead.
func (*ApprovalsRead) GetApprovals ¶ added in v0.8.0
func (x *ApprovalsRead) GetApprovals() []*ApprovalRead
func (*ApprovalsRead) ProtoMessage ¶ added in v0.8.0
func (*ApprovalsRead) ProtoMessage()
func (*ApprovalsRead) ProtoReflect ¶ added in v0.8.0
func (x *ApprovalsRead) ProtoReflect() protoreflect.Message
func (*ApprovalsRead) Reset ¶ added in v0.8.0
func (x *ApprovalsRead) Reset()
func (*ApprovalsRead) String ¶ added in v0.8.0
func (x *ApprovalsRead) String() string
type ApproveStep ¶ added in v0.8.0
type ApproveStep struct { RunUuid string `protobuf:"bytes,1,opt,name=run_uuid,json=runUuid,proto3" json:"run_uuid,omitempty"` Approve bool `protobuf:"varint,2,opt,name=approve,proto3" json:"approve,omitempty"` Override bool `protobuf:"varint,3,opt,name=override,proto3" json:"override,omitempty"` // contains filtered or unexported fields }
func (*ApproveStep) Descriptor
deprecated
added in
v0.8.0
func (*ApproveStep) Descriptor() ([]byte, []int)
Deprecated: Use ApproveStep.ProtoReflect.Descriptor instead.
func (*ApproveStep) GetApprove ¶ added in v0.8.0
func (x *ApproveStep) GetApprove() bool
func (*ApproveStep) GetOverride ¶ added in v0.8.0
func (x *ApproveStep) GetOverride() bool
func (*ApproveStep) GetRunUuid ¶ added in v0.8.0
func (x *ApproveStep) GetRunUuid() string
func (*ApproveStep) ProtoMessage ¶ added in v0.8.0
func (*ApproveStep) ProtoMessage()
func (*ApproveStep) ProtoReflect ¶ added in v0.8.0
func (x *ApproveStep) ProtoReflect() protoreflect.Message
func (*ApproveStep) Reset ¶ added in v0.8.0
func (x *ApproveStep) Reset()
func (*ApproveStep) String ¶ added in v0.8.0
func (x *ApproveStep) String() string
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 deployment 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) // gets the token for this deployment, for use with web calls Token(context.Context, *ReadDeploymentToken) (*DeploymentTokenRead, 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) // approve a step for a run Approve(context.Context, *ApproveStep) (*StepApproved, error) // gets all approvals for the user Approvals(context.Context, *ReadApprovals) (*ApprovalsRead, 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 DeploymentTokenRead ¶ added in v0.8.4
type DeploymentTokenRead struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // deployment token for web calls // contains filtered or unexported fields }
func (*DeploymentTokenRead) Descriptor
deprecated
added in
v0.8.4
func (*DeploymentTokenRead) Descriptor() ([]byte, []int)
Deprecated: Use DeploymentTokenRead.ProtoReflect.Descriptor instead.
func (*DeploymentTokenRead) GetToken ¶ added in v0.8.4
func (x *DeploymentTokenRead) GetToken() string
func (*DeploymentTokenRead) ProtoMessage ¶ added in v0.8.4
func (*DeploymentTokenRead) ProtoMessage()
func (*DeploymentTokenRead) ProtoReflect ¶ added in v0.8.4
func (x *DeploymentTokenRead) ProtoReflect() protoreflect.Message
func (*DeploymentTokenRead) Reset ¶ added in v0.8.4
func (x *DeploymentTokenRead) Reset()
func (*DeploymentTokenRead) String ¶ added in v0.8.4
func (x *DeploymentTokenRead) 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 ¶
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 LinkRead ¶ added in v0.8.0
type LinkRead struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*LinkRead) Descriptor
deprecated
added in
v0.8.0
func (*LinkRead) ProtoMessage ¶ added in v0.8.0
func (*LinkRead) ProtoMessage()
func (*LinkRead) ProtoReflect ¶ added in v0.8.0
func (x *LinkRead) ProtoReflect() protoreflect.Message
type LogLevel ¶
type LogLevel int32
func (LogLevel) Descriptor ¶
func (LogLevel) Descriptor() protoreflect.EnumDescriptor
func (LogLevel) EnumDescriptor
deprecated
func (LogLevel) Number ¶
func (x LogLevel) Number() protoreflect.EnumNumber
func (LogLevel) Type ¶
func (LogLevel) Type() protoreflect.EnumType
type ReadApprovals ¶ added in v0.8.0
type ReadApprovals struct {
// contains filtered or unexported fields
}
func (*ReadApprovals) Descriptor
deprecated
added in
v0.8.0
func (*ReadApprovals) Descriptor() ([]byte, []int)
Deprecated: Use ReadApprovals.ProtoReflect.Descriptor instead.
func (*ReadApprovals) ProtoMessage ¶ added in v0.8.0
func (*ReadApprovals) ProtoMessage()
func (*ReadApprovals) ProtoReflect ¶ added in v0.8.0
func (x *ReadApprovals) ProtoReflect() protoreflect.Message
func (*ReadApprovals) Reset ¶ added in v0.8.0
func (x *ReadApprovals) Reset()
func (*ReadApprovals) String ¶ added in v0.8.0
func (x *ReadApprovals) String() string
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 ReadDeploymentToken ¶ added in v0.8.4
type ReadDeploymentToken struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // unique id of the deployment // contains filtered or unexported fields }
func (*ReadDeploymentToken) Descriptor
deprecated
added in
v0.8.4
func (*ReadDeploymentToken) Descriptor() ([]byte, []int)
Deprecated: Use ReadDeploymentToken.ProtoReflect.Descriptor instead.
func (*ReadDeploymentToken) GetUuid ¶ added in v0.8.4
func (x *ReadDeploymentToken) GetUuid() string
func (*ReadDeploymentToken) ProtoMessage ¶ added in v0.8.4
func (*ReadDeploymentToken) ProtoMessage()
func (*ReadDeploymentToken) ProtoReflect ¶ added in v0.8.4
func (x *ReadDeploymentToken) ProtoReflect() protoreflect.Message
func (*ReadDeploymentToken) Reset ¶ added in v0.8.4
func (x *ReadDeploymentToken) Reset()
func (*ReadDeploymentToken) String ¶ added in v0.8.4
func (x *ReadDeploymentToken) 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) GetDeploymentUuid ¶
func (*ReadRun) ProtoMessage ¶
func (*ReadRun) ProtoMessage()
func (*ReadRun) ProtoReflect ¶
func (x *ReadRun) ProtoReflect() protoreflect.Message
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) GetDeploymentUuid ¶
func (*ReadRuns) ProtoMessage ¶
func (*ReadRuns) ProtoMessage()
func (*ReadRuns) ProtoReflect ¶
func (x *ReadRuns) ProtoReflect() protoreflect.Message
type RunRead ¶
type RunRead struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=redsail.bosn.Status" json:"status,omitempty"` StartTime int64 `protobuf:"varint,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` StopTime int64 `protobuf:"varint,6,opt,name=stop_time,json=stopTime,proto3" json:"stop_time,omitempty"` Links []*LinkRead `protobuf:"bytes,7,rep,name=links,proto3" json:"links,omitempty"` Steps []*StepRead `protobuf:"bytes,8,rep,name=steps,proto3" json:"steps,omitempty"` // contains filtered or unexported fields }
func (*RunRead) Descriptor
deprecated
func (*RunRead) GetStartTime ¶
func (*RunRead) GetStopTime ¶
func (*RunRead) GetVersion ¶
func (*RunRead) ProtoMessage ¶
func (*RunRead) ProtoMessage()
func (*RunRead) ProtoReflect ¶
func (x *RunRead) ProtoReflect() protoreflect.Message
type RunReadSummary ¶
type RunReadSummary struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=redsail.bosn.Status" json:"status,omitempty"` StartTime int64 `protobuf:"varint,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` StopTime int64 `protobuf:"varint,6,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) GetName ¶ added in v0.7.0
func (x *RunReadSummary) GetName() string
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) GetRuns ¶
func (x *RunsRead) GetRuns() []*RunReadSummary
func (*RunsRead) ProtoMessage ¶
func (*RunsRead) ProtoMessage()
func (*RunsRead) ProtoReflect ¶
func (x *RunsRead) ProtoReflect() protoreflect.Message
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type StepApproved ¶ added in v0.8.0
type StepApproved struct {
// contains filtered or unexported fields
}
func (*StepApproved) Descriptor
deprecated
added in
v0.8.0
func (*StepApproved) Descriptor() ([]byte, []int)
Deprecated: Use StepApproved.ProtoReflect.Descriptor instead.
func (*StepApproved) ProtoMessage ¶ added in v0.8.0
func (*StepApproved) ProtoMessage()
func (*StepApproved) ProtoReflect ¶ added in v0.8.0
func (x *StepApproved) ProtoReflect() protoreflect.Message
func (*StepApproved) Reset ¶ added in v0.8.0
func (x *StepApproved) Reset()
func (*StepApproved) String ¶ added in v0.8.0
func (x *StepApproved) String() string
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) GetMessage ¶
func (*StepLog) GetTimestamp ¶
func (*StepLog) ProtoMessage ¶
func (*StepLog) ProtoMessage()
func (*StepLog) ProtoReflect ¶
func (x *StepLog) ProtoReflect() protoreflect.Message
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) GetStartTime ¶
func (*StepRead) GetStopTime ¶
func (*StepRead) ProtoMessage ¶
func (*StepRead) ProtoMessage()
func (*StepRead) ProtoReflect ¶
func (x *StepRead) ProtoReflect() protoreflect.Message
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 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