gitconfig

package
v4.25.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Overview

Package gitconfig is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	GitConfig_Show_FullMethodName                  = "/gitconfig.GitConfig/Show"
	GitConfig_GlobalConfig_FullMethodName          = "/gitconfig.GitConfig/GlobalConfig"
	GitConfig_ToggleGlobalStatus_FullMethodName    = "/gitconfig.GitConfig/ToggleGlobalStatus"
	GitConfig_Update_FullMethodName                = "/gitconfig.GitConfig/Update"
	GitConfig_GetDefaultChartValues_FullMethodName = "/gitconfig.GitConfig/GetDefaultChartValues"
)

Variables

View Source
var File_gitconfig_gitconfig_proto protoreflect.FileDescriptor
View Source
var GitConfig_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitconfig.GitConfig",
	HandlerType: (*GitConfigServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Show",
			Handler:    _GitConfig_Show_Handler,
		},
		{
			MethodName: "GlobalConfig",
			Handler:    _GitConfig_GlobalConfig_Handler,
		},
		{
			MethodName: "ToggleGlobalStatus",
			Handler:    _GitConfig_ToggleGlobalStatus_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _GitConfig_Update_Handler,
		},
		{
			MethodName: "GetDefaultChartValues",
			Handler:    _GitConfig_GetDefaultChartValues_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gitconfig/gitconfig.proto",
}

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

Functions

func RegisterGitConfigHandler

func RegisterGitConfigHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterGitConfigHandler registers the http handlers for service GitConfig to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterGitConfigHandlerClient

func RegisterGitConfigHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GitConfigClient) error

RegisterGitConfigHandlerClient registers the http handlers for service GitConfig to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "GitConfigClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "GitConfigClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "GitConfigClient" to call the correct interceptors.

func RegisterGitConfigHandlerFromEndpoint

func RegisterGitConfigHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterGitConfigHandlerFromEndpoint is same as RegisterGitConfigHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterGitConfigHandlerServer

func RegisterGitConfigHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GitConfigServer) error

RegisterGitConfigHandlerServer registers the http handlers for service GitConfig to "mux". UnaryRPC :call GitConfigServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterGitConfigHandlerFromEndpoint instead.

func RegisterGitConfigServer

func RegisterGitConfigServer(s grpc.ServiceRegistrar, srv GitConfigServer)

Types

type DefaultChartValuesRequest

type DefaultChartValuesRequest struct {
	GitProjectId int64  `protobuf:"varint,1,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	Branch       string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"`
	// contains filtered or unexported fields
}

func (*DefaultChartValuesRequest) Descriptor deprecated

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

Deprecated: Use DefaultChartValuesRequest.ProtoReflect.Descriptor instead.

func (*DefaultChartValuesRequest) GetBranch

func (x *DefaultChartValuesRequest) GetBranch() string

func (*DefaultChartValuesRequest) GetGitProjectId

func (x *DefaultChartValuesRequest) GetGitProjectId() int64

func (*DefaultChartValuesRequest) ProtoMessage

func (*DefaultChartValuesRequest) ProtoMessage()

func (*DefaultChartValuesRequest) ProtoReflect

func (*DefaultChartValuesRequest) Reset

func (x *DefaultChartValuesRequest) Reset()

func (*DefaultChartValuesRequest) String

func (x *DefaultChartValuesRequest) String() string

func (*DefaultChartValuesRequest) Validate

func (m *DefaultChartValuesRequest) Validate() error

Validate checks the field values on DefaultChartValuesRequest 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 (*DefaultChartValuesRequest) ValidateAll

func (m *DefaultChartValuesRequest) ValidateAll() error

ValidateAll checks the field values on DefaultChartValuesRequest 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 DefaultChartValuesRequestMultiError, or nil if none found.

type DefaultChartValuesRequestMultiError

type DefaultChartValuesRequestMultiError []error

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

func (DefaultChartValuesRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DefaultChartValuesRequestMultiError) Error

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

