v1

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeRepo_GetCodeRepo_FullMethodName    = "/api.coderepo.v1.CodeRepo/GetCodeRepo"
	CodeRepo_ListCodeRepos_FullMethodName  = "/api.coderepo.v1.CodeRepo/ListCodeRepos"
	CodeRepo_SaveCodeRepo_FullMethodName   = "/api.coderepo.v1.CodeRepo/SaveCodeRepo"
	CodeRepo_DeleteCodeRepo_FullMethodName = "/api.coderepo.v1.CodeRepo/DeleteCodeRepo"
)
View Source
const OperationCodeRepoDeleteCodeRepo = "/api.coderepo.v1.CodeRepo/DeleteCodeRepo"
View Source
const OperationCodeRepoGetCodeRepo = "/api.coderepo.v1.CodeRepo/GetCodeRepo"
View Source
const OperationCodeRepoListCodeRepos = "/api.coderepo.v1.CodeRepo/ListCodeRepos"
View Source
const OperationCodeRepoSaveCodeRepo = "/api.coderepo.v1.CodeRepo/SaveCodeRepo"

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0: "ASSERT_ERROR",
		1: "RESOURCE_NOT_FOUND",
	}
	ErrorReason_value = map[string]int32{
		"ASSERT_ERROR":       0,
		"RESOURCE_NOT_FOUND": 1,
	}
)

Enum value maps for ErrorReason.

View Source
var CodeRepo_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.coderepo.v1.CodeRepo",
	HandlerType: (*CodeRepoServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCodeRepo",
			Handler:    _CodeRepo_GetCodeRepo_Handler,
		},
		{
			MethodName: "ListCodeRepos",
			Handler:    _CodeRepo_ListCodeRepos_Handler,
		},
		{
			MethodName: "SaveCodeRepo",
			Handler:    _CodeRepo_SaveCodeRepo_Handler,
		},
		{
			MethodName: "DeleteCodeRepo",
			Handler:    _CodeRepo_DeleteCodeRepo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "coderepo/v1/coderepo.proto",
}

CodeRepo_ServiceDesc is the grpc.ServiceDesc for CodeRepo service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_coderepo_v1_coderepo_proto protoreflect.FileDescriptor
View Source
var File_coderepo_v1_error_reason_proto protoreflect.FileDescriptor

Functions

func ErrorAssertError

func ErrorAssertError(format string, args ...interface{}) *errors.Error

func ErrorResourceNotFound

func ErrorResourceNotFound(format string, args ...interface{}) *errors.Error

func IsAssertError

func IsAssertError(err error) bool

func IsResourceNotFound

func IsResourceNotFound(err error) bool

func RegisterCodeRepoHTTPServer

func RegisterCodeRepoHTTPServer(s *http.Server, srv CodeRepoHTTPServer)

func RegisterCodeRepoServer

func RegisterCodeRepoServer(s grpc.ServiceRegistrar, srv CodeRepoServer)

Types

type CodeRepoClient

type CodeRepoClient interface {
	GetCodeRepo(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetReply, error)
	ListCodeRepos(ctx context.Context, in *ListsRequest, opts ...grpc.CallOption) (*ListsReply, error)
	SaveCodeRepo(ctx context.Context, in *SaveRequest, opts ...grpc.CallOption) (*SaveReply, error)
	DeleteCodeRepo(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteReply, error)
}

CodeRepoClient is the client API for CodeRepo service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewCodeRepoClient

func NewCodeRepoClient(cc grpc.ClientConnInterface) CodeRepoClient

type CodeRepoHTTPClient

type CodeRepoHTTPClient interface {
	DeleteCodeRepo(ctx context.Context, req *DeleteRequest, opts ...http.CallOption) (rsp *DeleteReply, err error)
	GetCodeRepo(ctx context.Context, req *GetRequest, opts ...http.CallOption) (rsp *GetReply, err error)
	ListCodeRepos(ctx context.Context, req *ListsRequest, opts ...http.CallOption) (rsp *ListsReply, err error)
	SaveCodeRepo(ctx context.Context, req *SaveRequest, opts ...http.CallOption) (rsp *SaveReply, err error)
}

func NewCodeRepoHTTPClient

func NewCodeRepoHTTPClient(client *http.Client) CodeRepoHTTPClient

type CodeRepoHTTPClientImpl

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

func (*CodeRepoHTTPClientImpl) DeleteCodeRepo

func (c *CodeRepoHTTPClientImpl) DeleteCodeRepo(ctx context.Context, in *DeleteRequest, opts ...http.CallOption) (*DeleteReply, error)

func (*CodeRepoHTTPClientImpl) GetCodeRepo

func (c *CodeRepoHTTPClientImpl) GetCodeRepo(ctx context.Context, in *GetRequest, opts ...http.CallOption) (*GetReply, error)

func (*CodeRepoHTTPClientImpl) ListCodeRepos

func (c *CodeRepoHTTPClientImpl) ListCodeRepos(ctx context.Context, in *ListsRequest, opts ...http.CallOption) (*ListsReply, error)

func (*CodeRepoHTTPClientImpl) SaveCodeRepo

func (c *CodeRepoHTTPClientImpl) SaveCodeRepo(ctx context.Context, in *SaveRequest, opts ...http.CallOption) (*SaveReply, error)

type CodeRepoHTTPServer

type CodeRepoHTTPServer interface {
	DeleteCodeRepo(context.Context, *DeleteRequest) (*DeleteReply, error)
	GetCodeRepo(context.Context, *GetRequest) (*GetReply, error)
	ListCodeRepos(context.Context, *ListsRequest) (*ListsReply, error)
	SaveCodeRepo(context.Context, *SaveRequest) (*SaveReply, error)
}

