Documentation
¶
Index ¶
- Variables
- func RegisterAPIResourcesServer(s grpc.ServiceRegistrar, srv APIResourcesServer)
- type APIResourcesClient
- type APIResourcesServer
- type GVK
- type GVKRef
- func (*GVKRef) Descriptor() ([]byte, []int)deprecated
- func (x *GVKRef) GetGvk() *GVK
- func (x *GVKRef) GetPackageRevisions() []*PackageRevision
- func (x *GVKRef) GetType() GVKRefType
- func (*GVKRef) ProtoMessage()
- func (x *GVKRef) ProtoReflect() protoreflect.Message
- func (x *GVKRef) Reset()
- func (x *GVKRef) String() string
- type GVKRefType
- type Get
- type Get_Request
- type Get_Response
- type PackageRevision
- func (*PackageRevision) Descriptor() ([]byte, []int)deprecated
- func (x *PackageRevision) GetName() string
- func (x *PackageRevision) GetPackage() string
- func (x *PackageRevision) GetRepository() string
- func (x *PackageRevision) GetRevision() string
- func (x *PackageRevision) GetWorkspace() string
- func (*PackageRevision) ProtoMessage()
- func (x *PackageRevision) ProtoReflect() protoreflect.Message
- func (x *PackageRevision) Reset()
- func (x *PackageRevision) String() string
- type UnimplementedAPIResourcesServer
- type UnsafeAPIResourcesServer
Constants ¶
This section is empty.
Variables ¶
var ( GVKRefType_name = map[int32]string{ 0: "UNKNOWN", 1: "ROOT", 2: "PACKAGE", } GVKRefType_value = map[string]int32{ "UNKNOWN": 0, "ROOT": 1, "PACKAGE": 2, } )
Enum value maps for GVKRefType.
var APIResources_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.APIResources", HandlerType: (*APIResourcesServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _APIResources_Get_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/pkginventory/api/api.proto", }
APIResources_ServiceDesc is the grpc.ServiceDesc for APIResources 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_pkginventory_api_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAPIResourcesServer ¶
func RegisterAPIResourcesServer(s grpc.ServiceRegistrar, srv APIResourcesServer)
Types ¶
type APIResourcesClient ¶
type APIResourcesClient interface {
Get(ctx context.Context, in *Get_Request, opts ...grpc.CallOption) (*Get_Response, error)
}
APIResourcesClient is the client API for APIResources 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 NewAPIResourcesClient ¶
func NewAPIResourcesClient(cc grpc.ClientConnInterface) APIResourcesClient
type APIResourcesServer ¶
type APIResourcesServer interface { Get(context.Context, *Get_Request) (*Get_Response, error) // contains filtered or unexported methods }
APIResourcesServer is the server API for APIResources service. All implementations must embed UnimplementedAPIResourcesServer for forward compatibility
type GVK ¶
type GVK struct { ApiVersion string `protobuf:"bytes,1,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*GVK) Descriptor
deprecated
func (*GVK) GetApiVersion ¶
func (*GVK) ProtoMessage ¶
func (*GVK) ProtoMessage()
func (*GVK) ProtoReflect ¶
func (x *GVK) ProtoReflect() protoreflect.Message
type GVKRef ¶
type GVKRef struct { Gvk *GVK `protobuf:"bytes,1,opt,name=gvk,proto3" json:"gvk,omitempty"` Type GVKRefType `protobuf:"varint,2,opt,name=type,proto3,enum=api.GVKRefType" json:"type,omitempty"` PackageRevisions []*PackageRevision `protobuf:"bytes,3,rep,name=packageRevisions,proto3" json:"packageRevisions,omitempty"` // contains filtered or unexported fields }
func (*GVKRef) Descriptor
deprecated
func (*GVKRef) GetPackageRevisions ¶
func (x *GVKRef) GetPackageRevisions() []*PackageRevision
func (*GVKRef) GetType ¶
func (x *GVKRef) GetType() GVKRefType
func (*GVKRef) ProtoMessage ¶
func (*GVKRef) ProtoMessage()
func (*GVKRef) ProtoReflect ¶
func (x *GVKRef) ProtoReflect() protoreflect.Message
type GVKRefType ¶
type GVKRefType int32
const ( GVKRefType_UNKNOWN GVKRefType = 0 GVKRefType_ROOT GVKRefType = 1 GVKRefType_PACKAGE GVKRefType = 2 )
func (GVKRefType) Descriptor ¶
func (GVKRefType) Descriptor() protoreflect.EnumDescriptor
func (GVKRefType) Enum ¶
func (x GVKRefType) Enum() *GVKRefType
func (GVKRefType) EnumDescriptor
deprecated
func (GVKRefType) EnumDescriptor() ([]byte, []int)
Deprecated: Use GVKRefType.Descriptor instead.
func (GVKRefType) Number ¶
func (x GVKRefType) Number() protoreflect.EnumNumber
func (GVKRefType) String ¶
func (x GVKRefType) String() string
func (GVKRefType) Type ¶
func (GVKRefType) Type() protoreflect.EnumType
type Get ¶
type Get struct {
// contains filtered or unexported fields
}
func (*Get) Descriptor
deprecated
func (*Get) ProtoMessage ¶
func (*Get) ProtoMessage()
func (*Get) ProtoReflect ¶
func (x *Get) ProtoReflect() protoreflect.Message
type Get_Request ¶
type Get_Request struct { Gvks []*GVK `protobuf:"bytes,1,rep,name=gvks,proto3" json:"gvks,omitempty"` // contains filtered or unexported fields }
func (*Get_Request) Descriptor
deprecated
func (*Get_Request) Descriptor() ([]byte, []int)
Deprecated: Use Get_Request.ProtoReflect.Descriptor instead.
func (*Get_Request) GetGvks ¶
func (x *Get_Request) GetGvks() []*GVK
func (*Get_Request) ProtoMessage ¶
func (*Get_Request) ProtoMessage()
func (*Get_Request) ProtoReflect ¶
func (x *Get_Request) ProtoReflect() protoreflect.Message
func (*Get_Request) Reset ¶
func (x *Get_Request) Reset()
func (*Get_Request) String ¶
func (x *Get_Request) String() string
type Get_Response ¶
type Get_Response struct { GvkRefs []*GVKRef `protobuf:"bytes,1,rep,name=gvkRefs,proto3" json:"gvkRefs,omitempty"` // contains filtered or unexported fields }
func (*Get_Response) Descriptor
deprecated
func (*Get_Response) Descriptor() ([]byte, []int)
Deprecated: Use Get_Response.ProtoReflect.Descriptor instead.
func (*Get_Response) GetGvkRefs ¶
func (x *Get_Response) GetGvkRefs() []*GVKRef
func (*Get_Response) ProtoMessage ¶
func (*Get_Response) ProtoMessage()
func (*Get_Response) ProtoReflect ¶
func (x *Get_Response) ProtoReflect() protoreflect.Message
func (*Get_Response) Reset ¶
func (x *Get_Response) Reset()
func (*Get_Response) String ¶
func (x *Get_Response) String() string
type PackageRevision ¶
type PackageRevision struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"` Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` Repository string `protobuf:"bytes,4,opt,name=repository,proto3" json:"repository,omitempty"` Workspace string `protobuf:"bytes,5,opt,name=workspace,proto3" json:"workspace,omitempty"` // contains filtered or unexported fields }
func (*PackageRevision) Descriptor
deprecated
func (*PackageRevision) Descriptor() ([]byte, []int)
Deprecated: Use PackageRevision.ProtoReflect.Descriptor instead.
func (*PackageRevision) GetName ¶
func (x *PackageRevision) GetName() string
func (*PackageRevision) GetPackage ¶
func (x *PackageRevision) GetPackage() string
func (*PackageRevision) GetRepository ¶
func (x *PackageRevision) GetRepository() string
func (*PackageRevision) GetRevision ¶
func (x *PackageRevision) GetRevision() string
func (*PackageRevision) GetWorkspace ¶
func (x *PackageRevision) GetWorkspace() string
func (*PackageRevision) ProtoMessage ¶
func (*PackageRevision) ProtoMessage()
func (*PackageRevision) ProtoReflect ¶
func (x *PackageRevision) ProtoReflect() protoreflect.Message
func (*PackageRevision) Reset ¶
func (x *PackageRevision) Reset()
func (*PackageRevision) String ¶
func (x *PackageRevision) String() string
type UnimplementedAPIResourcesServer ¶
type UnimplementedAPIResourcesServer struct { }
UnimplementedAPIResourcesServer must be embedded to have forward compatible implementations.
func (UnimplementedAPIResourcesServer) Get ¶
func (UnimplementedAPIResourcesServer) Get(context.Context, *Get_Request) (*Get_Response, error)
type UnsafeAPIResourcesServer ¶
type UnsafeAPIResourcesServer interface {
// contains filtered or unexported methods
}
UnsafeAPIResourcesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIResourcesServer will result in compilation errors.