type DefaultChartValuesRequestValidationError

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

DefaultChartValuesRequestValidationError is the validation error returned by DefaultChartValuesRequest.Validate if the designated constraints aren't met.

func (DefaultChartValuesRequestValidationError) Cause

Cause function returns cause value.

func (DefaultChartValuesRequestValidationError) Error

Error satisfies the builtin error interface

func (DefaultChartValuesRequestValidationError) ErrorName

ErrorName returns error name.

func (DefaultChartValuesRequestValidationError) Field

Field function returns field value.

func (DefaultChartValuesRequestValidationError) Key

Key function returns key value.

func (DefaultChartValuesRequestValidationError) Reason

Reason function returns reason value.

type DefaultChartValuesResponse

type DefaultChartValuesResponse struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*DefaultChartValuesResponse) Descriptor deprecated

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

Deprecated: Use DefaultChartValuesResponse.ProtoReflect.Descriptor instead.

func (*DefaultChartValuesResponse) GetValue

func (x *DefaultChartValuesResponse) GetValue() string

func (*DefaultChartValuesResponse) ProtoMessage

func (*DefaultChartValuesResponse) ProtoMessage()

func (*DefaultChartValuesResponse) ProtoReflect

func (*DefaultChartValuesResponse) Reset

func (x *DefaultChartValuesResponse) Reset()

func (*DefaultChartValuesResponse) String

func (x *DefaultChartValuesResponse) String() string

func (*DefaultChartValuesResponse) Validate

func (m *DefaultChartValuesResponse) Validate() error

Validate checks the field values on DefaultChartValuesResponse 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 (*DefaultChartValuesResponse) ValidateAll

func (m *DefaultChartValuesResponse) ValidateAll() error

ValidateAll checks the field values on DefaultChartValuesResponse 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 DefaultChartValuesResponseMultiError, or nil if none found.

type DefaultChartValuesResponseMultiError

type DefaultChartValuesResponseMultiError []error

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

func (DefaultChartValuesResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DefaultChartValuesResponseMultiError) Error

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

type DefaultChartValuesResponseValidationError

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

DefaultChartValuesResponseValidationError is the validation error returned by DefaultChartValuesResponse.Validate if the designated constraints aren't met.

func (DefaultChartValuesResponseValidationError) Cause

Cause function returns cause value.

func (DefaultChartValuesResponseValidationError) Error

Error satisfies the builtin error interface

func (DefaultChartValuesResponseValidationError) ErrorName

ErrorName returns error name.

func (DefaultChartValuesResponseValidationError) Field

Field function returns field value.

func (DefaultChartValuesResponseValidationError) Key

Key function returns key value.

func (DefaultChartValuesResponseValidationError) Reason

Reason function returns reason value.

type FileRequest

type FileRequest struct {
	GitProjectId string `protobuf:"bytes,1,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	Branch       string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"`
	// contains filtered or unexported fields
}

func (*FileRequest) Descriptor deprecated

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

Deprecated: Use FileRequest.ProtoReflect.Descriptor instead.

func (*FileRequest) GetBranch

func (x *FileRequest) GetBranch() string

func (*FileRequest) GetGitProjectId

func (x *FileRequest) GetGitProjectId() string

func (*FileRequest) ProtoMessage

func (*FileRequest) ProtoMessage()

func (*FileRequest) ProtoReflect

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

func (*FileRequest) Reset

func (x *FileRequest) Reset()

func (*FileRequest) String

func (x *FileRequest) String() string

func (*FileRequest) Validate

func (m *FileRequest) Validate() error

Validate checks the field values on FileRequest 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 (*FileRequest) ValidateAll

func (m *FileRequest) ValidateAll() error

ValidateAll checks the field values on FileRequest 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 FileRequestMultiError, or nil if none found.

type FileRequestMultiError

type FileRequestMultiError []error

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

func (FileRequestMultiError) AllErrors

func (m FileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FileRequestMultiError) Error

func (m FileRequestMultiError) Error() string

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