type CodeRepoServer

type CodeRepoServer interface {
	GetCodeRepo(context.Context, *GetRequest) (*GetReply, error)
	ListCodeRepos(context.Context, *ListsRequest) (*ListsReply, error)
	SaveCodeRepo(context.Context, *SaveRequest) (*SaveReply, error)
	DeleteCodeRepo(context.Context, *DeleteRequest) (*DeleteReply, error)
	// contains filtered or unexported methods
}

CodeRepoServer is the server API for CodeRepo service. All implementations must embed UnimplementedCodeRepoServer for forward compatibility

type DeleteReply

type DeleteReply struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,json=message,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

Represents a response to a DeleteRequest message.

func (*DeleteReply) Descriptor deprecated

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

Deprecated: Use DeleteReply.ProtoReflect.Descriptor instead.

func (*DeleteReply) GetMsg

func (x *DeleteReply) GetMsg() string

func (*DeleteReply) ProtoMessage

func (*DeleteReply) ProtoMessage()

func (*DeleteReply) ProtoReflect

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

func (*DeleteReply) Reset

func (x *DeleteReply) Reset()

func (*DeleteReply) String

func (x *DeleteReply) String() string

func (*DeleteReply) Validate

func (m *DeleteReply) Validate() error

Validate checks the field values on DeleteReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteReply) ValidateAll

func (m *DeleteReply) ValidateAll() error

ValidateAll checks the field values on DeleteReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteReplyMultiError, or nil if none found.

type DeleteReplyMultiError

type DeleteReplyMultiError []error

DeleteReplyMultiError is an error wrapping multiple validation errors returned by DeleteReply.ValidateAll() if the designated constraints aren't met.

func (DeleteReplyMultiError) AllErrors

func (m DeleteReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteReplyMultiError) Error

func (m DeleteReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeleteReplyValidationError

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

DeleteReplyValidationError is the validation error returned by DeleteReply.Validate if the designated constraints aren't met.

func (DeleteReplyValidationError) Cause

Cause function returns cause value.

func (DeleteReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteReplyValidationError) ErrorName

func (e DeleteReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteReplyValidationError) Field

Field function returns field value.

func (DeleteReplyValidationError) Key

Key function returns key value.

func (DeleteReplyValidationError) Reason

Reason function returns reason value.

type DeleteRequest

type DeleteRequest struct {
	ProductName       string `protobuf:"bytes,1,opt,name=product_name,proto3" json:"product_name,omitempty"`
	CoderepoName      string `protobuf:"bytes,2,opt,name=coderepoName,json=coderepo_name,proto3" json:"coderepoName,omitempty"`
	InsecureSkipCheck bool   `protobuf:"varint,3,opt,name=insecureSkipCheck,json=insecure_skip_check,proto3" json:"insecureSkipCheck,omitempty"`
	// contains filtered or unexported fields
}

Represents a request to delete a codeRepo manifest.

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetCoderepoName

func (x *DeleteRequest) GetCoderepoName() string

func (*DeleteRequest) GetInsecureSkipCheck

func (x *DeleteRequest) GetInsecureSkipCheck() bool

func (*DeleteRequest) GetProductName

func (x *DeleteRequest) GetProductName() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

func (*DeleteRequest) Validate

func (m *DeleteRequest) Validate() error

Validate checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteRequest) ValidateAll

func (m *DeleteRequest) ValidateAll() error

ValidateAll checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRequestMultiError, or nil if none found.

type DeleteRequestMultiError

type DeleteRequestMultiError []error

DeleteRequestMultiError is an error wrapping multiple validation errors returned by DeleteRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteRequestMultiError) AllErrors

func (m DeleteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRequestMultiError) Error

