Documentation ¶
Overview ¶
Package rpc is a generated twirp stub package. This code was generated with github.com/twitchtv/twirp/protoc-gen-twirp v5.11.0.
It is generated from these files:
pkg/samsahai/rpc/service.proto
Index ¶
- Constants
- Variables
- func WriteError(resp http.ResponseWriter, err error)
- type BundleName
- type Component
- type ComponentSource
- func (*ComponentSource) Descriptor() ([]byte, []int)deprecated
- func (x *ComponentSource) GetComponentName() string
- func (x *ComponentSource) GetImage() *Image
- func (x *ComponentSource) GetPattern() string
- func (x *ComponentSource) GetSource() string
- func (*ComponentSource) ProtoMessage()
- func (x *ComponentSource) ProtoReflect() protoreflect.Message
- func (x *ComponentSource) Reset()
- func (x *ComponentSource) String() string
- type ComponentUpgrade
- func (*ComponentUpgrade) Descriptor() ([]byte, []int)deprecated
- func (x *ComponentUpgrade) GetComponents() []*Component
- func (x *ComponentUpgrade) GetDeploymentIssues() []*DeploymentIssue
- func (x *ComponentUpgrade) GetImageMissingList() []*Image
- func (x *ComponentUpgrade) GetIsReverify() bool
- func (x *ComponentUpgrade) GetIssueType() ComponentUpgrade_IssueType
- func (x *ComponentUpgrade) GetName() string
- func (x *ComponentUpgrade) GetNamespace() string
- func (x *ComponentUpgrade) GetPullRequestComponent() *TeamWithPullRequest
- func (x *ComponentUpgrade) GetPullRequestNamespace() string
- func (x *ComponentUpgrade) GetQueueHistoryName() string
- func (x *ComponentUpgrade) GetReverificationStatus() ComponentUpgrade_ReverificationStatus
- func (x *ComponentUpgrade) GetRuns() int32
- func (x *ComponentUpgrade) GetStatus() ComponentUpgrade_UpgradeStatus
- func (x *ComponentUpgrade) GetTeamName() string
- func (x *ComponentUpgrade) GetTestBuildTypeID() string
- func (*ComponentUpgrade) ProtoMessage()
- func (x *ComponentUpgrade) ProtoReflect() protoreflect.Message
- func (x *ComponentUpgrade) Reset()
- func (x *ComponentUpgrade) String() string
- type ComponentUpgrade_IssueType
- func (ComponentUpgrade_IssueType) Descriptor() protoreflect.EnumDescriptor
- func (x ComponentUpgrade_IssueType) Enum() *ComponentUpgrade_IssueType
- func (ComponentUpgrade_IssueType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ComponentUpgrade_IssueType) Number() protoreflect.EnumNumber
- func (x ComponentUpgrade_IssueType) String() string
- func (ComponentUpgrade_IssueType) Type() protoreflect.EnumType
- type ComponentUpgrade_ReverificationStatus
- func (ComponentUpgrade_ReverificationStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ComponentUpgrade_ReverificationStatus) Enum() *ComponentUpgrade_ReverificationStatus
- func (ComponentUpgrade_ReverificationStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ComponentUpgrade_ReverificationStatus) Number() protoreflect.EnumNumber
- func (x ComponentUpgrade_ReverificationStatus) String() string
- func (ComponentUpgrade_ReverificationStatus) Type() protoreflect.EnumType
- type ComponentUpgrade_UpgradeStatus
- func (ComponentUpgrade_UpgradeStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ComponentUpgrade_UpgradeStatus) Enum() *ComponentUpgrade_UpgradeStatus
- func (ComponentUpgrade_UpgradeStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ComponentUpgrade_UpgradeStatus) Number() protoreflect.EnumNumber
- func (x ComponentUpgrade_UpgradeStatus) String() string
- func (ComponentUpgrade_UpgradeStatus) Type() protoreflect.EnumType
- type ComponentVersion
- type DeploymentIssue
- func (*DeploymentIssue) Descriptor() ([]byte, []int)deprecated
- func (x *DeploymentIssue) GetFailureComponents() []*FailureComponent
- func (x *DeploymentIssue) GetIssueType() string
- func (*DeploymentIssue) ProtoMessage()
- func (x *DeploymentIssue) ProtoReflect() protoreflect.Message
- func (x *DeploymentIssue) Reset()
- func (x *DeploymentIssue) String() string
- type Empty
- type FailureComponent
- func (*FailureComponent) Descriptor() ([]byte, []int)deprecated
- func (x *FailureComponent) GetComponentName() string
- func (x *FailureComponent) GetFirstFailureContainerName() string
- func (x *FailureComponent) GetNodeName() string
- func (x *FailureComponent) GetRestartCount() int32
- func (*FailureComponent) ProtoMessage()
- func (x *FailureComponent) ProtoReflect() protoreflect.Message
- func (x *FailureComponent) Reset()
- func (x *FailureComponent) String() string
- type HTTPClient
- type Image
- type ImageList
- type PriorityQueues
- type PullRequestConfig
- func (*PullRequestConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PullRequestConfig) GetConcurrences() int32
- func (x *PullRequestConfig) GetMaxHistoryDays() int32
- func (x *PullRequestConfig) GetMaxRetry() int32
- func (x *PullRequestConfig) GetTrigger() *PullRequestTriggerConfig
- func (*PullRequestConfig) ProtoMessage()
- func (x *PullRequestConfig) ProtoReflect() protoreflect.Message
- func (x *PullRequestConfig) Reset()
- func (x *PullRequestConfig) String() string
- type PullRequestDependencies
- func (*PullRequestDependencies) Descriptor() ([]byte, []int)deprecated
- func (x *PullRequestDependencies) GetDependencies() []*Component
- func (*PullRequestDependencies) ProtoMessage()
- func (x *PullRequestDependencies) ProtoReflect() protoreflect.Message
- func (x *PullRequestDependencies) Reset()
- func (x *PullRequestDependencies) String() string
- type PullRequestTrigger
- func (*PullRequestTrigger) Descriptor() ([]byte, []int)deprecated
- func (x *PullRequestTrigger) GetName() string
- func (x *PullRequestTrigger) GetNamespace() string
- func (x *PullRequestTrigger) GetResult() string
- func (x *PullRequestTrigger) GetTeamName() string
- func (*PullRequestTrigger) ProtoMessage()
- func (x *PullRequestTrigger) ProtoReflect() protoreflect.Message
- func (x *PullRequestTrigger) Reset()
- func (x *PullRequestTrigger) String() string
- type PullRequestTriggerConfig
- func (*PullRequestTriggerConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PullRequestTriggerConfig) GetMaxRetry() int32
- func (x *PullRequestTriggerConfig) GetPollingTime() string
- func (*PullRequestTriggerConfig) ProtoMessage()
- func (x *PullRequestTriggerConfig) ProtoReflect() protoreflect.Message
- func (x *PullRequestTriggerConfig) Reset()
- func (x *PullRequestTriggerConfig) String() string
- type RPC
- type TeamName
- type TeamWithComponentName
- func (*TeamWithComponentName) Descriptor() ([]byte, []int)deprecated
- func (x *TeamWithComponentName) GetComponentName() string
- func (x *TeamWithComponentName) GetTeamName() string
- func (*TeamWithComponentName) ProtoMessage()
- func (x *TeamWithComponentName) ProtoReflect() protoreflect.Message
- func (x *TeamWithComponentName) Reset()
- func (x *TeamWithComponentName) String() string
- type TeamWithCurrentComponent
- func (*TeamWithCurrentComponent) Descriptor() ([]byte, []int)deprecated
- func (x *TeamWithCurrentComponent) GetComponents() []*Component
- func (x *TeamWithCurrentComponent) GetTeamName() string
- func (*TeamWithCurrentComponent) ProtoMessage()
- func (x *TeamWithCurrentComponent) ProtoReflect() protoreflect.Message
- func (x *TeamWithCurrentComponent) Reset()
- func (x *TeamWithCurrentComponent) String() string
- type TeamWithNamespace
- func (*TeamWithNamespace) Descriptor() ([]byte, []int)deprecated
- func (x *TeamWithNamespace) GetNamespace() string
- func (x *TeamWithNamespace) GetTeamName() string
- func (*TeamWithNamespace) ProtoMessage()
- func (x *TeamWithNamespace) ProtoReflect() protoreflect.Message
- func (x *TeamWithNamespace) Reset()
- func (x *TeamWithNamespace) String() string
- type TeamWithPullRequest
- func (*TeamWithPullRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamWithPullRequest) GetComponentName() string
- func (x *TeamWithPullRequest) GetMaxRetryQueue() int32
- func (x *TeamWithPullRequest) GetNamespace() string
- func (x *TeamWithPullRequest) GetPRNumber() string
- func (x *TeamWithPullRequest) GetTeamName() string
- func (*TeamWithPullRequest) ProtoMessage()
- func (x *TeamWithPullRequest) ProtoReflect() protoreflect.Message
- func (x *TeamWithPullRequest) Reset()
- func (x *TeamWithPullRequest) String() string
- type TwirpServer
Constants ¶
const RPCPathPrefix = "/twirp/samsahai.io.samsahai.RPC/"
RPCPathPrefix is used for all URL paths on a twirp RPC server. Requests are always: POST RPCPathPrefix/method It can be used in an HTTP mux to route twirp requests along with non-twirp requests on other routes.
Variables ¶
var ( ComponentUpgrade_UpgradeStatus_name = map[int32]string{ 0: "UpgradeStatus_FAILURE", 1: "UpgradeStatus_SUCCESS", } ComponentUpgrade_UpgradeStatus_value = map[string]int32{ "UpgradeStatus_FAILURE": 0, "UpgradeStatus_SUCCESS": 1, } )
Enum value maps for ComponentUpgrade_UpgradeStatus.
var ( ComponentUpgrade_IssueType_name = map[int32]string{ 0: "IssueType_UNKNOWN", 1: "IssueType_DESIRED_VERSION_FAILED", 2: "IssueType_IMAGE_MISSING", 3: "IssueType_ENVIRONMENT_ISSUE", } ComponentUpgrade_IssueType_value = map[string]int32{ "IssueType_UNKNOWN": 0, "IssueType_DESIRED_VERSION_FAILED": 1, "IssueType_IMAGE_MISSING": 2, "IssueType_ENVIRONMENT_ISSUE": 3, } )
Enum value maps for ComponentUpgrade_IssueType.
var ( ComponentUpgrade_ReverificationStatus_name = map[int32]string{ 0: "ReverificationStatus_UNKNOWN", 1: "ReverificationStatus_FAILURE", 2: "ReverificationStatus_SUCCESS", } ComponentUpgrade_ReverificationStatus_value = map[string]int32{ "ReverificationStatus_UNKNOWN": 0, "ReverificationStatus_FAILURE": 1, "ReverificationStatus_SUCCESS": 2, } )
Enum value maps for ComponentUpgrade_ReverificationStatus.
var File_pkg_samsahai_rpc_service_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 BundleName ¶ added in v1.4.0
type BundleName struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*BundleName) Descriptor
deprecated
added in
v1.4.0
func (*BundleName) Descriptor() ([]byte, []int)
Deprecated: Use BundleName.ProtoReflect.Descriptor instead.
func (*BundleName) GetName ¶ added in v1.4.0
func (x *BundleName) GetName() string
func (*BundleName) ProtoMessage ¶ added in v1.4.0
func (*BundleName) ProtoMessage()
func (*BundleName) ProtoReflect ¶ added in v1.4.0
func (x *BundleName) ProtoReflect() protoreflect.Message
func (*BundleName) Reset ¶ added in v1.4.0
func (x *BundleName) Reset()
func (*BundleName) String ¶ added in v1.4.0
func (x *BundleName) String() string
type Component ¶ added in v1.4.0
type Component struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Image *Image `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*Component) Descriptor
deprecated
added in
v1.4.0
func (*Component) ProtoMessage ¶ added in v1.4.0
func (*Component) ProtoMessage()
func (*Component) ProtoReflect ¶ added in v1.4.0
func (x *Component) ProtoReflect() protoreflect.Message
type ComponentSource ¶ added in v1.7.0
type ComponentSource struct { ComponentName string `protobuf:"bytes,1,opt,name=componentName,proto3" json:"componentName,omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` Pattern string `protobuf:"bytes,3,opt,name=pattern,proto3" json:"pattern,omitempty"` Image *Image `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*ComponentSource) Descriptor
deprecated
added in
v1.7.0
func (*ComponentSource) Descriptor() ([]byte, []int)
Deprecated: Use ComponentSource.ProtoReflect.Descriptor instead.
func (*ComponentSource) GetComponentName ¶ added in v1.7.0
func (x *ComponentSource) GetComponentName() string
func (*ComponentSource) GetImage ¶ added in v1.7.0
func (x *ComponentSource) GetImage() *Image
func (*ComponentSource) GetPattern ¶ added in v1.7.0
func (x *ComponentSource) GetPattern() string
func (*ComponentSource) GetSource ¶ added in v1.7.0
func (x *ComponentSource) GetSource() string
func (*ComponentSource) ProtoMessage ¶ added in v1.7.0
func (*ComponentSource) ProtoMessage()
func (*ComponentSource) ProtoReflect ¶ added in v1.7.0
func (x *ComponentSource) ProtoReflect() protoreflect.Message
func (*ComponentSource) Reset ¶ added in v1.7.0
func (x *ComponentSource) Reset()
func (*ComponentSource) String ¶ added in v1.7.0
func (x *ComponentSource) String() string
type ComponentUpgrade ¶
type ComponentUpgrade struct { Status ComponentUpgrade_UpgradeStatus `protobuf:"varint,1,opt,name=status,proto3,enum=samsahai.io.samsahai.ComponentUpgrade_UpgradeStatus" json:"status,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` TeamName string `protobuf:"bytes,3,opt,name=teamName,proto3" json:"teamName,omitempty"` Components []*Component `protobuf:"bytes,4,rep,name=components,proto3" json:"components,omitempty"` IssueType ComponentUpgrade_IssueType `protobuf:"varint,5,opt,name=issueType,proto3,enum=samsahai.io.samsahai.ComponentUpgrade_IssueType" json:"issueType,omitempty"` QueueHistoryName string `protobuf:"bytes,6,opt,name=queueHistoryName,proto3" json:"queueHistoryName,omitempty"` ImageMissingList []*Image `protobuf:"bytes,7,rep,name=imageMissingList,proto3" json:"imageMissingList,omitempty"` Namespace string `protobuf:"bytes,8,opt,name=namespace,proto3" json:"namespace,omitempty"` TestBuildTypeID string `protobuf:"bytes,9,opt,name=testBuildTypeID,proto3" json:"testBuildTypeID,omitempty"` Runs int32 `protobuf:"varint,10,opt,name=runs,proto3" json:"runs,omitempty"` IsReverify bool `protobuf:"varint,11,opt,name=isReverify,proto3" json:"isReverify,omitempty"` ReverificationStatus ComponentUpgrade_ReverificationStatus `` /* 159-byte string literal not displayed */ DeploymentIssues []*DeploymentIssue `protobuf:"bytes,13,rep,name=deploymentIssues,proto3" json:"deploymentIssues,omitempty"` PullRequestComponent *TeamWithPullRequest `protobuf:"bytes,14,opt,name=pullRequestComponent,proto3" json:"pullRequestComponent,omitempty"` PullRequestNamespace string `protobuf:"bytes,15,opt,name=pullRequestNamespace,proto3" json:"pullRequestNamespace,omitempty"` // contains filtered or unexported fields }
func (*ComponentUpgrade) Descriptor
deprecated
func (*ComponentUpgrade) Descriptor() ([]byte, []int)
Deprecated: Use ComponentUpgrade.ProtoReflect.Descriptor instead.
func (*ComponentUpgrade) GetComponents ¶ added in v1.4.0
func (x *ComponentUpgrade) GetComponents() []*Component
func (*ComponentUpgrade) GetDeploymentIssues ¶ added in v1.6.0
func (x *ComponentUpgrade) GetDeploymentIssues() []*DeploymentIssue
func (*ComponentUpgrade) GetImageMissingList ¶
func (x *ComponentUpgrade) GetImageMissingList() []*Image
func (*ComponentUpgrade) GetIsReverify ¶
func (x *ComponentUpgrade) GetIsReverify() bool
func (*ComponentUpgrade) GetIssueType ¶
func (x *ComponentUpgrade) GetIssueType() ComponentUpgrade_IssueType
func (*ComponentUpgrade) GetName ¶
func (x *ComponentUpgrade) GetName() string
func (*ComponentUpgrade) GetNamespace ¶
func (x *ComponentUpgrade) GetNamespace() string
func (*ComponentUpgrade) GetPullRequestComponent ¶ added in v1.7.0
func (x *ComponentUpgrade) GetPullRequestComponent() *TeamWithPullRequest
func (*ComponentUpgrade) GetPullRequestNamespace ¶ added in v1.7.0
func (x *ComponentUpgrade) GetPullRequestNamespace() string
func (*ComponentUpgrade) GetQueueHistoryName ¶
func (x *ComponentUpgrade) GetQueueHistoryName() string
func (*ComponentUpgrade) GetReverificationStatus ¶
func (x *ComponentUpgrade) GetReverificationStatus() ComponentUpgrade_ReverificationStatus
func (*ComponentUpgrade) GetRuns ¶
func (x *ComponentUpgrade) GetRuns() int32
func (*ComponentUpgrade) GetStatus ¶
func (x *ComponentUpgrade) GetStatus() ComponentUpgrade_UpgradeStatus
func (*ComponentUpgrade) GetTeamName ¶
func (x *ComponentUpgrade) GetTeamName() string
func (*ComponentUpgrade) GetTestBuildTypeID ¶
func (x *ComponentUpgrade) GetTestBuildTypeID() string
func (*ComponentUpgrade) ProtoMessage ¶
func (*ComponentUpgrade) ProtoMessage()
func (*ComponentUpgrade) ProtoReflect ¶ added in v1.4.0
func (x *ComponentUpgrade) ProtoReflect() protoreflect.Message
func (*ComponentUpgrade) Reset ¶
func (x *ComponentUpgrade) Reset()
func (*ComponentUpgrade) String ¶
func (x *ComponentUpgrade) String() string
type ComponentUpgrade_IssueType ¶
type ComponentUpgrade_IssueType int32
const ( ComponentUpgrade_IssueType_UNKNOWN ComponentUpgrade_IssueType = 0 ComponentUpgrade_IssueType_DESIRED_VERSION_FAILED ComponentUpgrade_IssueType = 1 ComponentUpgrade_IssueType_IMAGE_MISSING ComponentUpgrade_IssueType = 2 ComponentUpgrade_IssueType_ENVIRONMENT_ISSUE ComponentUpgrade_IssueType = 3 )
func (ComponentUpgrade_IssueType) Descriptor ¶ added in v1.4.0
func (ComponentUpgrade_IssueType) Descriptor() protoreflect.EnumDescriptor
func (ComponentUpgrade_IssueType) Enum ¶ added in v1.4.0
func (x ComponentUpgrade_IssueType) Enum() *ComponentUpgrade_IssueType
func (ComponentUpgrade_IssueType) EnumDescriptor
deprecated
func (ComponentUpgrade_IssueType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ComponentUpgrade_IssueType.Descriptor instead.
func (ComponentUpgrade_IssueType) Number ¶ added in v1.4.0
func (x ComponentUpgrade_IssueType) Number() protoreflect.EnumNumber
func (ComponentUpgrade_IssueType) String ¶
func (x ComponentUpgrade_IssueType) String() string
func (ComponentUpgrade_IssueType) Type ¶ added in v1.4.0
func (ComponentUpgrade_IssueType) Type() protoreflect.EnumType
type ComponentUpgrade_ReverificationStatus ¶
type ComponentUpgrade_ReverificationStatus int32
const ( ComponentUpgrade_ReverificationStatus_UNKNOWN ComponentUpgrade_ReverificationStatus = 0 ComponentUpgrade_ReverificationStatus_FAILURE ComponentUpgrade_ReverificationStatus = 1 ComponentUpgrade_ReverificationStatus_SUCCESS ComponentUpgrade_ReverificationStatus = 2 )
func (ComponentUpgrade_ReverificationStatus) Descriptor ¶ added in v1.4.0
func (ComponentUpgrade_ReverificationStatus) Descriptor() protoreflect.EnumDescriptor
func (ComponentUpgrade_ReverificationStatus) EnumDescriptor
deprecated
func (ComponentUpgrade_ReverificationStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ComponentUpgrade_ReverificationStatus.Descriptor instead.
func (ComponentUpgrade_ReverificationStatus) Number ¶ added in v1.4.0
func (x ComponentUpgrade_ReverificationStatus) Number() protoreflect.EnumNumber
func (ComponentUpgrade_ReverificationStatus) String ¶
func (x ComponentUpgrade_ReverificationStatus) String() string
func (ComponentUpgrade_ReverificationStatus) Type ¶ added in v1.4.0
func (ComponentUpgrade_ReverificationStatus) Type() protoreflect.EnumType
type ComponentUpgrade_UpgradeStatus ¶
type ComponentUpgrade_UpgradeStatus int32
const ( ComponentUpgrade_UpgradeStatus_FAILURE ComponentUpgrade_UpgradeStatus = 0 ComponentUpgrade_UpgradeStatus_SUCCESS ComponentUpgrade_UpgradeStatus = 1 )
func (ComponentUpgrade_UpgradeStatus) Descriptor ¶ added in v1.4.0
func (ComponentUpgrade_UpgradeStatus) Descriptor() protoreflect.EnumDescriptor
func (ComponentUpgrade_UpgradeStatus) Enum ¶ added in v1.4.0
func (x ComponentUpgrade_UpgradeStatus) Enum() *ComponentUpgrade_UpgradeStatus
func (ComponentUpgrade_UpgradeStatus) EnumDescriptor
deprecated
func (ComponentUpgrade_UpgradeStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ComponentUpgrade_UpgradeStatus.Descriptor instead.
func (ComponentUpgrade_UpgradeStatus) Number ¶ added in v1.4.0
func (x ComponentUpgrade_UpgradeStatus) Number() protoreflect.EnumNumber
func (ComponentUpgrade_UpgradeStatus) String ¶
func (x ComponentUpgrade_UpgradeStatus) String() string
func (ComponentUpgrade_UpgradeStatus) Type ¶ added in v1.4.0
func (ComponentUpgrade_UpgradeStatus) Type() protoreflect.EnumType
type ComponentVersion ¶ added in v1.7.0
type ComponentVersion struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*ComponentVersion) Descriptor
deprecated
added in
v1.7.0
func (*ComponentVersion) Descriptor() ([]byte, []int)
Deprecated: Use ComponentVersion.ProtoReflect.Descriptor instead.
func (*ComponentVersion) GetVersion ¶ added in v1.7.0
func (x *ComponentVersion) GetVersion() string
func (*ComponentVersion) ProtoMessage ¶ added in v1.7.0
func (*ComponentVersion) ProtoMessage()
func (*ComponentVersion) ProtoReflect ¶ added in v1.7.0
func (x *ComponentVersion) ProtoReflect() protoreflect.Message
func (*ComponentVersion) Reset ¶ added in v1.7.0
func (x *ComponentVersion) Reset()
func (*ComponentVersion) String ¶ added in v1.7.0
func (x *ComponentVersion) String() string
type DeploymentIssue ¶ added in v1.6.0
type DeploymentIssue struct { IssueType string `protobuf:"bytes,1,opt,name=issueType,proto3" json:"issueType,omitempty"` FailureComponents []*FailureComponent `protobuf:"bytes,2,rep,name=failureComponents,proto3" json:"failureComponents,omitempty"` // contains filtered or unexported fields }
func (*DeploymentIssue) Descriptor
deprecated
added in
v1.6.0
func (*DeploymentIssue) Descriptor() ([]byte, []int)
Deprecated: Use DeploymentIssue.ProtoReflect.Descriptor instead.
func (*DeploymentIssue) GetFailureComponents ¶ added in v1.6.0
func (x *DeploymentIssue) GetFailureComponents() []*FailureComponent
func (*DeploymentIssue) GetIssueType ¶ added in v1.6.0
func (x *DeploymentIssue) GetIssueType() string
func (*DeploymentIssue) ProtoMessage ¶ added in v1.6.0
func (*DeploymentIssue) ProtoMessage()
func (*DeploymentIssue) ProtoReflect ¶ added in v1.6.0
func (x *DeploymentIssue) ProtoReflect() protoreflect.Message
func (*DeploymentIssue) Reset ¶ added in v1.6.0
func (x *DeploymentIssue) Reset()
func (*DeploymentIssue) String ¶ added in v1.6.0
func (x *DeploymentIssue) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶ added in v1.4.0
func (x *Empty) ProtoReflect() protoreflect.Message
type FailureComponent ¶ added in v1.6.0
type FailureComponent struct { ComponentName string `protobuf:"bytes,1,opt,name=componentName,proto3" json:"componentName,omitempty"` FirstFailureContainerName string `protobuf:"bytes,2,opt,name=firstFailureContainerName,proto3" json:"firstFailureContainerName,omitempty"` RestartCount int32 `protobuf:"varint,3,opt,name=restartCount,proto3" json:"restartCount,omitempty"` NodeName string `protobuf:"bytes,4,opt,name=nodeName,proto3" json:"nodeName,omitempty"` // contains filtered or unexported fields }
func (*FailureComponent) Descriptor
deprecated
added in
v1.6.0
func (*FailureComponent) Descriptor() ([]byte, []int)
Deprecated: Use FailureComponent.ProtoReflect.Descriptor instead.
func (*FailureComponent) GetComponentName ¶ added in v1.6.0
func (x *FailureComponent) GetComponentName() string
func (*FailureComponent) GetFirstFailureContainerName ¶ added in v1.6.0
func (x *FailureComponent) GetFirstFailureContainerName() string
func (*FailureComponent) GetNodeName ¶ added in v1.6.0
func (x *FailureComponent) GetNodeName() string
func (*FailureComponent) GetRestartCount ¶ added in v1.6.0
func (x *FailureComponent) GetRestartCount() int32
func (*FailureComponent) ProtoMessage ¶ added in v1.6.0
func (*FailureComponent) ProtoMessage()
func (*FailureComponent) ProtoReflect ¶ added in v1.6.0
func (x *FailureComponent) ProtoReflect() protoreflect.Message
func (*FailureComponent) Reset ¶ added in v1.6.0
func (x *FailureComponent) Reset()
func (*FailureComponent) String ¶ added in v1.6.0
func (x *FailureComponent) 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 Image ¶
type Image struct { Repository string `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
func (*Image) Descriptor
deprecated
func (*Image) GetRepository ¶
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶ added in v1.4.0
func (x *Image) ProtoReflect() protoreflect.Message
type ImageList ¶
type ImageList struct { Images []*Image `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"` // contains filtered or unexported fields }
func (*ImageList) Descriptor
deprecated
func (*ImageList) ProtoMessage ¶
func (*ImageList) ProtoMessage()
func (*ImageList) ProtoReflect ¶ added in v1.4.0
func (x *ImageList) ProtoReflect() protoreflect.Message
type PriorityQueues ¶ added in v1.4.3
type PriorityQueues struct { Queues []string `protobuf:"bytes,1,rep,name=queues,proto3" json:"queues,omitempty"` // contains filtered or unexported fields }
func (*PriorityQueues) Descriptor
deprecated
added in
v1.4.3
func (*PriorityQueues) Descriptor() ([]byte, []int)
Deprecated: Use PriorityQueues.ProtoReflect.Descriptor instead.
func (*PriorityQueues) GetQueues ¶ added in v1.4.3
func (x *PriorityQueues) GetQueues() []string
func (*PriorityQueues) ProtoMessage ¶ added in v1.4.3
func (*PriorityQueues) ProtoMessage()
func (*PriorityQueues) ProtoReflect ¶ added in v1.4.3
func (x *PriorityQueues) ProtoReflect() protoreflect.Message
func (*PriorityQueues) Reset ¶ added in v1.4.3
func (x *PriorityQueues) Reset()
func (*PriorityQueues) String ¶ added in v1.4.3
func (x *PriorityQueues) String() string
type PullRequestConfig ¶ added in v1.7.0
type PullRequestConfig struct { Concurrences int32 `protobuf:"varint,1,opt,name=concurrences,proto3" json:"concurrences,omitempty"` MaxRetry int32 `protobuf:"varint,2,opt,name=maxRetry,proto3" json:"maxRetry,omitempty"` MaxHistoryDays int32 `protobuf:"varint,3,opt,name=maxHistoryDays,proto3" json:"maxHistoryDays,omitempty"` Trigger *PullRequestTriggerConfig `protobuf:"bytes,4,opt,name=trigger,proto3" json:"trigger,omitempty"` // contains filtered or unexported fields }
func (*PullRequestConfig) Descriptor
deprecated
added in
v1.7.0
func (*PullRequestConfig) Descriptor() ([]byte, []int)
Deprecated: Use PullRequestConfig.ProtoReflect.Descriptor instead.
func (*PullRequestConfig) GetConcurrences ¶ added in v1.7.0
func (x *PullRequestConfig) GetConcurrences() int32
func (*PullRequestConfig) GetMaxHistoryDays ¶ added in v1.7.0
func (x *PullRequestConfig) GetMaxHistoryDays() int32
func (*PullRequestConfig) GetMaxRetry ¶ added in v1.7.0
func (x *PullRequestConfig) GetMaxRetry() int32
func (*PullRequestConfig) GetTrigger ¶ added in v1.7.0
func (x *PullRequestConfig) GetTrigger() *PullRequestTriggerConfig
func (*PullRequestConfig) ProtoMessage ¶ added in v1.7.0
func (*PullRequestConfig) ProtoMessage()
func (*PullRequestConfig) ProtoReflect ¶ added in v1.7.0
func (x *PullRequestConfig) ProtoReflect() protoreflect.Message
func (*PullRequestConfig) Reset ¶ added in v1.7.0
func (x *PullRequestConfig) Reset()
func (*PullRequestConfig) String ¶ added in v1.7.0
func (x *PullRequestConfig) String() string
type PullRequestDependencies ¶ added in v1.7.0
type PullRequestDependencies struct { Dependencies []*Component `protobuf:"bytes,1,rep,name=dependencies,proto3" json:"dependencies,omitempty"` // contains filtered or unexported fields }
func (*PullRequestDependencies) Descriptor
deprecated
added in
v1.7.0
func (*PullRequestDependencies) Descriptor() ([]byte, []int)
Deprecated: Use PullRequestDependencies.ProtoReflect.Descriptor instead.
func (*PullRequestDependencies) GetDependencies ¶ added in v1.7.0
func (x *PullRequestDependencies) GetDependencies() []*Component
func (*PullRequestDependencies) ProtoMessage ¶ added in v1.7.0
func (*PullRequestDependencies) ProtoMessage()
func (*PullRequestDependencies) ProtoReflect ¶ added in v1.7.0
func (x *PullRequestDependencies) ProtoReflect() protoreflect.Message
func (*PullRequestDependencies) Reset ¶ added in v1.7.0
func (x *PullRequestDependencies) Reset()
func (*PullRequestDependencies) String ¶ added in v1.7.0
func (x *PullRequestDependencies) String() string
type PullRequestTrigger ¶ added in v1.7.0
type PullRequestTrigger struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` TeamName string `protobuf:"bytes,3,opt,name=teamName,proto3" json:"teamName,omitempty"` Result string `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*PullRequestTrigger) Descriptor
deprecated
added in
v1.7.0
func (*PullRequestTrigger) Descriptor() ([]byte, []int)
Deprecated: Use PullRequestTrigger.ProtoReflect.Descriptor instead.
func (*PullRequestTrigger) GetName ¶ added in v1.7.0
func (x *PullRequestTrigger) GetName() string
func (*PullRequestTrigger) GetNamespace ¶ added in v1.7.0
func (x *PullRequestTrigger) GetNamespace() string
func (*PullRequestTrigger) GetResult ¶ added in v1.7.0
func (x *PullRequestTrigger) GetResult() string
func (*PullRequestTrigger) GetTeamName ¶ added in v1.7.0
func (x *PullRequestTrigger) GetTeamName() string
func (*PullRequestTrigger) ProtoMessage ¶ added in v1.7.0
func (*PullRequestTrigger) ProtoMessage()
func (*PullRequestTrigger) ProtoReflect ¶ added in v1.7.0
func (x *PullRequestTrigger) ProtoReflect() protoreflect.Message
func (*PullRequestTrigger) Reset ¶ added in v1.7.0
func (x *PullRequestTrigger) Reset()
func (*PullRequestTrigger) String ¶ added in v1.7.0
func (x *PullRequestTrigger) String() string
type PullRequestTriggerConfig ¶ added in v1.7.0
type PullRequestTriggerConfig struct { MaxRetry int32 `protobuf:"varint,1,opt,name=maxRetry,proto3" json:"maxRetry,omitempty"` PollingTime string `protobuf:"bytes,2,opt,name=pollingTime,proto3" json:"pollingTime,omitempty"` // contains filtered or unexported fields }
func (*PullRequestTriggerConfig) Descriptor
deprecated
added in
v1.7.0
func (*PullRequestTriggerConfig) Descriptor() ([]byte, []int)
Deprecated: Use PullRequestTriggerConfig.ProtoReflect.Descriptor instead.
func (*PullRequestTriggerConfig) GetMaxRetry ¶ added in v1.7.0
func (x *PullRequestTriggerConfig) GetMaxRetry() int32
func (*PullRequestTriggerConfig) GetPollingTime ¶ added in v1.7.0
func (x *PullRequestTriggerConfig) GetPollingTime() string
func (*PullRequestTriggerConfig) ProtoMessage ¶ added in v1.7.0
func (*PullRequestTriggerConfig) ProtoMessage()
func (*PullRequestTriggerConfig) ProtoReflect ¶ added in v1.7.0
func (x *PullRequestTriggerConfig) ProtoReflect() protoreflect.Message
func (*PullRequestTriggerConfig) Reset ¶ added in v1.7.0
func (x *PullRequestTriggerConfig) Reset()
func (*PullRequestTriggerConfig) String ¶ added in v1.7.0
func (x *PullRequestTriggerConfig) String() string
type RPC ¶
type RPC interface { GetTeamActiveNamespace(context.Context, *TeamName) (*TeamWithNamespace, error) RunPostComponentUpgrade(context.Context, *ComponentUpgrade) (*Empty, error) RunPostPullRequestQueue(context.Context, *ComponentUpgrade) (*Empty, error) RunPostPullRequestTrigger(context.Context, *PullRequestTrigger) (*Empty, error) GetMissingVersions(context.Context, *TeamWithCurrentComponent) (*ImageList, error) SendUpdateStateQueueMetric(context.Context, *ComponentUpgrade) (*Empty, error) GetBundleName(context.Context, *TeamWithComponentName) (*BundleName, error) GetPriorityQueues(context.Context, *TeamName) (*PriorityQueues, error) GetPullRequestComponentDependencies(context.Context, *TeamWithComponentName) (*PullRequestDependencies, error) GetPullRequestConfig(context.Context, *TeamName) (*PullRequestConfig, error) GetPullRequestComponentSource(context.Context, *TeamWithPullRequest) (*ComponentSource, error) GetComponentVersion(context.Context, *ComponentSource) (*ComponentVersion, error) DeployActiveServicesIntoPullRequestEnvironment(context.Context, *TeamWithNamespace) (*Empty, error) CreatePullRequestEnvironment(context.Context, *TeamWithPullRequest) (*Empty, error) DestroyPullRequestEnvironment(context.Context, *TeamWithNamespace) (*Empty, error) }
func NewRPCJSONClient ¶
func NewRPCJSONClient(addr string, client HTTPClient, opts ...twirp.ClientOption) RPC
NewRPCJSONClient creates a JSON client that implements the RPC interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewRPCProtobufClient ¶
func NewRPCProtobufClient(addr string, client HTTPClient, opts ...twirp.ClientOption) RPC
NewRPCProtobufClient creates a Protobuf client that implements the RPC interface. It communicates using Protobuf and can be configured with a custom HTTPClient.
type TeamName ¶ added in v1.4.3
type TeamName struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*TeamName) Descriptor
deprecated
added in
v1.4.3
func (*TeamName) ProtoMessage ¶ added in v1.4.3
func (*TeamName) ProtoMessage()
func (*TeamName) ProtoReflect ¶ added in v1.4.3
func (x *TeamName) ProtoReflect() protoreflect.Message
type TeamWithComponentName ¶ added in v1.4.0
type TeamWithComponentName struct { TeamName string `protobuf:"bytes,1,opt,name=teamName,proto3" json:"teamName,omitempty"` ComponentName string `protobuf:"bytes,2,opt,name=componentName,proto3" json:"componentName,omitempty"` // contains filtered or unexported fields }
func (*TeamWithComponentName) Descriptor
deprecated
added in
v1.4.0
func (*TeamWithComponentName) Descriptor() ([]byte, []int)
Deprecated: Use TeamWithComponentName.ProtoReflect.Descriptor instead.
func (*TeamWithComponentName) GetComponentName ¶ added in v1.4.0
func (x *TeamWithComponentName) GetComponentName() string
func (*TeamWithComponentName) GetTeamName ¶ added in v1.4.0
func (x *TeamWithComponentName) GetTeamName() string
func (*TeamWithComponentName) ProtoMessage ¶ added in v1.4.0
func (*TeamWithComponentName) ProtoMessage()
func (*TeamWithComponentName) ProtoReflect ¶ added in v1.4.0
func (x *TeamWithComponentName) ProtoReflect() protoreflect.Message
func (*TeamWithComponentName) Reset ¶ added in v1.4.0
func (x *TeamWithComponentName) Reset()
func (*TeamWithComponentName) String ¶ added in v1.4.0
func (x *TeamWithComponentName) String() string
type TeamWithCurrentComponent ¶
type TeamWithCurrentComponent struct { TeamName string `protobuf:"bytes,1,opt,name=teamName,proto3" json:"teamName,omitempty"` Components []*Component `protobuf:"bytes,2,rep,name=components,proto3" json:"components,omitempty"` // contains filtered or unexported fields }
func (*TeamWithCurrentComponent) Descriptor
deprecated
func (*TeamWithCurrentComponent) Descriptor() ([]byte, []int)
Deprecated: Use TeamWithCurrentComponent.ProtoReflect.Descriptor instead.
func (*TeamWithCurrentComponent) GetComponents ¶ added in v1.4.0
func (x *TeamWithCurrentComponent) GetComponents() []*Component
func (*TeamWithCurrentComponent) GetTeamName ¶
func (x *TeamWithCurrentComponent) GetTeamName() string
func (*TeamWithCurrentComponent) ProtoMessage ¶
func (*TeamWithCurrentComponent) ProtoMessage()
func (*TeamWithCurrentComponent) ProtoReflect ¶ added in v1.4.0
func (x *TeamWithCurrentComponent) ProtoReflect() protoreflect.Message
func (*TeamWithCurrentComponent) Reset ¶
func (x *TeamWithCurrentComponent) Reset()
func (*TeamWithCurrentComponent) String ¶
func (x *TeamWithCurrentComponent) String() string
type TeamWithNamespace ¶ added in v1.7.0
type TeamWithNamespace struct { TeamName string `protobuf:"bytes,1,opt,name=teamName,proto3" json:"teamName,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*TeamWithNamespace) Descriptor
deprecated
added in
v1.7.0
func (*TeamWithNamespace) Descriptor() ([]byte, []int)
Deprecated: Use TeamWithNamespace.ProtoReflect.Descriptor instead.
func (*TeamWithNamespace) GetNamespace ¶ added in v1.7.0
func (x *TeamWithNamespace) GetNamespace() string
func (*TeamWithNamespace) GetTeamName ¶ added in v1.7.0
func (x *TeamWithNamespace) GetTeamName() string
func (*TeamWithNamespace) ProtoMessage ¶ added in v1.7.0
func (*TeamWithNamespace) ProtoMessage()
func (*TeamWithNamespace) ProtoReflect ¶ added in v1.7.0
func (x *TeamWithNamespace) ProtoReflect() protoreflect.Message
func (*TeamWithNamespace) Reset ¶ added in v1.7.0
func (x *TeamWithNamespace) Reset()
func (*TeamWithNamespace) String ¶ added in v1.7.0
func (x *TeamWithNamespace) String() string
type TeamWithPullRequest ¶ added in v1.7.0
type TeamWithPullRequest struct { TeamName string `protobuf:"bytes,1,opt,name=teamName,proto3" json:"teamName,omitempty"` ComponentName string `protobuf:"bytes,2,opt,name=componentName,proto3" json:"componentName,omitempty"` PRNumber string `protobuf:"bytes,3,opt,name=PRNumber,proto3" json:"PRNumber,omitempty"` Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` MaxRetryQueue int32 `protobuf:"varint,5,opt,name=maxRetryQueue,proto3" json:"maxRetryQueue,omitempty"` // contains filtered or unexported fields }
func (*TeamWithPullRequest) Descriptor
deprecated
added in
v1.7.0
func (*TeamWithPullRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamWithPullRequest.ProtoReflect.Descriptor instead.
func (*TeamWithPullRequest) GetComponentName ¶ added in v1.7.0
func (x *TeamWithPullRequest) GetComponentName() string
func (*TeamWithPullRequest) GetMaxRetryQueue ¶ added in v1.7.0
func (x *TeamWithPullRequest) GetMaxRetryQueue() int32
func (*TeamWithPullRequest) GetNamespace ¶ added in v1.7.0
func (x *TeamWithPullRequest) GetNamespace() string
func (*TeamWithPullRequest) GetPRNumber ¶ added in v1.7.0
func (x *TeamWithPullRequest) GetPRNumber() string
func (*TeamWithPullRequest) GetTeamName ¶ added in v1.7.0
func (x *TeamWithPullRequest) GetTeamName() string
func (*TeamWithPullRequest) ProtoMessage ¶ added in v1.7.0
func (*TeamWithPullRequest) ProtoMessage()
func (*TeamWithPullRequest) ProtoReflect ¶ added in v1.7.0
func (x *TeamWithPullRequest) ProtoReflect() protoreflect.Message
func (*TeamWithPullRequest) Reset ¶ added in v1.7.0
func (x *TeamWithPullRequest) Reset()
func (*TeamWithPullRequest) String ¶ added in v1.7.0
func (x *TeamWithPullRequest) 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 // alongside non-twirp requests on one HTTP listener. 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 NewRPCServer ¶
func NewRPCServer(svc RPC, hooks *twirp.ServerHooks) TwirpServer