type FileRequestValidationError

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

FileRequestValidationError is the validation error returned by FileRequest.Validate if the designated constraints aren't met.

func (FileRequestValidationError) Cause

Cause function returns cause value.

func (FileRequestValidationError) Error

Error satisfies the builtin error interface

func (FileRequestValidationError) ErrorName

func (e FileRequestValidationError) ErrorName() string

ErrorName returns error name.

func (FileRequestValidationError) Field

Field function returns field value.

func (FileRequestValidationError) Key

Key function returns key value.

func (FileRequestValidationError) Reason

Reason function returns reason value.

type FileResponse

type FileResponse struct {
	Data     string          `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Type     string          `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Elements []*mars.Element `protobuf:"bytes,3,rep,name=elements,proto3" json:"elements,omitempty"`
	// contains filtered or unexported fields
}

func (*FileResponse) Descriptor deprecated

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

Deprecated: Use FileResponse.ProtoReflect.Descriptor instead.

func (*FileResponse) GetData

func (x *FileResponse) GetData() string

func (*FileResponse) GetElements

func (x *FileResponse) GetElements() []*mars.Element

func (*FileResponse) GetType

func (x *FileResponse) GetType() string

func (*FileResponse) ProtoMessage

func (*FileResponse) ProtoMessage()

func (*FileResponse) ProtoReflect

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

func (*FileResponse) Reset

func (x *FileResponse) Reset()

func (*FileResponse) String

func (x *FileResponse) String() string

func (*FileResponse) Validate

func (m *FileResponse) Validate() error

Validate checks the field values on FileResponse 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 (*FileResponse) ValidateAll

func (m *FileResponse) ValidateAll() error

ValidateAll checks the field values on FileResponse 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 FileResponseMultiError, or nil if none found.

type FileResponseMultiError

type FileResponseMultiError []error

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

func (FileResponseMultiError) AllErrors

func (m FileResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FileResponseMultiError) Error

func (m FileResponseMultiError) Error() string

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

type FileResponseValidationError

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

FileResponseValidationError is the validation error returned by FileResponse.Validate if the designated constraints aren't met.

func (FileResponseValidationError) Cause

Cause function returns cause value.

func (FileResponseValidationError) Error

Error satisfies the builtin error interface

func (FileResponseValidationError) ErrorName

func (e FileResponseValidationError) ErrorName() string

ErrorName returns error name.

func (FileResponseValidationError) Field

Field function returns field value.

func (FileResponseValidationError) Key

Key function returns key value.

func (FileResponseValidationError) Reason

Reason function returns reason value.

type GitConfigClient

type GitConfigClient interface {
	// Show 查看项目配置
	Show(ctx context.Context, in *ShowRequest, opts ...grpc.CallOption) (*ShowResponse, error)
	// GlobalConfig 查看项目 GlobalConfig 配置
	GlobalConfig(ctx context.Context, in *GlobalConfigRequest, opts ...grpc.CallOption) (*GlobalConfigResponse, error)
	// ToggleGlobalStatus 开启/关闭全局配置
	ToggleGlobalStatus(ctx context.Context, in *ToggleGlobalStatusRequest, opts ...grpc.CallOption) (*ToggleGlobalStatusResponse, error)
	// Update 更新全局配置
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
	// GetDefaultChartValues 获取项目 helm charts 的默认 values.yaml
	GetDefaultChartValues(ctx context.Context, in *DefaultChartValuesRequest, opts ...grpc.CallOption) (*DefaultChartValuesResponse, error)
}

GitConfigClient is the client API for GitConfig 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 NewGitConfigClient

func NewGitConfigClient(cc grpc.ClientConnInterface) GitConfigClient

type GitConfigServer

