services

package
v0.0.62-CIEDEV-2601.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Browse_ListReleases_FullMethodName     = "/terrarium.release.services.Browse/ListReleases"
	Browse_ListReleaseTypes_FullMethodName = "/terrarium.release.services.Browse/ListReleaseTypes"
	Browse_ListOrganization_FullMethodName = "/terrarium.release.services.Browse/ListOrganization"
)
View Source
const (
	Publisher_Publish_FullMethodName = "/terrarium.release.services.Publisher/Publish"
)

Variables

View Source
var Browse_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "terrarium.release.services.Browse",
	HandlerType: (*BrowseServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListReleases",
			Handler:    _Browse_ListReleases_Handler,
		},
		{
			MethodName: "ListReleaseTypes",
			Handler:    _Browse_ListReleaseTypes_Handler,
		},
		{
			MethodName: "ListOrganization",
			Handler:    _Browse_ListOrganization_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pb/terrarium/release/services/release.proto",
}

Browse_ServiceDesc is the grpc.ServiceDesc for Browse 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_pb_terrarium_release_services_release_proto protoreflect.FileDescriptor
View Source
var Publisher_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "terrarium.release.services.Publisher",
	HandlerType: (*PublisherServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Publish",
			Handler:    _Publisher_Publish_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pb/terrarium/release/services/release.proto",
}

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

Functions

func RegisterBrowseServer

func RegisterBrowseServer(s grpc.ServiceRegistrar, srv BrowseServer)

func RegisterPublisherServer

func RegisterPublisherServer(s grpc.ServiceRegistrar, srv PublisherServer)

Types

type BrowseClient

type BrowseClient interface {
	ListReleases(ctx context.Context, in *ListReleasesRequest, opts ...grpc.CallOption) (*ListReleasesResponse, error)
	ListReleaseTypes(ctx context.Context, in *ListReleaseTypesRequest, opts ...grpc.CallOption) (*ListReleaseTypesResponse, error)
	ListOrganization(ctx context.Context, in *ListOrganizationRequest, opts ...grpc.CallOption) (*ListOrganizationResponse, error)
}

BrowseClient is the client API for Browse 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 NewBrowseClient

func NewBrowseClient(cc grpc.ClientConnInterface) BrowseClient

type BrowseServer

type BrowseServer interface {
	ListReleases(context.Context, *ListReleasesRequest) (*ListReleasesResponse, error)
	ListReleaseTypes(context.Context, *ListReleaseTypesRequest) (*ListReleaseTypesResponse, error)
	ListOrganization(context.Context, *ListOrganizationRequest) (*ListOrganizationResponse, error)
	// contains filtered or unexported methods
}

BrowseServer is the server API for Browse service. All implementations must embed UnimplementedBrowseServer for forward compatibility

type ListOrganizationRequest

type ListOrganizationRequest struct {
	Page *paging.PageInfoRequest `protobuf:"bytes,1,opt,name=page,proto3,oneof" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOrganizationRequest) Descriptor deprecated

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

Deprecated: Use ListOrganizationRequest.ProtoReflect.Descriptor instead.

func (*ListOrganizationRequest) GetPage

func (*ListOrganizationRequest) ProtoMessage

func (*ListOrganizationRequest) ProtoMessage()

func (*ListOrganizationRequest) ProtoReflect

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

func (*ListOrganizationRequest) Reset

func (x *ListOrganizationRequest) Reset()

func (*ListOrganizationRequest) String

func (x *ListOrganizationRequest) String() string

type ListOrganizationResponse

type ListOrganizationResponse struct {
	Organizations []string                 `protobuf:"bytes,1,rep,name=organizations,proto3" json:"organizations,omitempty"`
	Page          *paging.PageInfoResponse `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOrganizationResponse) Descriptor deprecated

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

Deprecated: Use ListOrganizationResponse.ProtoReflect.Descriptor instead.

func (*ListOrganizationResponse) GetOrganizations

func (x *ListOrganizationResponse) GetOrganizations() []string

func (*ListOrganizationResponse) GetPage

func (*ListOrganizationResponse) ProtoMessage

func (*ListOrganizationResponse) ProtoMessage()

func (*ListOrganizationResponse) ProtoReflect

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

func (*ListOrganizationResponse) Reset

func (x *ListOrganizationResponse) Reset()

func (*ListOrganizationResponse) String

func (x *ListOrganizationResponse) String() string

type ListReleaseTypesRequest

