Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCIConditionPluginServer(s grpc.ServiceRegistrar, srv CIConditionPluginServer)
- type CICondition
- type CIConditionClient
- type CIConditionPluginClient
- type CIConditionPluginServer
- type CIConditionServer
- func (c *CIConditionServer) GetCurrentBranch(ctx context.Context, request *GetCurrentBranch_Request) (*GetCurrentBranch_Response, error)
- func (c *CIConditionServer) GetCurrentSHA(ctx context.Context, request *GetCurrentSHA_Request) (*GetCurrentSHA_Response, error)
- func (c *CIConditionServer) Name(ctx context.Context, request *CIName_Request) (*CIName_Response, error)
- func (c *CIConditionServer) RunCondition(ctx context.Context, request *RunCondition_Request) (*RunCondition_Response, error)
- func (c *CIConditionServer) Version(ctx context.Context, request *CIVersion_Request) (*CIVersion_Response, error)
- type CIName
- type CIName_Request
- type CIName_Response
- type CIVersion
- type CIVersion_Request
- type CIVersion_Response
- func (*CIVersion_Response) Descriptor() ([]byte, []int)deprecated
- func (x *CIVersion_Response) GetVersion() string
- func (*CIVersion_Response) ProtoMessage()
- func (x *CIVersion_Response) ProtoReflect() protoreflect.Message
- func (x *CIVersion_Response) Reset()
- func (x *CIVersion_Response) String() string
- type GetCurrentBranch
- type GetCurrentBranch_Request
- type GetCurrentBranch_Response
- func (*GetCurrentBranch_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetCurrentBranch_Response) GetValue() string
- func (*GetCurrentBranch_Response) ProtoMessage()
- func (x *GetCurrentBranch_Response) ProtoReflect() protoreflect.Message
- func (x *GetCurrentBranch_Response) Reset()
- func (x *GetCurrentBranch_Response) String() string
- type GetCurrentSHA
- type GetCurrentSHA_Request
- type GetCurrentSHA_Response
- func (*GetCurrentSHA_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetCurrentSHA_Response) GetValue() string
- func (*GetCurrentSHA_Response) ProtoMessage()
- func (x *GetCurrentSHA_Response) ProtoReflect() protoreflect.Message
- func (x *GetCurrentSHA_Response) Reset()
- func (x *GetCurrentSHA_Response) String() string
- type RunCondition
- type RunCondition_Request
- func (*RunCondition_Request) Descriptor() ([]byte, []int)deprecated
- func (x *RunCondition_Request) GetValue() map[string]string
- func (*RunCondition_Request) ProtoMessage()
- func (x *RunCondition_Request) ProtoReflect() protoreflect.Message
- func (x *RunCondition_Request) Reset()
- func (x *RunCondition_Request) String() string
- type RunCondition_Response
- func (*RunCondition_Response) Descriptor() ([]byte, []int)deprecated
- func (x *RunCondition_Response) GetError() string
- func (*RunCondition_Response) ProtoMessage()
- func (x *RunCondition_Response) ProtoReflect() protoreflect.Message
- func (x *RunCondition_Response) Reset()
- func (x *RunCondition_Response) String() string
- type UnimplementedCIConditionPluginServer
- func (UnimplementedCIConditionPluginServer) GetCurrentBranch(context.Context, *GetCurrentBranch_Request) (*GetCurrentBranch_Response, error)
- func (UnimplementedCIConditionPluginServer) GetCurrentSHA(context.Context, *GetCurrentSHA_Request) (*GetCurrentSHA_Response, error)
- func (UnimplementedCIConditionPluginServer) Name(context.Context, *CIName_Request) (*CIName_Response, error)
- func (UnimplementedCIConditionPluginServer) RunCondition(context.Context, *RunCondition_Request) (*RunCondition_Response, error)
- func (UnimplementedCIConditionPluginServer) Version(context.Context, *CIVersion_Request) (*CIVersion_Response, error)
- type UnsafeCIConditionPluginServer
Constants ¶
const CIConditionPluginName = "ci_condition"
Variables ¶
var CIConditionPlugin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "CIConditionPlugin", HandlerType: (*CIConditionPluginServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Name", Handler: _CIConditionPlugin_Name_Handler, }, { MethodName: "Version", Handler: _CIConditionPlugin_Version_Handler, }, { MethodName: "RunCondition", Handler: _CIConditionPlugin_RunCondition_Handler, }, { MethodName: "GetCurrentBranch", Handler: _CIConditionPlugin_GetCurrentBranch_Handler, }, { MethodName: "GetCurrentSHA", Handler: _CIConditionPlugin_GetCurrentSHA_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/condition/ci_condition.proto", }
CIConditionPlugin_ServiceDesc is the grpc.ServiceDesc for CIConditionPlugin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_condition_ci_condition_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCIConditionPluginServer ¶
func RegisterCIConditionPluginServer(s grpc.ServiceRegistrar, srv CIConditionPluginServer)
Types ¶
type CICondition ¶
type CIConditionClient ¶
type CIConditionClient struct {
Impl CIConditionPluginClient
}
func (*CIConditionClient) GetCurrentBranch ¶
func (c *CIConditionClient) GetCurrentBranch() string
func (*CIConditionClient) GetCurrentSHA ¶
func (c *CIConditionClient) GetCurrentSHA() string
func (*CIConditionClient) Name ¶
func (c *CIConditionClient) Name() string
func (*CIConditionClient) RunCondition ¶
func (c *CIConditionClient) RunCondition(m map[string]string) error
func (*CIConditionClient) Version ¶ added in v2.3.0
func (c *CIConditionClient) Version() string
type CIConditionPluginClient ¶
type CIConditionPluginClient interface { Name(ctx context.Context, in *CIName_Request, opts ...grpc.CallOption) (*CIName_Response, error) Version(ctx context.Context, in *CIVersion_Request, opts ...grpc.CallOption) (*CIVersion_Response, error) RunCondition(ctx context.Context, in *RunCondition_Request, opts ...grpc.CallOption) (*RunCondition_Response, error) GetCurrentBranch(ctx context.Context, in *GetCurrentBranch_Request, opts ...grpc.CallOption) (*GetCurrentBranch_Response, error) GetCurrentSHA(ctx context.Context, in *GetCurrentSHA_Request, opts ...grpc.CallOption) (*GetCurrentSHA_Response, error) }
CIConditionPluginClient is the client API for CIConditionPlugin 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 NewCIConditionPluginClient ¶
func NewCIConditionPluginClient(cc grpc.ClientConnInterface) CIConditionPluginClient
type CIConditionPluginServer ¶
type CIConditionPluginServer interface { Name(context.Context, *CIName_Request) (*CIName_Response, error) Version(context.Context, *CIVersion_Request) (*CIVersion_Response, error) RunCondition(context.Context, *RunCondition_Request) (*RunCondition_Response, error) GetCurrentBranch(context.Context, *GetCurrentBranch_Request) (*GetCurrentBranch_Response, error) GetCurrentSHA(context.Context, *GetCurrentSHA_Request) (*GetCurrentSHA_Response, error) // contains filtered or unexported methods }
CIConditionPluginServer is the server API for CIConditionPlugin service. All implementations must embed UnimplementedCIConditionPluginServer for forward compatibility
type CIConditionServer ¶
type CIConditionServer struct { Impl CICondition UnimplementedCIConditionPluginServer }
func (*CIConditionServer) GetCurrentBranch ¶
func (c *CIConditionServer) GetCurrentBranch(ctx context.Context, request *GetCurrentBranch_Request) (*GetCurrentBranch_Response, error)
func (*CIConditionServer) GetCurrentSHA ¶
func (c *CIConditionServer) GetCurrentSHA(ctx context.Context, request *GetCurrentSHA_Request) (*GetCurrentSHA_Response, error)
func (*CIConditionServer) Name ¶
func (c *CIConditionServer) Name(ctx context.Context, request *CIName_Request) (*CIName_Response, error)
func (*CIConditionServer) RunCondition ¶
func (c *CIConditionServer) RunCondition(ctx context.Context, request *RunCondition_Request) (*RunCondition_Response, error)
func (*CIConditionServer) Version ¶ added in v2.3.0
func (c *CIConditionServer) Version(ctx context.Context, request *CIVersion_Request) (*CIVersion_Response, error)
type CIName ¶
type CIName struct {
// contains filtered or unexported fields
}
func (*CIName) Descriptor
deprecated
func (*CIName) ProtoMessage ¶
func (*CIName) ProtoMessage()
func (*CIName) ProtoReflect ¶
func (x *CIName) ProtoReflect() protoreflect.Message
type CIName_Request ¶
type CIName_Request struct {
// contains filtered or unexported fields
}
func (*CIName_Request) Descriptor
deprecated
func (*CIName_Request) Descriptor() ([]byte, []int)
Deprecated: Use CIName_Request.ProtoReflect.Descriptor instead.
func (*CIName_Request) ProtoMessage ¶
func (*CIName_Request) ProtoMessage()
func (*CIName_Request) ProtoReflect ¶
func (x *CIName_Request) ProtoReflect() protoreflect.Message
func (*CIName_Request) Reset ¶
func (x *CIName_Request) Reset()
func (*CIName_Request) String ¶
func (x *CIName_Request) String() string
type CIName_Response ¶
type CIName_Response struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CIName_Response) Descriptor
deprecated
func (*CIName_Response) Descriptor() ([]byte, []int)
Deprecated: Use CIName_Response.ProtoReflect.Descriptor instead.
func (*CIName_Response) GetName ¶ added in v2.3.0
func (x *CIName_Response) GetName() string
func (*CIName_Response) ProtoMessage ¶
func (*CIName_Response) ProtoMessage()
func (*CIName_Response) ProtoReflect ¶
func (x *CIName_Response) ProtoReflect() protoreflect.Message
func (*CIName_Response) Reset ¶
func (x *CIName_Response) Reset()
func (*CIName_Response) String ¶
func (x *CIName_Response) String() string
type CIVersion ¶ added in v2.3.0
type CIVersion struct {
// contains filtered or unexported fields
}
func (*CIVersion) Descriptor
deprecated
added in
v2.3.0
func (*CIVersion) ProtoMessage ¶ added in v2.3.0
func (*CIVersion) ProtoMessage()
func (*CIVersion) ProtoReflect ¶ added in v2.3.0
func (x *CIVersion) ProtoReflect() protoreflect.Message
type CIVersion_Request ¶ added in v2.3.0
type CIVersion_Request struct {
// contains filtered or unexported fields
}
func (*CIVersion_Request) Descriptor
deprecated
added in
v2.3.0
func (*CIVersion_Request) Descriptor() ([]byte, []int)
Deprecated: Use CIVersion_Request.ProtoReflect.Descriptor instead.
func (*CIVersion_Request) ProtoMessage ¶ added in v2.3.0
func (*CIVersion_Request) ProtoMessage()
func (*CIVersion_Request) ProtoReflect ¶ added in v2.3.0
func (x *CIVersion_Request) ProtoReflect() protoreflect.Message
func (*CIVersion_Request) Reset ¶ added in v2.3.0
func (x *CIVersion_Request) Reset()
func (*CIVersion_Request) String ¶ added in v2.3.0
func (x *CIVersion_Request) String() string
type CIVersion_Response ¶ added in v2.3.0
type CIVersion_Response struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*CIVersion_Response) Descriptor
deprecated
added in
v2.3.0
func (*CIVersion_Response) Descriptor() ([]byte, []int)
Deprecated: Use CIVersion_Response.ProtoReflect.Descriptor instead.
func (*CIVersion_Response) GetVersion ¶ added in v2.3.0
func (x *CIVersion_Response) GetVersion() string
func (*CIVersion_Response) ProtoMessage ¶ added in v2.3.0
func (*CIVersion_Response) ProtoMessage()
func (*CIVersion_Response) ProtoReflect ¶ added in v2.3.0
func (x *CIVersion_Response) ProtoReflect() protoreflect.Message
func (*CIVersion_Response) Reset ¶ added in v2.3.0
func (x *CIVersion_Response) Reset()
func (*CIVersion_Response) String ¶ added in v2.3.0
func (x *CIVersion_Response) String() string
type GetCurrentBranch ¶
type GetCurrentBranch struct {
// contains filtered or unexported fields
}
func (*GetCurrentBranch) Descriptor
deprecated
func (*GetCurrentBranch) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentBranch.ProtoReflect.Descriptor instead.
func (*GetCurrentBranch) ProtoMessage ¶
func (*GetCurrentBranch) ProtoMessage()
func (*GetCurrentBranch) ProtoReflect ¶
func (x *GetCurrentBranch) ProtoReflect() protoreflect.Message
func (*GetCurrentBranch) Reset ¶
func (x *GetCurrentBranch) Reset()
func (*GetCurrentBranch) String ¶
func (x *GetCurrentBranch) String() string
type GetCurrentBranch_Request ¶
type GetCurrentBranch_Request struct {
// contains filtered or unexported fields
}
func (*GetCurrentBranch_Request) Descriptor
deprecated
func (*GetCurrentBranch_Request) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentBranch_Request.ProtoReflect.Descriptor instead.
func (*GetCurrentBranch_Request) ProtoMessage ¶
func (*GetCurrentBranch_Request) ProtoMessage()
func (*GetCurrentBranch_Request) ProtoReflect ¶
func (x *GetCurrentBranch_Request) ProtoReflect() protoreflect.Message
func (*GetCurrentBranch_Request) Reset ¶
func (x *GetCurrentBranch_Request) Reset()
func (*GetCurrentBranch_Request) String ¶
func (x *GetCurrentBranch_Request) String() string
type GetCurrentBranch_Response ¶
type GetCurrentBranch_Response struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*GetCurrentBranch_Response) Descriptor
deprecated
func (*GetCurrentBranch_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentBranch_Response.ProtoReflect.Descriptor instead.
func (*GetCurrentBranch_Response) GetValue ¶
func (x *GetCurrentBranch_Response) GetValue() string
func (*GetCurrentBranch_Response) ProtoMessage ¶
func (*GetCurrentBranch_Response) ProtoMessage()
func (*GetCurrentBranch_Response) ProtoReflect ¶
func (x *GetCurrentBranch_Response) ProtoReflect() protoreflect.Message
func (*GetCurrentBranch_Response) Reset ¶
func (x *GetCurrentBranch_Response) Reset()
func (*GetCurrentBranch_Response) String ¶
func (x *GetCurrentBranch_Response) String() string
type GetCurrentSHA ¶
type GetCurrentSHA struct {
// contains filtered or unexported fields
}
func (*GetCurrentSHA) Descriptor
deprecated
func (*GetCurrentSHA) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentSHA.ProtoReflect.Descriptor instead.
func (*GetCurrentSHA) ProtoMessage ¶
func (*GetCurrentSHA) ProtoMessage()
func (*GetCurrentSHA) ProtoReflect ¶
func (x *GetCurrentSHA) ProtoReflect() protoreflect.Message
func (*GetCurrentSHA) Reset ¶
func (x *GetCurrentSHA) Reset()
func (*GetCurrentSHA) String ¶
func (x *GetCurrentSHA) String() string
type GetCurrentSHA_Request ¶
type GetCurrentSHA_Request struct {
// contains filtered or unexported fields
}
func (*GetCurrentSHA_Request) Descriptor
deprecated
func (*GetCurrentSHA_Request) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentSHA_Request.ProtoReflect.Descriptor instead.
func (*GetCurrentSHA_Request) ProtoMessage ¶
func (*GetCurrentSHA_Request) ProtoMessage()
func (*GetCurrentSHA_Request) ProtoReflect ¶
func (x *GetCurrentSHA_Request) ProtoReflect() protoreflect.Message
func (*GetCurrentSHA_Request) Reset ¶
func (x *GetCurrentSHA_Request) Reset()
func (*GetCurrentSHA_Request) String ¶
func (x *GetCurrentSHA_Request) String() string
type GetCurrentSHA_Response ¶
type GetCurrentSHA_Response struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*GetCurrentSHA_Response) Descriptor
deprecated
func (*GetCurrentSHA_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentSHA_Response.ProtoReflect.Descriptor instead.
func (*GetCurrentSHA_Response) GetValue ¶
func (x *GetCurrentSHA_Response) GetValue() string
func (*GetCurrentSHA_Response) ProtoMessage ¶
func (*GetCurrentSHA_Response) ProtoMessage()
func (*GetCurrentSHA_Response) ProtoReflect ¶
func (x *GetCurrentSHA_Response) ProtoReflect() protoreflect.Message
func (*GetCurrentSHA_Response) Reset ¶
func (x *GetCurrentSHA_Response) Reset()
func (*GetCurrentSHA_Response) String ¶
func (x *GetCurrentSHA_Response) String() string
type RunCondition ¶
type RunCondition struct {
// contains filtered or unexported fields
}
func (*RunCondition) Descriptor
deprecated
func (*RunCondition) Descriptor() ([]byte, []int)
Deprecated: Use RunCondition.ProtoReflect.Descriptor instead.
func (*RunCondition) ProtoMessage ¶
func (*RunCondition) ProtoMessage()
func (*RunCondition) ProtoReflect ¶
func (x *RunCondition) ProtoReflect() protoreflect.Message
func (*RunCondition) Reset ¶
func (x *RunCondition) Reset()
func (*RunCondition) String ¶
func (x *RunCondition) String() string
type RunCondition_Request ¶
type RunCondition_Request struct { Value map[string]string `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
func (*RunCondition_Request) Descriptor
deprecated
func (*RunCondition_Request) Descriptor() ([]byte, []int)
Deprecated: Use RunCondition_Request.ProtoReflect.Descriptor instead.
func (*RunCondition_Request) GetValue ¶
func (x *RunCondition_Request) GetValue() map[string]string
func (*RunCondition_Request) ProtoMessage ¶
func (*RunCondition_Request) ProtoMessage()
func (*RunCondition_Request) ProtoReflect ¶
func (x *RunCondition_Request) ProtoReflect() protoreflect.Message
func (*RunCondition_Request) Reset ¶
func (x *RunCondition_Request) Reset()
func (*RunCondition_Request) String ¶
func (x *RunCondition_Request) String() string
type RunCondition_Response ¶
type RunCondition_Response struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*RunCondition_Response) Descriptor
deprecated
func (*RunCondition_Response) Descriptor() ([]byte, []int)
Deprecated: Use RunCondition_Response.ProtoReflect.Descriptor instead.
func (*RunCondition_Response) GetError ¶
func (x *RunCondition_Response) GetError() string
func (*RunCondition_Response) ProtoMessage ¶
func (*RunCondition_Response) ProtoMessage()
func (*RunCondition_Response) ProtoReflect ¶
func (x *RunCondition_Response) ProtoReflect() protoreflect.Message
func (*RunCondition_Response) Reset ¶
func (x *RunCondition_Response) Reset()
func (*RunCondition_Response) String ¶
func (x *RunCondition_Response) String() string
type UnimplementedCIConditionPluginServer ¶
type UnimplementedCIConditionPluginServer struct { }
UnimplementedCIConditionPluginServer must be embedded to have forward compatible implementations.
func (UnimplementedCIConditionPluginServer) GetCurrentBranch ¶
func (UnimplementedCIConditionPluginServer) GetCurrentBranch(context.Context, *GetCurrentBranch_Request) (*GetCurrentBranch_Response, error)
func (UnimplementedCIConditionPluginServer) GetCurrentSHA ¶
func (UnimplementedCIConditionPluginServer) GetCurrentSHA(context.Context, *GetCurrentSHA_Request) (*GetCurrentSHA_Response, error)
func (UnimplementedCIConditionPluginServer) Name ¶
func (UnimplementedCIConditionPluginServer) Name(context.Context, *CIName_Request) (*CIName_Response, error)
func (UnimplementedCIConditionPluginServer) RunCondition ¶
func (UnimplementedCIConditionPluginServer) RunCondition(context.Context, *RunCondition_Request) (*RunCondition_Response, error)
func (UnimplementedCIConditionPluginServer) Version ¶ added in v2.3.0
func (UnimplementedCIConditionPluginServer) Version(context.Context, *CIVersion_Request) (*CIVersion_Response, error)
type UnsafeCIConditionPluginServer ¶ added in v2.12.0
type UnsafeCIConditionPluginServer interface {
// contains filtered or unexported methods
}
UnsafeCIConditionPluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CIConditionPluginServer will result in compilation errors.