type GitConfigServer interface {
	// Show 查看项目配置
	Show(context.Context, *ShowRequest) (*ShowResponse, error)
	// GlobalConfig 查看项目 GlobalConfig 配置
	GlobalConfig(context.Context, *GlobalConfigRequest) (*GlobalConfigResponse, error)
	// ToggleGlobalStatus 开启/关闭全局配置
	ToggleGlobalStatus(context.Context, *ToggleGlobalStatusRequest) (*ToggleGlobalStatusResponse, error)
	// Update 更新全局配置
	Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
	// GetDefaultChartValues 获取项目 helm charts 的默认 values.yaml
	GetDefaultChartValues(context.Context, *DefaultChartValuesRequest) (*DefaultChartValuesResponse, error)
	// contains filtered or unexported methods
}

GitConfigServer is the server API for GitConfig service. All implementations must embed UnimplementedGitConfigServer for forward compatibility

type GlobalConfigRequest

type GlobalConfigRequest struct {
	GitProjectId int64 `protobuf:"varint,1,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GlobalConfigRequest) Descriptor deprecated

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

Deprecated: Use GlobalConfigRequest.ProtoReflect.Descriptor instead.

func (*GlobalConfigRequest) GetGitProjectId

func (x *GlobalConfigRequest) GetGitProjectId() int64

func (*GlobalConfigRequest) ProtoMessage

func (*GlobalConfigRequest) ProtoMessage()

func (*GlobalConfigRequest) ProtoReflect

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

func (*GlobalConfigRequest) Reset

func (x *GlobalConfigRequest) Reset()

func (*GlobalConfigRequest) String

func (x *GlobalConfigRequest) String() string

func (*GlobalConfigRequest) Validate

func (m *GlobalConfigRequest) Validate() error

Validate checks the field values on GlobalConfigRequest 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 (*GlobalConfigRequest) ValidateAll

func (m *GlobalConfigRequest) ValidateAll() error

ValidateAll checks the field values on GlobalConfigRequest 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 GlobalConfigRequestMultiError, or nil if none found.

type GlobalConfigRequestMultiError

type GlobalConfigRequestMultiError []error

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

func (GlobalConfigRequestMultiError) AllErrors

func (m GlobalConfigRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GlobalConfigRequestMultiError) Error

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

type GlobalConfigRequestValidationError

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

GlobalConfigRequestValidationError is the validation error returned by GlobalConfigRequest.Validate if the designated constraints aren't met.

func (GlobalConfigRequestValidationError) Cause

Cause function returns cause value.

func (GlobalConfigRequestValidationError) Error

Error satisfies the builtin error interface

func (GlobalConfigRequestValidationError) ErrorName

ErrorName returns error name.

func (GlobalConfigRequestValidationError) Field

Field function returns field value.

func (GlobalConfigRequestValidationError) Key

Key function returns key value.

func (GlobalConfigRequestValidationError) Reason

Reason function returns reason value.

type GlobalConfigResponse

type GlobalConfigResponse struct {
	Enabled bool         `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Config  *mars.Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*GlobalConfigResponse) Descriptor deprecated

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

Deprecated: Use GlobalConfigResponse.ProtoReflect.Descriptor instead.

func (*GlobalConfigResponse) GetConfig

func (x *GlobalConfigResponse) GetConfig() *mars.Config

func (*GlobalConfigResponse) GetEnabled

func (x *GlobalConfigResponse) GetEnabled() bool

func (*GlobalConfigResponse) ProtoMessage

func (*GlobalConfigResponse) ProtoMessage()

func (*GlobalConfigResponse) ProtoReflect

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

func (*GlobalConfigResponse) Reset

func (x *GlobalConfigResponse) Reset()

func (*GlobalConfigResponse) String

func (x *GlobalConfigResponse) String() string

func (*GlobalConfigResponse) Validate

func (m *GlobalConfigResponse) Validate() error

Validate checks the field values on GlobalConfigResponse 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 (*GlobalConfigResponse) ValidateAll

func (m *GlobalConfigResponse) ValidateAll() error

ValidateAll checks the field values on GlobalConfigResponse 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 GlobalConfigResponseMultiError, or nil if none found.

type GlobalConfigResponseMultiError

