selection

package
v0.2020100406381601793... Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_microglot_selection_v1_messages_proto protoreflect.FileDescriptor
View Source
var File_microglot_selection_v1_selection_service_proto protoreflect.FileDescriptor
View Source
var SelectionServiceDesc = _SelectionService_serviceDesc

SelectionServiceDesc exports the gRCP service descriptor that is used when registering the service with a gRPC server. This is usually hidden behind the Register*Server methods but we export it here in order to enable more dynamic service registration methods.

Functions

func RegisterSelectionServiceServer added in v0.2020090620141599423259.2020090715491599493771

func RegisterSelectionServiceServer(s *grpc.Server, srv SelectionServiceServer)

Types

type ConfigJSONFile added in v0.2020091920451600548301.2020091920471600548447

type ConfigJSONFile struct {

	// The path to a JSON file containing a JSON encoded Selection.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

ConfigJSONFile is the configuration message that must be used for all language implementations of the JSON file based SelectionService.

func (*ConfigJSONFile) Descriptor deprecated added in v0.2020091920451600548301.2020091920471600548447

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

Deprecated: Use ConfigJSONFile.ProtoReflect.Descriptor instead.

func (*ConfigJSONFile) GetPath added in v0.2020091920451600548301.2020091920471600548447

func (x *ConfigJSONFile) GetPath() string

func (*ConfigJSONFile) ProtoMessage added in v0.2020091920451600548301.2020091920471600548447

func (*ConfigJSONFile) ProtoMessage()

func (*ConfigJSONFile) ProtoReflect added in v0.2020091920451600548301.2020091920471600548447

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

func (*ConfigJSONFile) Reset added in v0.2020091920451600548301.2020091920471600548447

func (x *ConfigJSONFile) Reset()

func (*ConfigJSONFile) String added in v0.2020091920451600548301.2020091920471600548447

func (x *ConfigJSONFile) String() string

type ExtensionResolutionEntry

type ExtensionResolutionEntry struct {

	// A sequence of active extensions identified by their instance name.
	Active []string `protobuf:"bytes,1,rep,name=active,proto3" json:"active,omitempty"`
	// contains filtered or unexported fields
}

ExtensionResolutionEntry is a container type that allows multiple, active extensions to be described in a map.

func (*ExtensionResolutionEntry) Descriptor deprecated

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

Deprecated: Use ExtensionResolutionEntry.ProtoReflect.Descriptor instead.

func (*ExtensionResolutionEntry) GetActive

func (x *ExtensionResolutionEntry) GetActive() []string

func (*ExtensionResolutionEntry) ProtoMessage

func (*ExtensionResolutionEntry) ProtoMessage()

func (*ExtensionResolutionEntry) ProtoReflect

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

func (*ExtensionResolutionEntry) Reset

func (x *ExtensionResolutionEntry) Reset()

func (*ExtensionResolutionEntry) String

func (x *ExtensionResolutionEntry) String() string

type GetSelectionRequest

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

GetSelectionRequest is currently empty and reserved for future additions.

func (*GetSelectionRequest) Descriptor deprecated

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

Deprecated: Use GetSelectionRequest.ProtoReflect.Descriptor instead.

func (*GetSelectionRequest) ProtoMessage

func (*GetSelectionRequest) ProtoMessage()

func (*GetSelectionRequest) ProtoReflect

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

func (*GetSelectionRequest) Reset

func (x *GetSelectionRequest) Reset()

func (*GetSelectionRequest) String

func (x *GetSelectionRequest) String() string

type GetSelectionResponse

type GetSelectionResponse struct {

	// The user defined arrangement.
	Selection *Selection `protobuf:"bytes,1,opt,name=selection,proto3" json:"selection,omitempty"`
	// contains filtered or unexported fields
}

GetSelectionResponse contains the arrangement of services that describe a working system.

func (*GetSelectionResponse) Descriptor deprecated

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

Deprecated: Use GetSelectionResponse.ProtoReflect.Descriptor instead.

func (*GetSelectionResponse) GetSelection

func (x *GetSelectionResponse) GetSelection() *Selection

func (*GetSelectionResponse) ProtoMessage

func (*GetSelectionResponse) ProtoMessage()

func (*GetSelectionResponse) ProtoReflect

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

func (*GetSelectionResponse) Reset

func (x *GetSelectionResponse) Reset()

func (*GetSelectionResponse) String

func (x *GetSelectionResponse) String() string

type Instance

type Instance struct {

	// A unique name that describes the instance being created. This name will be
	// used to create relationships such as attaching this instance as a driver or
	// extension to another instance.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A URI that represents the implementation to load. The URI protocol will
	// determine the specific loading strategy. For example, most file URIs like
	// file:///path/to/file will be loaded from the local file system. See the
	// LoaderService for more details.
	Implementation string `protobuf:"bytes,2,opt,name=implementation,proto3" json:"implementation,omitempty"`
	// A map of <package>/<service> strings to instance names that satisfy the
	// requirements of the factory being used to create an instance. See the
	// FactoryService for details on how dependencies are managed.
	Drivers map[string]string `` /* 155-byte string literal not displayed */
	// A map of <package>/<service> strings to collections of instance names that
	// satisfy the requirement of the factory being used to create an instance.
	// See the FactoryService for details on how dependencies are managed.
	Extensions map[string]*ExtensionResolutionEntry `` /* 161-byte string literal not displayed */
	// The implementation specific configuration values as required by the
	// factory being used to create an instance. See the FactoryService for
	// details on how configuration values are managed.
	Config *any.Any `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

Instance describes a service instance to create.

func (*Instance) Descriptor deprecated

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

Deprecated: Use Instance.ProtoReflect.Descriptor instead.

func (*Instance) GetConfig

func (x *Instance) GetConfig() *any.Any

func (*Instance) GetDrivers

func (x *Instance) GetDrivers() map[string]string

func (*Instance) GetExtensions

func (x *Instance) GetExtensions() map[string]*ExtensionResolutionEntry

func (*Instance) GetImplementation

func (x *Instance) GetImplementation() string

func (*Instance) GetName

func (x *Instance) GetName() string

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) ProtoReflect

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

func (*Instance) Reset

func (x *Instance) Reset()

func (*Instance) String

func (x *Instance) String() string

type Selection

type Selection struct {

	// A sequence of service instances to create along with the configuration and
	// dependency resolution data for those instances. There are no URI
	// URI restrictions for the implementations other than ensuring that any
	// non-standard schemes are supported by including a custom loader in the
	// loaders map.
	Instances []*Instance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"`
	// contains filtered or unexported fields
}

Selection contains a complete, user defined arrangement of an application.

func (*Selection) Descriptor deprecated

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

Deprecated: Use Selection.ProtoReflect.Descriptor instead.

func (*Selection) GetInstances

func (x *Selection) GetInstances() []*Instance

func (*Selection) ProtoMessage

func (*Selection) ProtoMessage()

func (*Selection) ProtoReflect

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

func (*Selection) Reset

func (x *Selection) Reset()

func (*Selection) String

func (x *Selection) String() string

type SelectionServiceClient

type SelectionServiceClient interface {
	// GetSelection loads a system arrangement and configuration.
	GetSelection(ctx context.Context, in *GetSelectionRequest, opts ...grpc.CallOption) (*GetSelectionResponse, error)
}

SelectionServiceClient is the client API for SelectionService 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 SelectionServiceServer added in v0.2020090620141599423259.2020090715491599493771

type SelectionServiceServer interface {
	// GetSelection loads a system arrangement and configuration.
	GetSelection(context.Context, *GetSelectionRequest) (*GetSelectionResponse, error)
	// contains filtered or unexported methods
}

SelectionServiceServer is the server API for SelectionService service. All implementations must embed UnimplementedSelectionServiceServer for forward compatibility

type UnimplementedSelectionServiceServer added in v0.2020090620141599423259.2020090715491599493771

type UnimplementedSelectionServiceServer struct {
}

UnimplementedSelectionServiceServer must be embedded to have forward compatible implementations.

func (*UnimplementedSelectionServiceServer) GetSelection added in v0.2020090620141599423259.2020090715491599493771

Jump to

Keyboard shortcuts

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