type ListReleaseTypesRequest struct {
	Page *paging.PageInfoRequest `protobuf:"bytes,1,opt,name=page,proto3,oneof" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListReleaseTypesRequest) Descriptor deprecated

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

Deprecated: Use ListReleaseTypesRequest.ProtoReflect.Descriptor instead.

func (*ListReleaseTypesRequest) GetPage

func (*ListReleaseTypesRequest) ProtoMessage

func (*ListReleaseTypesRequest) ProtoMessage()

func (*ListReleaseTypesRequest) ProtoReflect

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

func (*ListReleaseTypesRequest) Reset

func (x *ListReleaseTypesRequest) Reset()

func (*ListReleaseTypesRequest) String

func (x *ListReleaseTypesRequest) String() string

type ListReleaseTypesResponse

type ListReleaseTypesResponse struct {
	Types []string                 `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"`
	Page  *paging.PageInfoResponse `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListReleaseTypesResponse) Descriptor deprecated

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

Deprecated: Use ListReleaseTypesResponse.ProtoReflect.Descriptor instead.

func (*ListReleaseTypesResponse) GetPage

func (*ListReleaseTypesResponse) GetTypes

func (x *ListReleaseTypesResponse) GetTypes() []string

func (*ListReleaseTypesResponse) ProtoMessage

func (*ListReleaseTypesResponse) ProtoMessage()

func (*ListReleaseTypesResponse) ProtoReflect

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

func (*ListReleaseTypesResponse) Reset

func (x *ListReleaseTypesResponse) Reset()

func (*ListReleaseTypesResponse) String

func (x *ListReleaseTypesResponse) String() string

type ListReleasesRequest

type ListReleasesRequest struct {
	Types         []string                `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"`
	Organizations []string                `protobuf:"bytes,2,rep,name=organizations,proto3" json:"organizations,omitempty"`
	MaxAgeSeconds *uint64                 `protobuf:"varint,3,opt,name=max_age_seconds,json=maxAgeSeconds,proto3,oneof" json:"max_age_seconds,omitempty"`
	Page          *paging.PageInfoRequest `protobuf:"bytes,4,opt,name=page,proto3,oneof" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListReleasesRequest) Descriptor deprecated

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

Deprecated: Use ListReleasesRequest.ProtoReflect.Descriptor instead.

func (*ListReleasesRequest) GetMaxAgeSeconds

func (x *ListReleasesRequest) GetMaxAgeSeconds() uint64

func (*ListReleasesRequest) GetOrganizations

func (x *ListReleasesRequest) GetOrganizations() []string

func (*ListReleasesRequest) GetPage

func (*ListReleasesRequest) GetTypes

func (x *ListReleasesRequest) GetTypes() []string

func (*ListReleasesRequest) ProtoMessage

func (*ListReleasesRequest) ProtoMessage()

func (*ListReleasesRequest) ProtoReflect

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

func (*ListReleasesRequest) Reset

func (x *ListReleasesRequest) Reset()

func (*ListReleasesRequest) String

func (x *ListReleasesRequest) String() string

type ListReleasesResponse

type ListReleasesResponse struct {
	Releases []*Release               `protobuf:"bytes,1,rep,name=releases,proto3" json:"releases,omitempty"`
	Page     *paging.PageInfoResponse `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListReleasesResponse) Descriptor deprecated

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

Deprecated: Use ListReleasesResponse.ProtoReflect.Descriptor instead.

func (*ListReleasesResponse) GetPage

func (*ListReleasesResponse) GetReleases

func (x *ListReleasesResponse) GetReleases() []*Release

func (*ListReleasesResponse) ProtoMessage

func (*ListReleasesResponse) ProtoMessage()

func (*ListReleasesResponse) ProtoReflect

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

func (*ListReleasesResponse) Reset

func (x *ListReleasesResponse) Reset()

func (*ListReleasesResponse) String

func (x *ListReleasesResponse) String() string

type PublisherClient

type PublisherClient interface {
	Publish(ctx context.Context, in *release.PublishRequest, opts ...grpc.CallOption) (*release.PublishResponse, error)
}

PublisherClient is the client API for Publisher 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 NewPublisherClient

func NewPublisherClient(cc grpc.ClientConnInterface) PublisherClient

type PublisherServer

type PublisherServer interface {
	Publish(context.Context, *release.PublishRequest) (*release.PublishResponse, error)
	// contains filtered or unexported methods
}

PublisherServer is the server API for Publisher service. All implementations must embed UnimplementedPublisherServer for forward compatibility

type Release

type Release struct {
	CreatedAt    string          `protobuf:"bytes,1,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	Type         string          `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Organization string          `protobuf:"bytes,3,opt,name=organization,proto3" json:"organization,omitempty"`
	Name         string          `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Version      string          `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
	Description  string          `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	Links        []*release.Link `protobuf:"bytes,7,rep,name=links,proto3" json:"links,omitempty"`
	// contains filtered or unexported fields
}

func (*Release) Descriptor deprecated

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

Deprecated: Use Release.ProtoReflect.Descriptor instead.

func (*Release) GetCreatedAt

func (x *Release) GetCreatedAt() string

func (*Release) GetDescription

func (x *Release) GetDescription() string
func (x *Release) GetLinks() []*release.Link

func (*Release) GetName

func (x *Release) GetName() string

func (*Release) GetOrganization

func (x *Release) GetOrganization() string

func (*Release) GetType

func (x *Release) GetType() string

func (*Release) GetVersion

func (x *Release) GetVersion() string

func (*Release) ProtoMessage

func (*Release) ProtoMessage()

func (*Release) ProtoReflect

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

func (*Release) Reset

func (x *Release) Reset()

func (*Release) String

func (x *Release) String() string

type UnimplementedBrowseServer

type UnimplementedBrowseServer struct {
}

UnimplementedBrowseServer must be embedded to have forward compatible implementations.

func (UnimplementedBrowseServer) ListOrganization

func (UnimplementedBrowseServer) ListReleaseTypes

func (UnimplementedBrowseServer) ListReleases

type UnimplementedPublisherServer

type UnimplementedPublisherServer struct {
}

UnimplementedPublisherServer must be embedded to have forward compatible implementations.

func (UnimplementedPublisherServer) Publish

type UnsafeBrowseServer

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

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

type UnsafePublisherServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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