type GlobalConfigResponseMultiError []error

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

func (GlobalConfigResponseMultiError) AllErrors

func (m GlobalConfigResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GlobalConfigResponseMultiError) Error

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

type GlobalConfigResponseValidationError

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

GlobalConfigResponseValidationError is the validation error returned by GlobalConfigResponse.Validate if the designated constraints aren't met.

func (GlobalConfigResponseValidationError) Cause

Cause function returns cause value.

func (GlobalConfigResponseValidationError) Error

Error satisfies the builtin error interface

func (GlobalConfigResponseValidationError) ErrorName

ErrorName returns error name.

func (GlobalConfigResponseValidationError) Field

Field function returns field value.

func (GlobalConfigResponseValidationError) Key

Key function returns key value.

func (GlobalConfigResponseValidationError) Reason

Reason function returns reason value.

type ShowRequest

type ShowRequest struct {
	GitProjectId int64  `protobuf:"varint,1,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	Branch       string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"`
	// contains filtered or unexported fields
}

func (*ShowRequest) Descriptor deprecated

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

Deprecated: Use ShowRequest.ProtoReflect.Descriptor instead.

func (*ShowRequest) GetBranch

func (x *ShowRequest) GetBranch() string

func (*ShowRequest) GetGitProjectId

func (x *ShowRequest) GetGitProjectId() int64

func (*ShowRequest) ProtoMessage

func (*ShowRequest) ProtoMessage()

func (*ShowRequest) ProtoReflect

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

func (*ShowRequest) Reset

func (x *ShowRequest) Reset()

func (*ShowRequest) String

func (x *ShowRequest) String() string

func (*ShowRequest) Validate

func (m *ShowRequest) Validate() error

Validate checks the field values on ShowRequest 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 (*ShowRequest) ValidateAll

func (m *ShowRequest) ValidateAll() error

ValidateAll checks the field values on ShowRequest 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 ShowRequestMultiError, or nil if none found.

type ShowRequestMultiError

type ShowRequestMultiError []error

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

func (ShowRequestMultiError) AllErrors

func (m ShowRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ShowRequestMultiError) Error

func (m ShowRequestMultiError) Error() string

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

type ShowRequestValidationError

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

ShowRequestValidationError is the validation error returned by ShowRequest.Validate if the designated constraints aren't met.

func (ShowRequestValidationError) Cause

Cause function returns cause value.

func (ShowRequestValidationError) Error

Error satisfies the builtin error interface

func (ShowRequestValidationError) ErrorName

func (e ShowRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ShowRequestValidationError) Field

Field function returns field value.

func (ShowRequestValidationError) Key

Key function returns key value.

func (ShowRequestValidationError) Reason

Reason function returns reason value.

type ShowResponse

type ShowResponse struct {
	Branch string       `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"`
	Config *mars.Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*ShowResponse) Descriptor deprecated

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

Deprecated: Use ShowResponse.ProtoReflect.Descriptor instead.

func (*ShowResponse) GetBranch

func (x *ShowResponse) GetBranch() string

func (*ShowResponse) GetConfig

func (x *ShowResponse) GetConfig() *mars.Config

func (*ShowResponse) ProtoMessage

func (*ShowResponse) ProtoMessage()

func (*ShowResponse) ProtoReflect

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

func (*ShowResponse) Reset

func (x *ShowResponse) Reset()

func (*ShowResponse) String

func (x *ShowResponse) String() string

func (*ShowResponse) Validate

func (m *ShowResponse) Validate() error

Validate checks the field values on ShowResponse 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 (*ShowResponse) ValidateAll

func (m *ShowResponse) ValidateAll() error

ValidateAll checks the field values on ShowResponse 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 ShowResponseMultiError, or nil if none found.

type ShowResponseMultiError

type ShowResponseMultiError []error

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

func (ShowResponseMultiError) AllErrors

func (m ShowResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ShowResponseMultiError) Error

func (m ShowResponseMultiError) Error() string

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

type ShowResponseValidationError

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

