pb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_build_proto protoreflect.FileDescriptor

Functions

func BuildServiceClientType

func BuildServiceClientType() reflect.Type

BuildServiceClientType .

func BuildServiceHandlerType

func BuildServiceHandlerType() reflect.Type

BuildServiceHandlerType .

func BuildServiceServerType

func BuildServiceServerType() reflect.Type

BuildServiceServerType .

func RegisterBuildServiceHandler

func RegisterBuildServiceHandler(r http.Router, srv BuildServiceHandler, opts ...http.HandleOption)

RegisterBuildServiceHandler register BuildServiceHandler to http.Router.

func RegisterBuildServiceImp

func RegisterBuildServiceImp(regester transport.Register, srv BuildServiceServer, opts ...transport.ServiceOption)

RegisterBuildServiceImp build.proto

func RegisterBuildServiceServer

func RegisterBuildServiceServer(s grpc1.ServiceRegistrar, srv BuildServiceServer, opts ...grpc1.HandleOption)

func ServiceNames

func ServiceNames(svr ...string) []string

ServiceNames return all service names

func Types

func Types() []reflect.Type

Types

type BuildArtifact

type BuildArtifact struct {
	ID           int64  `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
	Sha256       string `protobuf:"bytes,2,opt,name=sha256,proto3" json:"sha256,omitempty"`
	IdentityText string `protobuf:"bytes,3,opt,name=identityText,proto3" json:"identityText,omitempty"`
	Type         string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Content      string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
	ClusterName  string `protobuf:"bytes,6,opt,name=clusterName,proto3" json:"clusterName,omitempty"`
	PipelineID   uint64 `protobuf:"varint,7,opt,name=pipelineID,proto3" json:"pipelineID,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildArtifact) Descriptor deprecated

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

Deprecated: Use BuildArtifact.ProtoReflect.Descriptor instead.

func (*BuildArtifact) GetClusterName

func (x *BuildArtifact) GetClusterName() string

func (*BuildArtifact) GetContent

func (x *BuildArtifact) GetContent() string

func (*BuildArtifact) GetID

func (x *BuildArtifact) GetID() int64

func (*BuildArtifact) GetIdentityText

func (x *BuildArtifact) GetIdentityText() string

func (*BuildArtifact) GetPipelineID

func (x *BuildArtifact) GetPipelineID() uint64

func (*BuildArtifact) GetSha256

func (x *BuildArtifact) GetSha256() string

func (*BuildArtifact) GetType

func (x *BuildArtifact) GetType() string

func (*BuildArtifact) MarshalJSON

func (m *BuildArtifact) MarshalJSON() ([]byte, error)

BuildArtifact implement json.Marshaler.

func (*BuildArtifact) ProtoMessage

func (*BuildArtifact) ProtoMessage()

func (*BuildArtifact) ProtoReflect

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

func (*BuildArtifact) Reset

func (x *BuildArtifact) Reset()

func (*BuildArtifact) String

func (x *BuildArtifact) String() string

func (*BuildArtifact) UnmarshalJSON

func (m *BuildArtifact) UnmarshalJSON(b []byte) error

BuildArtifact implement json.Marshaler.

func (*BuildArtifact) UnmarshalURLValues

func (m *BuildArtifact) UnmarshalURLValues(prefix string, values url.Values) error

BuildArtifact implement urlenc.URLValuesUnmarshaler.

func (*BuildArtifact) Validate

func (this *BuildArtifact) Validate() error

type BuildArtifactQueryRequest

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

func (*BuildArtifactQueryRequest) Descriptor deprecated

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

Deprecated: Use BuildArtifactQueryRequest.ProtoReflect.Descriptor instead.

func (*BuildArtifactQueryRequest) GetSha

func (x *BuildArtifactQueryRequest) GetSha() string

func (*BuildArtifactQueryRequest) MarshalJSON

func (m *BuildArtifactQueryRequest) MarshalJSON() ([]byte, error)

BuildArtifactQueryRequest implement json.Marshaler.

func (*BuildArtifactQueryRequest) ProtoMessage

func (*BuildArtifactQueryRequest) ProtoMessage()

func (*BuildArtifactQueryRequest) ProtoReflect

func (*BuildArtifactQueryRequest) Reset

func (x *BuildArtifactQueryRequest) Reset()

func (*BuildArtifactQueryRequest) String

func (x *BuildArtifactQueryRequest) String() string

func (*BuildArtifactQueryRequest) UnmarshalJSON

func (m *BuildArtifactQueryRequest) UnmarshalJSON(b []byte) error

BuildArtifactQueryRequest implement json.Marshaler.

func (*BuildArtifactQueryRequest) UnmarshalURLValues

func (m *BuildArtifactQueryRequest) UnmarshalURLValues(prefix string, values url.Values) error

BuildArtifactQueryRequest implement urlenc.URLValuesUnmarshaler.

func (*BuildArtifactQueryRequest) Validate

func (this *BuildArtifactQueryRequest) Validate() error

type BuildArtifactQueryResponse

type BuildArtifactQueryResponse struct {
	Data *BuildArtifact `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildArtifactQueryResponse) Descriptor deprecated

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

Deprecated: Use BuildArtifactQueryResponse.ProtoReflect.Descriptor instead.

func (*BuildArtifactQueryResponse) GetData

func (*BuildArtifactQueryResponse) MarshalJSON

func (m *BuildArtifactQueryResponse) MarshalJSON() ([]byte, error)

BuildArtifactQueryResponse implement json.Marshaler.

func (*BuildArtifactQueryResponse) ProtoMessage

func (*BuildArtifactQueryResponse) ProtoMessage()

func (*BuildArtifactQueryResponse) ProtoReflect

func (*BuildArtifactQueryResponse) Reset

func (x *BuildArtifactQueryResponse) Reset()

func (*BuildArtifactQueryResponse) String

func (x *BuildArtifactQueryResponse) String() string

func (*BuildArtifactQueryResponse) UnmarshalJSON

func (m *BuildArtifactQueryResponse) UnmarshalJSON(b []byte) error

BuildArtifactQueryResponse implement json.Marshaler.

func (*BuildArtifactQueryResponse) UnmarshalURLValues

func (m *BuildArtifactQueryResponse) UnmarshalURLValues(prefix string, values url.Values) error

BuildArtifactQueryResponse implement urlenc.URLValuesUnmarshaler.

func (*BuildArtifactQueryResponse) Validate

func (this *BuildArtifactQueryResponse) Validate() error

type BuildArtifactRegisterRequest

type BuildArtifactRegisterRequest struct {
	Sha          string `protobuf:"bytes,1,opt,name=sha,proto3" json:"sha,omitempty"`
	IdentityText string `protobuf:"bytes,2,opt,name=identityText,proto3" json:"identityText,omitempty"`
	Type         string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Content      string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	ClusterName  string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"`
	PipelineID   uint64 `protobuf:"varint,6,opt,name=pipelineID,proto3" json:"pipelineID,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildArtifactRegisterRequest) Descriptor deprecated

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

Deprecated: Use BuildArtifactRegisterRequest.ProtoReflect.Descriptor instead.

func (*BuildArtifactRegisterRequest) GetClusterName

func (x *BuildArtifactRegisterRequest) GetClusterName() string

func (*BuildArtifactRegisterRequest) GetContent

func (x *BuildArtifactRegisterRequest) GetContent() string

func (*BuildArtifactRegisterRequest) GetIdentityText

func (x *BuildArtifactRegisterRequest) GetIdentityText() string

func (*BuildArtifactRegisterRequest) GetPipelineID

func (x *BuildArtifactRegisterRequest) GetPipelineID() uint64

func (*BuildArtifactRegisterRequest) GetSha

func (*BuildArtifactRegisterRequest) GetType

func (x *BuildArtifactRegisterRequest) GetType() string

func (*BuildArtifactRegisterRequest) MarshalJSON

func (m *BuildArtifactRegisterRequest) MarshalJSON() ([]byte, error)

BuildArtifactRegisterRequest implement json.Marshaler.

func (*BuildArtifactRegisterRequest) ProtoMessage

func (*BuildArtifactRegisterRequest) ProtoMessage()

func (*BuildArtifactRegisterRequest) ProtoReflect

func (*BuildArtifactRegisterRequest) Reset

func (x *BuildArtifactRegisterRequest) Reset()

func (*BuildArtifactRegisterRequest) String

func (*BuildArtifactRegisterRequest) UnmarshalJSON

func (m *BuildArtifactRegisterRequest) UnmarshalJSON(b []byte) error

BuildArtifactRegisterRequest implement json.Marshaler.

func (*BuildArtifactRegisterRequest) UnmarshalURLValues

func (m *BuildArtifactRegisterRequest) UnmarshalURLValues(prefix string, values url.Values) error

BuildArtifactRegisterRequest implement urlenc.URLValuesUnmarshaler.

func (*BuildArtifactRegisterRequest) Validate

func (this *BuildArtifactRegisterRequest) Validate() error

type BuildArtifactRegisterResponse

type BuildArtifactRegisterResponse struct {
	Data *BuildArtifact `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildArtifactRegisterResponse) Descriptor deprecated

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

Deprecated: Use BuildArtifactRegisterResponse.ProtoReflect.Descriptor instead.

func (*BuildArtifactRegisterResponse) GetData

func (*BuildArtifactRegisterResponse) MarshalJSON

func (m *BuildArtifactRegisterResponse) MarshalJSON() ([]byte, error)

BuildArtifactRegisterResponse implement json.Marshaler.

func (*BuildArtifactRegisterResponse) ProtoMessage

func (*BuildArtifactRegisterResponse) ProtoMessage()

func (*BuildArtifactRegisterResponse) ProtoReflect

func (*BuildArtifactRegisterResponse) Reset

func (x *BuildArtifactRegisterResponse) Reset()

func (*BuildArtifactRegisterResponse) String

func (*BuildArtifactRegisterResponse) UnmarshalJSON

func (m *BuildArtifactRegisterResponse) UnmarshalJSON(b []byte) error

BuildArtifactRegisterResponse implement json.Marshaler.

func (*BuildArtifactRegisterResponse) UnmarshalURLValues

func (m *BuildArtifactRegisterResponse) UnmarshalURLValues(prefix string, values url.Values) error

BuildArtifactRegisterResponse implement urlenc.URLValuesUnmarshaler.

func (*BuildArtifactRegisterResponse) Validate

func (this *BuildArtifactRegisterResponse) Validate() error

type BuildCacheReportRequest

type BuildCacheReportRequest struct {
	Action      string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ClusterName string `protobuf:"bytes,3,opt,name=clusterName,proto3" json:"clusterName,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildCacheReportRequest) Descriptor deprecated

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

Deprecated: Use BuildCacheReportRequest.ProtoReflect.Descriptor instead.

func (*BuildCacheReportRequest) GetAction

func (x *BuildCacheReportRequest) GetAction() string

func (*BuildCacheReportRequest) GetClusterName

func (x *BuildCacheReportRequest) GetClusterName() string

func (*BuildCacheReportRequest) GetName

func (x *BuildCacheReportRequest) GetName() string

func (*BuildCacheReportRequest) MarshalJSON

func (m *BuildCacheReportRequest) MarshalJSON() ([]byte, error)

BuildCacheReportRequest implement json.Marshaler.

func (*BuildCacheReportRequest) ProtoMessage

func (*BuildCacheReportRequest) ProtoMessage()

func (*BuildCacheReportRequest) ProtoReflect

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

func (*BuildCacheReportRequest) Reset

func (x *BuildCacheReportRequest) Reset()

func (*BuildCacheReportRequest) String

func (x *BuildCacheReportRequest) String() string

func (*BuildCacheReportRequest) UnmarshalJSON

func (m *BuildCacheReportRequest) UnmarshalJSON(b []byte) error

BuildCacheReportRequest implement json.Marshaler.

func (*BuildCacheReportRequest) UnmarshalURLValues

func (m *BuildCacheReportRequest) UnmarshalURLValues(prefix string, values url.Values) error

BuildCacheReportRequest implement urlenc.URLValuesUnmarshaler.

func (*BuildCacheReportRequest) Validate

func (this *BuildCacheReportRequest) Validate() error

type BuildCacheReportResponse

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

func (*BuildCacheReportResponse) Descriptor deprecated

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

Deprecated: Use BuildCacheReportResponse.ProtoReflect.Descriptor instead.

func (*BuildCacheReportResponse) MarshalJSON

func (m *BuildCacheReportResponse) MarshalJSON() ([]byte, error)

BuildCacheReportResponse implement json.Marshaler.

func (*BuildCacheReportResponse) ProtoMessage

func (*BuildCacheReportResponse) ProtoMessage()

func (*BuildCacheReportResponse) ProtoReflect

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

func (*BuildCacheReportResponse) Reset

func (x *BuildCacheReportResponse) Reset()

func (*BuildCacheReportResponse) String

func (x *BuildCacheReportResponse) String() string

func (*BuildCacheReportResponse) UnmarshalJSON

func (m *BuildCacheReportResponse) UnmarshalJSON(b []byte) error

BuildCacheReportResponse implement json.Marshaler.

func (*BuildCacheReportResponse) UnmarshalURLValues

func (m *BuildCacheReportResponse) UnmarshalURLValues(prefix string, values url.Values) error

BuildCacheReportResponse implement urlenc.URLValuesUnmarshaler.

func (*BuildCacheReportResponse) Validate

func (this *BuildCacheReportResponse) Validate() error

type BuildServiceClient

type BuildServiceClient interface {
	QueryBuildArtifact(ctx context.Context, in *BuildArtifactQueryRequest, opts ...grpc.CallOption) (*BuildArtifactQueryResponse, error)
	RegisterBuildArtifact(ctx context.Context, in *BuildArtifactRegisterRequest, opts ...grpc.CallOption) (*BuildArtifactRegisterResponse, error)
	ReportBuildCache(ctx context.Context, in *BuildCacheReportRequest, opts ...grpc.CallOption) (*BuildCacheReportResponse, error)
}

BuildServiceClient is the client API for BuildService 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.

type BuildServiceHandler

type BuildServiceHandler interface {
	// POST /api/build-artifacts/{sha}
	QueryBuildArtifact(context.Context, *BuildArtifactQueryRequest) (*BuildArtifactQueryResponse, error)
	// POST /api/build-artifacts
	RegisterBuildArtifact(context.Context, *BuildArtifactRegisterRequest) (*BuildArtifactRegisterResponse, error)
	// POST /api/build-caches
	ReportBuildCache(context.Context, *BuildCacheReportRequest) (*BuildCacheReportResponse, error)
}

BuildServiceHandler is the server API for BuildService service.

type BuildServiceServer

BuildServiceServer is the server API for BuildService service. All implementations should embed UnimplementedBuildServiceServer for forward compatibility

type UnimplementedBuildServiceServer

type UnimplementedBuildServiceServer struct {
}

UnimplementedBuildServiceServer should be embedded to have forward compatible implementations.

func (*UnimplementedBuildServiceServer) QueryBuildArtifact

func (*UnimplementedBuildServiceServer) ReportBuildCache

Jump to

Keyboard shortcuts

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