func (m DeleteRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeleteRequestValidationError

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

DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.

func (DeleteRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRequestValidationError) ErrorName

func (e DeleteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteRequestValidationError) Field

Field function returns field value.

func (DeleteRequestValidationError) Key

Key function returns key value.

func (DeleteRequestValidationError) Reason

Reason function returns reason value.

type ErrorReason

type ErrorReason int32
const (
	ErrorReason_ASSERT_ERROR       ErrorReason = 0
	ErrorReason_RESOURCE_NOT_FOUND ErrorReason = 1
)

func (ErrorReason) Descriptor

func (ErrorReason) Enum

func (x ErrorReason) Enum() *ErrorReason

func (ErrorReason) EnumDescriptor deprecated

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

Deprecated: Use ErrorReason.Descriptor instead.

func (ErrorReason) Number

func (x ErrorReason) Number() protoreflect.EnumNumber

func (ErrorReason) String

func (x ErrorReason) String() string

func (ErrorReason) Type

type GetReply

type GetReply struct {
	Product           string      `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
	Name              string      `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Project           string      `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
	Webhook           *Webhook    `protobuf:"bytes,4,opt,name=webhook,proto3" json:"webhook,omitempty"`
	DeploymentRuntime bool        `protobuf:"varint,5,opt,name=DeploymentRuntime,json=deployment_runtime,proto3" json:"DeploymentRuntime,omitempty"`
	PipelineRuntime   bool        `protobuf:"varint,6,opt,name=PipelineRuntime,json=pipeline_runtime,proto3" json:"PipelineRuntime,omitempty"`
	Git               *GitProject `protobuf:"bytes,7,opt,name=git,proto3" json:"git,omitempty"`
	// contains filtered or unexported fields
}

Define the GetReply message, which includes the product, name, project, webhook, DeploymentRuntime, PipelineRuntime, and GitProject fields.

func (*GetReply) Descriptor deprecated

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

Deprecated: Use GetReply.ProtoReflect.Descriptor instead.

func (*GetReply) GetDeploymentRuntime

func (x *GetReply) GetDeploymentRuntime() bool

func (*GetReply) GetGit

func (x *GetReply) GetGit() *GitProject

func (*GetReply) GetName

func (x *GetReply) GetName() string

func (*GetReply) GetPipelineRuntime

func (x *GetReply) GetPipelineRuntime() bool

func (*GetReply) GetProduct

func (x *GetReply) GetProduct() string

func (*GetReply) GetProject

func (x *GetReply) GetProject() string

func (*GetReply) GetWebhook

func (x *GetReply) GetWebhook() *Webhook

func (*GetReply) ProtoMessage

func (*GetReply) ProtoMessage()

func (*GetReply) ProtoReflect

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

func (*GetReply) Reset

func (x *GetReply) Reset()

func (*GetReply) String

func (x *GetReply) String() string

func (*GetReply) Validate

func (m *GetReply) Validate() error

Validate checks the field values on GetReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetReply) ValidateAll

func (m *GetReply) ValidateAll() error

ValidateAll checks the field values on GetReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetReplyMultiError, or nil if none found.

type GetReplyMultiError

type GetReplyMultiError []error

GetReplyMultiError is an error wrapping multiple validation errors returned by GetReply.ValidateAll() if the designated constraints aren't met.

func (GetReplyMultiError) AllErrors

func (m GetReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetReplyMultiError) Error

func (m GetReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetReplyValidationError

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

GetReplyValidationError is the validation error returned by GetReply.Validate if the designated constraints aren't met.

func (GetReplyValidationError) Cause

func (e GetReplyValidationError) Cause() error

Cause function returns cause value.

func (GetReplyValidationError) Error

func (e GetReplyValidationError) Error() string

Error satisfies the builtin error interface

func (GetReplyValidationError) ErrorName

func (e GetReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetReplyValidationError) Field

func (e GetReplyValidationError) Field() string

Field function returns field value.

func (GetReplyValidationError) Key

func (e GetReplyValidationError) Key() bool

Key function returns key value.

func (GetReplyValidationError) Reason

func (e GetReplyValidationError) Reason() string

Reason function returns reason value.

type GetRequest

type GetRequest struct {
	ProductName  string `protobuf:"bytes,1,opt,name=product_name,proto3" json:"product_name,omitempty"`                    // The product_name field.
	CoderepoName string `protobuf:"bytes,2,opt,name=coderepoName,json=coderepo_name,proto3" json:"coderepoName,omitempty"` // The coderepoName field.
	// contains filtered or unexported fields
}

Define the GetRequest message, which includes the product_name and coderepoName fields.

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetCoderepoName

func (x *GetRequest) GetCoderepoName() string

func (*GetRequest) GetProductName

func (x *GetRequest) GetProductName() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

func (*GetRequest) Validate

func (m *GetRequest) Validate() error

Validate checks the field values on GetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetRequest) ValidateAll

func (m *GetRequest) ValidateAll() error

ValidateAll checks the field values on GetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRequestMultiError, or nil if none found.

type GetRequestMultiError

type GetRequestMultiError []error

GetRequestMultiError is an error wrapping multiple validation errors returned by GetRequest.ValidateAll() if the designated constraints aren't met.

func (GetRequestMultiError) AllErrors

func (m GetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRequestMultiError) Error

func (m GetRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetRequestValidationError

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

GetRequestValidationError is the validation error returned by GetRequest.Validate if the designated constraints aren't met.

func (GetRequestValidationError) Cause

func (e GetRequestValidationError) Cause() error

Cause function returns cause value.

func (GetRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRequestValidationError) ErrorName

func (e GetRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRequestValidationError) Field

Field function returns field value.

func (GetRequestValidationError) Key

Key function returns key value.

func (GetRequestValidationError) Reason

func (e GetRequestValidationError) Reason() string

Reason function returns reason value.

type Git

type Git struct {
	Gitlab *Gitlab `protobuf:"bytes,1,opt,name=gitlab,proto3" json:"gitlab,omitempty"` // The Gitlab field.
	Github *Github `protobuf:"bytes,2,opt,name=github,proto3" json:"github,omitempty"` // The Github field.
	// contains filtered or unexported fields
}

Define the Git message, which includes the Gitlab and Github fields.

func (*Git) Descriptor deprecated

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

Deprecated: Use Git.ProtoReflect.Descriptor instead.

func (*Git) GetGithub

func (x *Git) GetGithub() *Github

func (*Git) GetGitlab

func (x *Git) GetGitlab() *Gitlab

func (*Git) ProtoMessage

func (*Git) ProtoMessage()

func (*Git) ProtoReflect

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

func (*Git) Reset

func (x *Git) Reset()

func (*Git) String

func (x *Git) String() string

func (*Git) Validate

func (m *Git) Validate() error

Validate checks the field values on Git with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Git) ValidateAll

func (m *Git) ValidateAll() error

ValidateAll checks the field values on Git with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GitMultiError, or nil if none found.

type GitMultiError

type GitMultiError []error

GitMultiError is an error wrapping multiple validation errors returned by Git.ValidateAll() if the designated constraints aren't met.

func (GitMultiError) AllErrors

func (m GitMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GitMultiError) Error

func (m GitMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GitProject

type GitProject struct {
	Gitlab *GitlabProject `protobuf:"bytes,1,opt,name=gitlab,proto3" json:"gitlab,omitempty"` // The GitlabProject field.
	Github *GithubProject `protobuf:"bytes,2,opt,name=github,proto3" json:"github,omitempty"` // The GithubProject field.
	// contains filtered or unexported fields
}

Define the GitProject message, which includes the GitlabProject and GithubProject fields.

func (*GitProject) Descriptor deprecated

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

Deprecated: Use GitProject.ProtoReflect.Descriptor instead.

func (*GitProject) GetGithub

func (x *GitProject) GetGithub() *GithubProject

func (*GitProject) GetGitlab

func (x *GitProject) GetGitlab() *GitlabProject

func (*GitProject) ProtoMessage

func (*GitProject) ProtoMessage()

func (*GitProject) ProtoReflect

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

func (*GitProject) Reset

func (x *GitProject) Reset()

func (*GitProject) String

func (x *GitProject) String() string

func (*GitProject) Validate

func (m *GitProject) Validate() error

Validate checks the field values on GitProject with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GitProject) ValidateAll

func (m *GitProject) ValidateAll() error

ValidateAll checks the field values on GitProject with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GitProjectMultiError, or nil if none found.

type GitProjectMultiError

type GitProjectMultiError []error

GitProjectMultiError is an error wrapping multiple validation errors returned by GitProject.ValidateAll() if the designated constraints aren't met.

func (GitProjectMultiError) AllErrors

func (m GitProjectMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GitProjectMultiError) Error

func (m GitProjectMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GitProjectValidationError

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

GitProjectValidationError is the validation error returned by GitProject.Validate if the designated constraints aren't met.

func (GitProjectValidationError) Cause

func (e GitProjectValidationError) Cause() error

Cause function returns cause value.

func (GitProjectValidationError) Error

Error satisfies the builtin error interface

func (GitProjectValidationError) ErrorName

func (e GitProjectValidationError) ErrorName() string

ErrorName returns error name.

func (GitProjectValidationError) Field

Field function returns field value.

func (GitProjectValidationError) Key

Key function returns key value.

func (GitProjectValidationError) Reason

func (e GitProjectValidationError) Reason() string

Reason function returns reason value.

type GitValidationError

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

GitValidationError is the validation error returned by Git.Validate if the designated constraints aren't met.

func (GitValidationError) Cause

func (e GitValidationError) Cause() error

Cause function returns cause value.

func (GitValidationError) Error

func (e GitValidationError) Error() string

Error satisfies the builtin error interface

func (GitValidationError) ErrorName

func (e GitValidationError) ErrorName() string

ErrorName returns error name.

func (GitValidationError) Field

func (e GitValidationError) Field() string

Field function returns field value.

func (GitValidationError) Key

func (e GitValidationError) Key() bool

Key function returns key value.

func (GitValidationError) Reason

func (e GitValidationError) Reason() string

Reason function returns reason value.

type Github

type Github struct {

	// The name of the repository
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The path of the repository
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// The visibility of the repository
	Visibility string `protobuf:"bytes,3,opt,name=visibility,proto3" json:"visibility,omitempty"`
	// The description of the repository
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

Message representing a GitHub repository

func (*Github) Descriptor deprecated

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

Deprecated: Use Github.ProtoReflect.Descriptor instead.

func (*Github) GetDescription

func (x *Github) GetDescription() string

func (*Github) GetName

func (x *Github) GetName() string

func (*Github) GetPath

func (x *Github) GetPath() string

func (*Github) GetVisibility

func (x *Github) GetVisibility() string

func (*Github) ProtoMessage

func (*Github) ProtoMessage()

func (*Github) ProtoReflect

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

func (*Github) Reset

func (x *Github) Reset()

func (*Github) String

func (x *Github) String() string

func (*Github) Validate

func (m *Github) Validate() error

Validate checks the field values on Github with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Github) ValidateAll

func (m *Github) ValidateAll() error

ValidateAll checks the field values on Github with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GithubMultiError, or nil if none found.

type GithubMultiError

type GithubMultiError []error

GithubMultiError is an error wrapping multiple validation errors returned by Github.ValidateAll() if the designated constraints aren't met.

func (GithubMultiError) AllErrors

func (m GithubMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GithubMultiError) Error

func (m GithubMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GithubProject

type GithubProject struct {

	// The name of the project
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The path of the project
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// The visibility of the project
	Visibility string `protobuf:"bytes,3,opt,name=visibility,proto3" json:"visibility,omitempty"`
	// The description of the project
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// The SSH URL of the repository
	SshUrlToRepo string `protobuf:"bytes,5,opt,name=ssh_url_to_repo,proto3" json:"ssh_url_to_repo,omitempty"`
	// The HTTP URL of the repository
	HttpUrlToRepo string `protobuf:"bytes,6,opt,name=http_url_to_repo,proto3" json:"http_url_to_repo,omitempty"`
	// contains filtered or unexported fields
}

Message representing a GitHub project

func (*GithubProject) Descriptor deprecated

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

Deprecated: Use GithubProject.ProtoReflect.Descriptor instead.

func (*GithubProject) GetDescription

func (x *GithubProject) GetDescription() string

func (*GithubProject) GetHttpUrlToRepo

func (x *GithubProject) GetHttpUrlToRepo() string

func (*GithubProject) GetName

func (x *GithubProject) GetName() string

func (*GithubProject) GetPath

func (x *GithubProject) GetPath() string

func (*GithubProject) GetSshUrlToRepo

func (x *GithubProject) GetSshUrlToRepo() string

func (*GithubProject) GetVisibility

func (x *GithubProject) GetVisibility() string

func (*GithubProject) ProtoMessage

func (*GithubProject) ProtoMessage()

func (*GithubProject) ProtoReflect

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

func (*GithubProject) Reset

func (x *GithubProject) Reset()

func (*GithubProject) String

func (x *GithubProject) String() string

func (*GithubProject) Validate

func (m *GithubProject) Validate() error

Validate checks the field values on GithubProject with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GithubProject) ValidateAll

func (m *GithubProject) ValidateAll() error

ValidateAll checks the field values on GithubProject with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GithubProjectMultiError, or nil if none found.

type GithubProjectMultiError

type GithubProjectMultiError []error

GithubProjectMultiError is an error wrapping multiple validation errors returned by GithubProject.ValidateAll() if the designated constraints aren't met.

func (GithubProjectMultiError) AllErrors

func (m GithubProjectMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GithubProjectMultiError) Error

func (m GithubProjectMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GithubProjectValidationError

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

GithubProjectValidationError is the validation error returned by GithubProject.Validate if the designated constraints aren't met.

func (GithubProjectValidationError) Cause

Cause function returns cause value.

func (GithubProjectValidationError) Error

Error satisfies the builtin error interface

func (GithubProjectValidationError) ErrorName

func (e GithubProjectValidationError) ErrorName() string

ErrorName returns error name.

func (GithubProjectValidationError) Field

Field function returns field value.

func (GithubProjectValidationError) Key

Key function returns key value.

func (GithubProjectValidationError) Reason

Reason function returns reason value.

type GithubValidationError

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

GithubValidationError is the validation error returned by Github.Validate if the designated constraints aren't met.

func (GithubValidationError) Cause

func (e GithubValidationError) Cause() error

Cause function returns cause value.

func (GithubValidationError) Error

func (e GithubValidationError) Error() string

Error satisfies the builtin error interface

func (GithubValidationError) ErrorName

func (e GithubValidationError) ErrorName() string

ErrorName returns error name.

func (GithubValidationError) Field

func (e GithubValidationError) Field() string

Field function returns field value.

func (GithubValidationError) Key

func (e GithubValidationError) Key() bool

Key function returns key value.

func (GithubValidationError) Reason

func (e GithubValidationError) Reason() string

Reason function returns reason value.

type Gitlab

type Gitlab struct {

	// The name of the repository
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The path of the repository
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// The visibility of the repository
	Visibility string `protobuf:"bytes,3,opt,name=visibility,proto3" json:"visibility,omitempty"`
	// The description of the repository
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

Message representing a GitLab repository

func (*Gitlab) Descriptor deprecated

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

Deprecated: Use Gitlab.ProtoReflect.Descriptor instead.

func (*Gitlab) GetDescription

func (x *Gitlab) GetDescription() string

func (*Gitlab) GetName

func (x *Gitlab) GetName() string

func (*Gitlab) GetPath

func (x *Gitlab) GetPath() string

func (*Gitlab) GetVisibility

func (x *Gitlab) GetVisibility() string

func (*Gitlab) ProtoMessage

func (*Gitlab) ProtoMessage()

func (*Gitlab) ProtoReflect

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

func (*Gitlab) Reset

func (x *Gitlab) Reset()

func (*Gitlab) String

func (x *Gitlab) String() string

func (*Gitlab) Validate

func (m *Gitlab) Validate() error

Validate checks the field values on Gitlab with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Gitlab) ValidateAll

func (m *Gitlab) ValidateAll() error

ValidateAll checks the field values on Gitlab with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GitlabMultiError, or nil if none found.

type GitlabMultiError

type GitlabMultiError []error

GitlabMultiError is an error wrapping multiple validation errors returned by Gitlab.ValidateAll() if the designated constraints aren't met.

func (GitlabMultiError) AllErrors

func (m GitlabMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GitlabMultiError) Error

func (m GitlabMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GitlabProject

type GitlabProject struct {

	// The name of the project
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The path of the project
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// The visibility of the project
	Visibility string `protobuf:"bytes,3,opt,name=visibility,proto3" json:"visibility,omitempty"`
	// The description of the project
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// The SSH URL of the repository
	SshUrlToRepo string `protobuf:"bytes,5,opt,name=ssh_url_to_repo,proto3" json:"ssh_url_to_repo,omitempty"`
	// The HTTP URL of the repository
	HttpUrlToRepo string `protobuf:"bytes,6,opt,name=http_url_to_repo,proto3" json:"http_url_to_repo,omitempty"`
	// contains filtered or unexported fields
}

Message representing a GitLab project

func (*GitlabProject) Descriptor deprecated

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

Deprecated: Use GitlabProject.ProtoReflect.Descriptor instead.

func (*GitlabProject) GetDescription

func (x *GitlabProject) GetDescription() string

func (*GitlabProject) GetHttpUrlToRepo

func (x *GitlabProject) GetHttpUrlToRepo() string

func (*GitlabProject) GetName

func (x *GitlabProject) GetName() string

func (*GitlabProject) GetPath

func (x *GitlabProject) GetPath() string

func (*GitlabProject) GetSshUrlToRepo

func (x *GitlabProject) GetSshUrlToRepo() string

func (*GitlabProject) GetVisibility

func (x *GitlabProject) GetVisibility() string

func (*GitlabProject) ProtoMessage

func (*GitlabProject) ProtoMessage()

func (*GitlabProject) ProtoReflect

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

func (*GitlabProject) Reset

func (x *GitlabProject) Reset()

func (*GitlabProject) String

func (x *GitlabProject) String() string

func (*GitlabProject) Validate

func (m *GitlabProject) Validate() error

Validate checks the field values on GitlabProject with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GitlabProject) ValidateAll

func (m *GitlabProject) ValidateAll() error

ValidateAll checks the field values on GitlabProject with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GitlabProjectMultiError, or nil if none found.

type GitlabProjectMultiError

type GitlabProjectMultiError []error

GitlabProjectMultiError is an error wrapping multiple validation errors returned by GitlabProject.ValidateAll() if the designated constraints aren't met.

func (GitlabProjectMultiError) AllErrors

func (m GitlabProjectMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GitlabProjectMultiError) Error

func (m GitlabProjectMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GitlabProjectValidationError

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

GitlabProjectValidationError is the validation error returned by GitlabProject.Validate if the designated constraints aren't met.

func (GitlabProjectValidationError) Cause

Cause function returns cause value.

func (GitlabProjectValidationError) Error

Error satisfies the builtin error interface

func (GitlabProjectValidationError) ErrorName

func (e GitlabProjectValidationError) ErrorName() string

ErrorName returns error name.

func (GitlabProjectValidationError) Field

Field function returns field value.

func (GitlabProjectValidationError) Key

Key function returns key value.

func (GitlabProjectValidationError) Reason

Reason function returns reason value.

type GitlabValidationError

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

GitlabValidationError is the validation error returned by Gitlab.Validate if the designated constraints aren't met.

func (GitlabValidationError) Cause

func (e GitlabValidationError) Cause() error

Cause function returns cause value.

func (GitlabValidationError) Error

func (e GitlabValidationError) Error() string

Error satisfies the builtin error interface

func (GitlabValidationError) ErrorName

func (e GitlabValidationError) ErrorName() string

ErrorName returns error name.

func (GitlabValidationError) Field

func (e GitlabValidationError) Field() string

Field function returns field value.

func (GitlabValidationError) Key

func (e GitlabValidationError) Key() bool

Key function returns key value.

func (GitlabValidationError) Reason

func (e GitlabValidationError) Reason() string

Reason function returns reason value.

type ListsReply

type ListsReply struct {
	Items []*GetReply `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

Define the ListsReply message, which includes the repeated items field.

func (*ListsReply) Descriptor deprecated

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

Deprecated: Use ListsReply.ProtoReflect.Descriptor instead.

func (*ListsReply) GetItems

func (x *ListsReply) GetItems() []*GetReply

func (*ListsReply) ProtoMessage

func (*ListsReply) ProtoMessage()

func (*ListsReply) ProtoReflect

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

func (*ListsReply) Reset

func (x *ListsReply) Reset()

func (*ListsReply) String

func (x *ListsReply) String() string

func (*ListsReply) Validate

func (m *ListsReply) Validate() error

Validate checks the field values on ListsReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListsReply) ValidateAll

func (m *ListsReply) ValidateAll() error

ValidateAll checks the field values on ListsReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListsReplyMultiError, or nil if none found.

type ListsReplyMultiError

type ListsReplyMultiError []error

ListsReplyMultiError is an error wrapping multiple validation errors returned by ListsReply.ValidateAll() if the designated constraints aren't met.

func (ListsReplyMultiError) AllErrors

func (m ListsReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListsReplyMultiError) Error

func (m ListsReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListsReplyValidationError

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

ListsReplyValidationError is the validation error returned by ListsReply.Validate if the designated constraints aren't met.

func (ListsReplyValidationError) Cause

func (e ListsReplyValidationError) Cause() error

Cause function returns cause value.

func (ListsReplyValidationError) Error

Error satisfies the builtin error interface

func (ListsReplyValidationError) ErrorName

func (e ListsReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListsReplyValidationError) Field

Field function returns field value.

func (ListsReplyValidationError) Key

Key function returns key value.

func (ListsReplyValidationError) Reason

func (e ListsReplyValidationError) Reason() string

Reason function returns reason value.

type ListsRequest

type ListsRequest struct {

	// To list the product name of the repository.
	ProductName string `protobuf:"bytes,1,opt,name=product_name,proto3" json:"product_name,omitempty"`
	// Filter the list by field.
	// eg: field_selector=project=project1,pipeline_runtime=true,deployment_runtime=false
	// Field Support:
	// project: fuzzy match
	// pipeline_runtime: exact match
	// deployment_runtime: exact match
	FieldSelector string `protobuf:"bytes,2,opt,name=field_selector,proto3" json:"field_selector,omitempty"`
	// contains filtered or unexported fields
}

Request message for listing items

func (*ListsRequest) Descriptor deprecated

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

Deprecated: Use ListsRequest.ProtoReflect.Descriptor instead.

func (*ListsRequest) GetFieldSelector

func (x *ListsRequest) GetFieldSelector() string

func (*ListsRequest) GetProductName

func (x *ListsRequest) GetProductName() string

func (*ListsRequest) ProtoMessage

func (*ListsRequest) ProtoMessage()

func (*ListsRequest) ProtoReflect

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

func (*ListsRequest) Reset

func (x *ListsRequest) Reset()

func (*ListsRequest) String

func (x *ListsRequest) String() string

func (*ListsRequest) Validate

func (m *ListsRequest) Validate() error

Validate checks the field values on ListsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListsRequest) ValidateAll

func (m *ListsRequest) ValidateAll() error

ValidateAll checks the field values on ListsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListsRequestMultiError, or nil if none found.

type ListsRequestMultiError

type ListsRequestMultiError []error

ListsRequestMultiError is an error wrapping multiple validation errors returned by ListsRequest.ValidateAll() if the designated constraints aren't met.

func (ListsRequestMultiError) AllErrors

func (m ListsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListsRequestMultiError) Error

func (m ListsRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListsRequestValidationError

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

ListsRequestValidationError is the validation error returned by ListsRequest.Validate if the designated constraints aren't met.

func (ListsRequestValidationError) Cause

Cause function returns cause value.

func (ListsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListsRequestValidationError) ErrorName

func (e ListsRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListsRequestValidationError) Field

Field function returns field value.

func (ListsRequestValidationError) Key

Key function returns key value.

func (ListsRequestValidationError) Reason

Reason function returns reason value.

type SaveReply

type SaveReply struct {

	// Msg is a message confirming the save.
	Msg string `protobuf:"bytes,1,opt,name=msg,json=message,proto3" json:"msg,omitempty"` // The msg field.
	// contains filtered or unexported fields
}

Define the SaveReply message, which includes the msg field.

func (*SaveReply) Descriptor deprecated

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

Deprecated: Use SaveReply.ProtoReflect.Descriptor instead.

func (*SaveReply) GetMsg

func (x *SaveReply) GetMsg() string

func (*SaveReply) ProtoMessage

func (*SaveReply) ProtoMessage()

func (*SaveReply) ProtoReflect

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

func (*SaveReply) Reset

func (x *SaveReply) Reset()

func (*SaveReply) String

func (x *SaveReply) String() string

func (*SaveReply) Validate

func (m *SaveReply) Validate() error

Validate checks the field values on SaveReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SaveReply) ValidateAll

func (m *SaveReply) ValidateAll() error

ValidateAll checks the field values on SaveReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SaveReplyMultiError, or nil if none found.

type SaveReplyMultiError

type SaveReplyMultiError []error

SaveReplyMultiError is an error wrapping multiple validation errors returned by SaveReply.ValidateAll() if the designated constraints aren't met.

func (SaveReplyMultiError) AllErrors

func (m SaveReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SaveReplyMultiError) Error

func (m SaveReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SaveReplyValidationError

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

SaveReplyValidationError is the validation error returned by SaveReply.Validate if the designated constraints aren't met.

func (SaveReplyValidationError) Cause

func (e SaveReplyValidationError) Cause() error

Cause function returns cause value.

func (SaveReplyValidationError) Error

func (e SaveReplyValidationError) Error() string

Error satisfies the builtin error interface

func (SaveReplyValidationError) ErrorName

func (e SaveReplyValidationError) ErrorName() string

ErrorName returns error name.

func (SaveReplyValidationError) Field

func (e SaveReplyValidationError) Field() string

Field function returns field value.

func (SaveReplyValidationError) Key

Key function returns key value.

func (SaveReplyValidationError) Reason

func (e SaveReplyValidationError) Reason() string

Reason function returns reason value.

type SaveRequest

type SaveRequest struct {
	ProductName       string            `protobuf:"bytes,1,opt,name=product_name,proto3" json:"product_name,omitempty"`
	CoderepoName      string            `protobuf:"bytes,2,opt,name=coderepoName,json=coderepo_name,proto3" json:"coderepoName,omitempty"`
	InsecureSkipCheck bool              `protobuf:"varint,3,opt,name=insecureSkipCheck,json=insecure_skip_check,proto3" json:"insecureSkipCheck,omitempty"`
	Body              *SaveRequest_Body `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

Define the SaveRequest message, which includes the product_name, coderepoName, insecureSkipCheck, and Body fields.

func (*SaveRequest) Descriptor deprecated

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

Deprecated: Use SaveRequest.ProtoReflect.Descriptor instead.

func (*SaveRequest) GetBody

func (x *SaveRequest) GetBody() *SaveRequest_Body

func (*SaveRequest) GetCoderepoName

func (x *SaveRequest) GetCoderepoName() string

func (*SaveRequest) GetInsecureSkipCheck

func (x *SaveRequest) GetInsecureSkipCheck() bool

func (*SaveRequest) GetProductName

func (x *SaveRequest) GetProductName() string

func (*SaveRequest) ProtoMessage

func (*SaveRequest) ProtoMessage()

func (*SaveRequest) ProtoReflect

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

func (*SaveRequest) Reset

func (x *SaveRequest) Reset()

func (*SaveRequest) String

func (x *SaveRequest) String() string

func (*SaveRequest) Validate

func (m *SaveRequest) Validate() error

Validate checks the field values on SaveRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SaveRequest) ValidateAll

func (m *SaveRequest) ValidateAll() error

ValidateAll checks the field values on SaveRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SaveRequestMultiError, or nil if none found.

type SaveRequestMultiError

type SaveRequestMultiError []error

SaveRequestMultiError is an error wrapping multiple validation errors returned by SaveRequest.ValidateAll() if the designated constraints aren't met.

func (SaveRequestMultiError) AllErrors

func (m SaveRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SaveRequestMultiError) Error

func (m SaveRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SaveRequestValidationError

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

SaveRequestValidationError is the validation error returned by SaveRequest.Validate if the designated constraints aren't met.

func (SaveRequestValidationError) Cause

Cause function returns cause value.

func (SaveRequestValidationError) Error

Error satisfies the builtin error interface

func (SaveRequestValidationError) ErrorName

func (e SaveRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SaveRequestValidationError) Field

Field function returns field value.

func (SaveRequestValidationError) Key

Key function returns key value.

func (SaveRequestValidationError) Reason

Reason function returns reason value.

type SaveRequest_Body

type SaveRequest_Body struct {
	Project           string   `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	Webhook           *Webhook `protobuf:"bytes,2,opt,name=webhook,proto3" json:"webhook,omitempty"`
	DeploymentRuntime bool     `protobuf:"varint,3,opt,name=DeploymentRuntime,json=deployment_runtime,proto3" json:"DeploymentRuntime,omitempty"`
	PipelineRuntime   bool     `protobuf:"varint,4,opt,name=PipelineRuntime,json=pipeline_runtime,proto3" json:"PipelineRuntime,omitempty"`
	// You must fill in the parameters related to gitlab or github
	Git *Git `protobuf:"bytes,5,opt,name=git,proto3" json:"git,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveRequest_Body) Descriptor deprecated

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

Deprecated: Use SaveRequest_Body.ProtoReflect.Descriptor instead.

func (*SaveRequest_Body) GetDeploymentRuntime

func (x *SaveRequest_Body) GetDeploymentRuntime() bool

func (*SaveRequest_Body) GetGit

func (x *SaveRequest_Body) GetGit() *Git

func (*SaveRequest_Body) GetPipelineRuntime

func (x *SaveRequest_Body) GetPipelineRuntime() bool

func (*SaveRequest_Body) GetProject

func (x *SaveRequest_Body) GetProject() string

func (*SaveRequest_Body) GetWebhook

func (x *SaveRequest_Body) GetWebhook() *Webhook

func (*SaveRequest_Body) ProtoMessage

func (*SaveRequest_Body) ProtoMessage()

func (*SaveRequest_Body) ProtoReflect

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

func (*SaveRequest_Body) Reset

func (x *SaveRequest_Body) Reset()

func (*SaveRequest_Body) String

func (x *SaveRequest_Body) String() string

func (*SaveRequest_Body) Validate

func (m *SaveRequest_Body) Validate() error

Validate checks the field values on SaveRequest_Body with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SaveRequest_Body) ValidateAll

func (m *SaveRequest_Body) ValidateAll() error

ValidateAll checks the field values on SaveRequest_Body with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SaveRequest_BodyMultiError, or nil if none found.

type SaveRequest_BodyMultiError

type SaveRequest_BodyMultiError []error

SaveRequest_BodyMultiError is an error wrapping multiple validation errors returned by SaveRequest_Body.ValidateAll() if the designated constraints aren't met.

func (SaveRequest_BodyMultiError) AllErrors

func (m SaveRequest_BodyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SaveRequest_BodyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SaveRequest_BodyValidationError

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

SaveRequest_BodyValidationError is the validation error returned by SaveRequest_Body.Validate if the designated constraints aren't met.

func (SaveRequest_BodyValidationError) Cause

Cause function returns cause value.

func (SaveRequest_BodyValidationError) Error

Error satisfies the builtin error interface

func (SaveRequest_BodyValidationError) ErrorName

ErrorName returns error name.

func (SaveRequest_BodyValidationError) Field

Field function returns field value.

func (SaveRequest_BodyValidationError) Key

Key function returns key value.

func (SaveRequest_BodyValidationError) Reason

Reason function returns reason value.

type UnimplementedCodeRepoServer

type UnimplementedCodeRepoServer struct {
}

UnimplementedCodeRepoServer must be embedded to have forward compatible implementations.

func (UnimplementedCodeRepoServer) DeleteCodeRepo

func (UnimplementedCodeRepoServer) GetCodeRepo

func (UnimplementedCodeRepoServer) ListCodeRepos

func (UnimplementedCodeRepoServer) SaveCodeRepo

type UnsafeCodeRepoServer

type UnsafeCodeRepoServer interface {
	// contains filtered or unexported methods
}

UnsafeCodeRepoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CodeRepoServer will result in compilation errors.

type Webhook

type Webhook struct {

	// The events that the webhook should trigger on
	Events []string `protobuf:"bytes,1,rep,name=Events,json=events,proto3" json:"Events,omitempty"`
	// contains filtered or unexported fields
}

Message representing a webhook

func (*Webhook) Descriptor deprecated

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

Deprecated: Use Webhook.ProtoReflect.Descriptor instead.

func (*Webhook) GetEvents

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

func (*Webhook) ProtoMessage

func (*Webhook) ProtoMessage()

func (*Webhook) ProtoReflect

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

func (*Webhook) Reset

func (x *Webhook) Reset()

func (*Webhook) String

func (x *Webhook) String() string

func (*Webhook) Validate

func (m *Webhook) Validate() error

Validate checks the field values on Webhook with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Webhook) ValidateAll

func (m *Webhook) ValidateAll() error

ValidateAll checks the field values on Webhook with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WebhookMultiError, or nil if none found.

type WebhookMultiError

type WebhookMultiError []error

WebhookMultiError is an error wrapping multiple validation errors returned by Webhook.ValidateAll() if the designated constraints aren't met.

func (WebhookMultiError) AllErrors

func (m WebhookMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WebhookMultiError) Error

func (m WebhookMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type WebhookValidationError

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

WebhookValidationError is the validation error returned by Webhook.Validate if the designated constraints aren't met.

func (WebhookValidationError) Cause

func (e WebhookValidationError) Cause() error

Cause function returns cause value.

func (WebhookValidationError) Error

func (e WebhookValidationError) Error() string

Error satisfies the builtin error interface

func (WebhookValidationError) ErrorName

func (e WebhookValidationError) ErrorName() string

ErrorName returns error name.

func (WebhookValidationError) Field

func (e WebhookValidationError) Field() string

Field function returns field value.

func (WebhookValidationError) Key

func (e WebhookValidationError) Key() bool

Key function returns key value.

func (WebhookValidationError) Reason

func (e WebhookValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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