ShowResponseValidationError is the validation error returned by ShowResponse.Validate if the designated constraints aren't met.

func (ShowResponseValidationError) Cause

Cause function returns cause value.

func (ShowResponseValidationError) Error

Error satisfies the builtin error interface

func (ShowResponseValidationError) ErrorName

func (e ShowResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ShowResponseValidationError) Field

Field function returns field value.

func (ShowResponseValidationError) Key

Key function returns key value.

func (ShowResponseValidationError) Reason

Reason function returns reason value.

type ToggleGlobalStatusRequest

type ToggleGlobalStatusRequest struct {
	GitProjectId int64 `protobuf:"varint,1,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	Enabled      bool  `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*ToggleGlobalStatusRequest) Descriptor deprecated

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

Deprecated: Use ToggleGlobalStatusRequest.ProtoReflect.Descriptor instead.

func (*ToggleGlobalStatusRequest) GetEnabled

func (x *ToggleGlobalStatusRequest) GetEnabled() bool

func (*ToggleGlobalStatusRequest) GetGitProjectId

func (x *ToggleGlobalStatusRequest) GetGitProjectId() int64

func (*ToggleGlobalStatusRequest) ProtoMessage

func (*ToggleGlobalStatusRequest) ProtoMessage()

func (*ToggleGlobalStatusRequest) ProtoReflect

func (*ToggleGlobalStatusRequest) Reset

func (x *ToggleGlobalStatusRequest) Reset()

func (*ToggleGlobalStatusRequest) String

func (x *ToggleGlobalStatusRequest) String() string

func (*ToggleGlobalStatusRequest) Validate

func (m *ToggleGlobalStatusRequest) Validate() error

Validate checks the field values on ToggleGlobalStatusRequest 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 (*ToggleGlobalStatusRequest) ValidateAll

func (m *ToggleGlobalStatusRequest) ValidateAll() error

ValidateAll checks the field values on ToggleGlobalStatusRequest 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 ToggleGlobalStatusRequestMultiError, or nil if none found.

type ToggleGlobalStatusRequestMultiError

type ToggleGlobalStatusRequestMultiError []error

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

func (ToggleGlobalStatusRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ToggleGlobalStatusRequestMultiError) Error

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

type ToggleGlobalStatusRequestValidationError

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

ToggleGlobalStatusRequestValidationError is the validation error returned by ToggleGlobalStatusRequest.Validate if the designated constraints aren't met.

func (ToggleGlobalStatusRequestValidationError) Cause

Cause function returns cause value.

func (ToggleGlobalStatusRequestValidationError) Error

Error satisfies the builtin error interface

func (ToggleGlobalStatusRequestValidationError) ErrorName

ErrorName returns error name.

func (ToggleGlobalStatusRequestValidationError) Field

Field function returns field value.

func (ToggleGlobalStatusRequestValidationError) Key

Key function returns key value.

func (ToggleGlobalStatusRequestValidationError) Reason

Reason function returns reason value.

type ToggleGlobalStatusResponse

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

func (*ToggleGlobalStatusResponse) Descriptor deprecated

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

Deprecated: Use ToggleGlobalStatusResponse.ProtoReflect.Descriptor instead.

func (*ToggleGlobalStatusResponse) ProtoMessage

func (*ToggleGlobalStatusResponse) ProtoMessage()

func (*ToggleGlobalStatusResponse) ProtoReflect

func (*ToggleGlobalStatusResponse) Reset

func (x *ToggleGlobalStatusResponse) Reset()

func (*ToggleGlobalStatusResponse) String

func (x *ToggleGlobalStatusResponse) String() string

func (*ToggleGlobalStatusResponse) Validate

func (m *ToggleGlobalStatusResponse) Validate() error

Validate checks the field values on ToggleGlobalStatusResponse 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 (*ToggleGlobalStatusResponse) ValidateAll

func (m *ToggleGlobalStatusResponse) ValidateAll() error

