Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterFactoryServer(s grpc.ServiceRegistrar, srv FactoryServer)
- type BuildRequest
- type BuildResponse
- type CreateRequest
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetEndpoints() []*base.Endpoint
- func (x *CreateResponse) GetNeedCommunication() bool
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- type DeploymentRequest
- func (*DeploymentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeploymentRequest) GetEnvironment() *base.Environment
- func (*DeploymentRequest) ProtoMessage()
- func (x *DeploymentRequest) ProtoReflect() protoreflect.Message
- func (x *DeploymentRequest) Reset()
- func (x *DeploymentRequest) String() string
- type DeploymentResponse
- type FactoryClient
- type FactoryServer
- type InitResponse
- func (*InitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InitResponse) GetChannels() []*agents.Channel
- func (x *InitResponse) GetEndpoints() []*base.Endpoint
- func (x *InitResponse) GetReadMe() string
- func (x *InitResponse) GetStatus() *services.InitStatus
- func (x *InitResponse) GetVersion() *services.Version
- func (*InitResponse) ProtoMessage()
- func (x *InitResponse) ProtoReflect() protoreflect.Message
- func (x *InitResponse) Reset()
- func (x *InitResponse) String() string
- type SyncRequest
- type SyncResponse
- type UnimplementedFactoryServer
- func (UnimplementedFactoryServer) Build(context.Context, *BuildRequest) (*BuildResponse, error)
- func (UnimplementedFactoryServer) Communicate(context.Context, *agents.Engage) (*agents.InformationRequest, error)
- func (UnimplementedFactoryServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedFactoryServer) Deploy(context.Context, *DeploymentRequest) (*DeploymentResponse, error)
- func (UnimplementedFactoryServer) Init(context.Context, *services.InitRequest) (*InitResponse, error)
- func (UnimplementedFactoryServer) Sync(context.Context, *SyncRequest) (*SyncResponse, error)
- func (UnimplementedFactoryServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafeFactoryServer
- type UpdateRequest
- type UpdateResponse
Constants ¶
const ( Factory_Init_FullMethodName = "/v1.services.factory.Factory/Init" Factory_Create_FullMethodName = "/v1.services.factory.Factory/Create" Factory_Update_FullMethodName = "/v1.services.factory.Factory/Update" Factory_Sync_FullMethodName = "/v1.services.factory.Factory/Sync" Factory_Build_FullMethodName = "/v1.services.factory.Factory/Build" Factory_Deploy_FullMethodName = "/v1.services.factory.Factory/Deploy" Factory_Communicate_FullMethodName = "/v1.services.factory.Factory/Communicate" )
Variables ¶
var Factory_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.services.factory.Factory", HandlerType: (*FactoryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Init", Handler: _Factory_Init_Handler, }, { MethodName: "Create", Handler: _Factory_Create_Handler, }, { MethodName: "Update", Handler: _Factory_Update_Handler, }, { MethodName: "Sync", Handler: _Factory_Sync_Handler, }, { MethodName: "Build", Handler: _Factory_Build_Handler, }, { MethodName: "Deploy", Handler: _Factory_Deploy_Handler, }, { MethodName: "Communicate", Handler: _Factory_Communicate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "services/factory/factory.proto", }
Factory_ServiceDesc is the grpc.ServiceDesc for Factory service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_services_factory_factory_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFactoryServer ¶
func RegisterFactoryServer(s grpc.ServiceRegistrar, srv FactoryServer)
Types ¶
type BuildRequest ¶
type BuildRequest struct { DependencyEndpointGroup *base.EndpointGroup `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
func (*BuildRequest) Descriptor
deprecated
func (*BuildRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuildRequest.ProtoReflect.Descriptor instead.
func (*BuildRequest) GetDependencyEndpointGroup ¶
func (x *BuildRequest) GetDependencyEndpointGroup() *base.EndpointGroup
func (*BuildRequest) ProtoMessage ¶
func (*BuildRequest) ProtoMessage()
func (*BuildRequest) ProtoReflect ¶
func (x *BuildRequest) ProtoReflect() protoreflect.Message
func (*BuildRequest) Reset ¶
func (x *BuildRequest) Reset()
func (*BuildRequest) String ¶
func (x *BuildRequest) String() string
type BuildResponse ¶
type BuildResponse struct {
// contains filtered or unexported fields
}
func (*BuildResponse) Descriptor
deprecated
func (*BuildResponse) Descriptor() ([]byte, []int)
Deprecated: Use BuildResponse.ProtoReflect.Descriptor instead.
func (*BuildResponse) ProtoMessage ¶
func (*BuildResponse) ProtoMessage()
func (*BuildResponse) ProtoReflect ¶
func (x *BuildResponse) ProtoReflect() protoreflect.Message
func (*BuildResponse) Reset ¶
func (x *BuildResponse) Reset()
func (*BuildResponse) String ¶
func (x *BuildResponse) String() string
type CreateRequest ¶
type CreateRequest struct {
// contains filtered or unexported fields
}
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { NeedCommunication bool `protobuf:"varint,1,opt,name=need_communication,json=needCommunication,proto3" json:"need_communication,omitempty"` Endpoints []*base.Endpoint `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // The endpoints of the created service // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetEndpoints ¶
func (x *CreateResponse) GetEndpoints() []*base.Endpoint
func (*CreateResponse) GetNeedCommunication ¶
func (x *CreateResponse) GetNeedCommunication() bool
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type DeploymentRequest ¶
type DeploymentRequest struct { Environment *base.Environment `protobuf:"bytes,1,opt,name=environment,proto3" json:"environment,omitempty"` // contains filtered or unexported fields }
func (*DeploymentRequest) Descriptor
deprecated
func (*DeploymentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeploymentRequest.ProtoReflect.Descriptor instead.
func (*DeploymentRequest) GetEnvironment ¶ added in v0.0.31
func (x *DeploymentRequest) GetEnvironment() *base.Environment
func (*DeploymentRequest) ProtoMessage ¶
func (*DeploymentRequest) ProtoMessage()
func (*DeploymentRequest) ProtoReflect ¶
func (x *DeploymentRequest) ProtoReflect() protoreflect.Message
func (*DeploymentRequest) Reset ¶
func (x *DeploymentRequest) Reset()
func (*DeploymentRequest) String ¶
func (x *DeploymentRequest) String() string
type DeploymentResponse ¶
type DeploymentResponse struct {
// contains filtered or unexported fields
}
func (*DeploymentResponse) Descriptor
deprecated
func (*DeploymentResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeploymentResponse.ProtoReflect.Descriptor instead.
func (*DeploymentResponse) ProtoMessage ¶
func (*DeploymentResponse) ProtoMessage()
func (*DeploymentResponse) ProtoReflect ¶
func (x *DeploymentResponse) ProtoReflect() protoreflect.Message
func (*DeploymentResponse) Reset ¶
func (x *DeploymentResponse) Reset()
func (*DeploymentResponse) String ¶
func (x *DeploymentResponse) String() string
type FactoryClient ¶
type FactoryClient interface { // Setup Init(ctx context.Context, in *services.InitRequest, opts ...grpc.CallOption) (*InitResponse, error) // Affect Code Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) // Affect Data Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*SyncResponse, error) // Deployment/Build only on init data Build(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (*BuildResponse, error) Deploy(ctx context.Context, in *DeploymentRequest, opts ...grpc.CallOption) (*DeploymentResponse, error) // Communication helper Communicate(ctx context.Context, in *agents.Engage, opts ...grpc.CallOption) (*agents.InformationRequest, error) }
FactoryClient is the client API for Factory 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 NewFactoryClient ¶
func NewFactoryClient(cc grpc.ClientConnInterface) FactoryClient
type FactoryServer ¶
type FactoryServer interface { // Setup Init(context.Context, *services.InitRequest) (*InitResponse, error) // Affect Code Create(context.Context, *CreateRequest) (*CreateResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) // Affect Data Sync(context.Context, *SyncRequest) (*SyncResponse, error) // Deployment/Build only on init data Build(context.Context, *BuildRequest) (*BuildResponse, error) Deploy(context.Context, *DeploymentRequest) (*DeploymentResponse, error) // Communication helper Communicate(context.Context, *agents.Engage) (*agents.InformationRequest, error) // contains filtered or unexported methods }
FactoryServer is the server API for Factory service. All implementations must embed UnimplementedFactoryServer for forward compatibility
type InitResponse ¶
type InitResponse struct { Version *services.Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Endpoints []*base.Endpoint `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"` Channels []*agents.Channel `protobuf:"bytes,3,rep,name=channels,proto3" json:"channels,omitempty"` // The communication channels of the service ReadMe string `protobuf:"bytes,4,opt,name=read_me,json=readMe,proto3" json:"read_me,omitempty"` Status *services.InitStatus `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*InitResponse) Descriptor
deprecated
func (*InitResponse) Descriptor() ([]byte, []int)
Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.
func (*InitResponse) GetChannels ¶
func (x *InitResponse) GetChannels() []*agents.Channel
func (*InitResponse) GetEndpoints ¶
func (x *InitResponse) GetEndpoints() []*base.Endpoint
func (*InitResponse) GetReadMe ¶ added in v0.0.26
func (x *InitResponse) GetReadMe() string
func (*InitResponse) GetStatus ¶ added in v0.0.26
func (x *InitResponse) GetStatus() *services.InitStatus
func (*InitResponse) GetVersion ¶
func (x *InitResponse) GetVersion() *services.Version
func (*InitResponse) ProtoMessage ¶
func (*InitResponse) ProtoMessage()
func (*InitResponse) ProtoReflect ¶
func (x *InitResponse) ProtoReflect() protoreflect.Message
func (*InitResponse) Reset ¶
func (x *InitResponse) Reset()
func (*InitResponse) String ¶
func (x *InitResponse) String() string
type SyncRequest ¶
type SyncRequest struct { DependencyEndpointGroup *base.EndpointGroup `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SyncRequest) Descriptor
deprecated
func (*SyncRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.
func (*SyncRequest) GetDependencyEndpointGroup ¶
func (x *SyncRequest) GetDependencyEndpointGroup() *base.EndpointGroup
func (*SyncRequest) ProtoMessage ¶
func (*SyncRequest) ProtoMessage()
func (*SyncRequest) ProtoReflect ¶
func (x *SyncRequest) ProtoReflect() protoreflect.Message
func (*SyncRequest) Reset ¶
func (x *SyncRequest) Reset()
func (*SyncRequest) String ¶
func (x *SyncRequest) String() string
type SyncResponse ¶
type SyncResponse struct { NeedCommunication bool `protobuf:"varint,1,opt,name=need_communication,json=needCommunication,proto3" json:"need_communication,omitempty"` // contains filtered or unexported fields }
func (*SyncResponse) Descriptor
deprecated
func (*SyncResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead.
func (*SyncResponse) GetNeedCommunication ¶
func (x *SyncResponse) GetNeedCommunication() bool
func (*SyncResponse) ProtoMessage ¶
func (*SyncResponse) ProtoMessage()
func (*SyncResponse) ProtoReflect ¶
func (x *SyncResponse) ProtoReflect() protoreflect.Message
func (*SyncResponse) Reset ¶
func (x *SyncResponse) Reset()
func (*SyncResponse) String ¶
func (x *SyncResponse) String() string
type UnimplementedFactoryServer ¶
type UnimplementedFactoryServer struct { }
UnimplementedFactoryServer must be embedded to have forward compatible implementations.
func (UnimplementedFactoryServer) Build ¶
func (UnimplementedFactoryServer) Build(context.Context, *BuildRequest) (*BuildResponse, error)
func (UnimplementedFactoryServer) Communicate ¶
func (UnimplementedFactoryServer) Communicate(context.Context, *agents.Engage) (*agents.InformationRequest, error)
func (UnimplementedFactoryServer) Create ¶
func (UnimplementedFactoryServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedFactoryServer) Deploy ¶
func (UnimplementedFactoryServer) Deploy(context.Context, *DeploymentRequest) (*DeploymentResponse, error)
func (UnimplementedFactoryServer) Init ¶
func (UnimplementedFactoryServer) Init(context.Context, *services.InitRequest) (*InitResponse, error)
func (UnimplementedFactoryServer) Sync ¶
func (UnimplementedFactoryServer) Sync(context.Context, *SyncRequest) (*SyncResponse, error)
func (UnimplementedFactoryServer) Update ¶
func (UnimplementedFactoryServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeFactoryServer ¶
type UnsafeFactoryServer interface {
// contains filtered or unexported methods
}
UnsafeFactoryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FactoryServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct {
// contains filtered or unexported fields
}
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct {
// contains filtered or unexported fields
}
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string