ValidateAll checks the field values on ToggleGlobalStatusResponse 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 ToggleGlobalStatusResponseMultiError, or nil if none found.

type ToggleGlobalStatusResponseMultiError

type ToggleGlobalStatusResponseMultiError []error

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

func (ToggleGlobalStatusResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ToggleGlobalStatusResponseMultiError) Error

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

type ToggleGlobalStatusResponseValidationError

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

ToggleGlobalStatusResponseValidationError is the validation error returned by ToggleGlobalStatusResponse.Validate if the designated constraints aren't met.

func (ToggleGlobalStatusResponseValidationError) Cause

Cause function returns cause value.

func (ToggleGlobalStatusResponseValidationError) Error

Error satisfies the builtin error interface

func (ToggleGlobalStatusResponseValidationError) ErrorName

ErrorName returns error name.

func (ToggleGlobalStatusResponseValidationError) Field

Field function returns field value.

func (ToggleGlobalStatusResponseValidationError) Key

Key function returns key value.

func (ToggleGlobalStatusResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedGitConfigServer

type UnimplementedGitConfigServer struct {
}

UnimplementedGitConfigServer must be embedded to have forward compatible implementations.

func (UnimplementedGitConfigServer) GetDefaultChartValues

func (UnimplementedGitConfigServer) GlobalConfig

func (UnimplementedGitConfigServer) Show

func (UnimplementedGitConfigServer) Update

type UnsafeGitConfigServer

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

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

type UpdateRequest

type UpdateRequest struct {
	GitProjectId int64        `protobuf:"varint,1,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	Config       *mars.Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetConfig

func (x *UpdateRequest) GetConfig() *mars.Config

func (*UpdateRequest) GetGitProjectId

func (x *UpdateRequest) GetGitProjectId() int64

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

func (*UpdateRequest) Validate

func (m *UpdateRequest) Validate() error

Validate checks the field values on UpdateRequest 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 (*UpdateRequest) ValidateAll

func (m *UpdateRequest) ValidateAll() error

ValidateAll checks the field values on UpdateRequest 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 UpdateRequestMultiError, or nil if none found.

type UpdateRequestMultiError

type UpdateRequestMultiError []error

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

func (UpdateRequestMultiError) AllErrors

func (m UpdateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRequestMultiError) Error

func (m UpdateRequestMultiError) Error() string

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

type UpdateRequestValidationError

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

UpdateRequestValidationError is the validation error returned by UpdateRequest.Validate if the designated constraints aren't met.

func (UpdateRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRequestValidationError) ErrorName

func (e UpdateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateRequestValidationError) Field

Field function returns field value.

func (UpdateRequestValidationError) Key

Key function returns key value.

func (UpdateRequestValidationError) Reason

Reason function returns reason value.

type UpdateResponse

type UpdateResponse struct {
	Config *mars.Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateResponse) Descriptor deprecated

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) GetConfig

func (x *UpdateResponse) GetConfig() *mars.Config

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect

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

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

func (*UpdateResponse) Validate

func (m *UpdateResponse) Validate() error

Validate checks the field values on UpdateResponse 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 (*UpdateResponse) ValidateAll

func (m *UpdateResponse) ValidateAll() error

ValidateAll checks the field values on UpdateResponse 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 UpdateResponseMultiError, or nil if none found.

type UpdateResponseMultiError

type UpdateResponseMultiError []error

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

func (UpdateResponseMultiError) AllErrors

func (m UpdateResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateResponseMultiError) Error

func (m UpdateResponseMultiError) Error() string

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

type UpdateResponseValidationError

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

UpdateResponseValidationError is the validation error returned by UpdateResponse.Validate if the designated constraints aren't met.

func (UpdateResponseValidationError) Cause

Cause function returns cause value.

func (UpdateResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateResponseValidationError) ErrorName

func (e UpdateResponseValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateResponseValidationError) Field

Field function returns field value.

func (UpdateResponseValidationError) Key

Key function returns key value.

func (UpdateResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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