factoryv1

package
v0.0.83 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Factory_Load_FullMethodName        = "/service.factory.v1.Factory/Load"
	Factory_Create_FullMethodName      = "/service.factory.v1.Factory/Create"
	Factory_Update_FullMethodName      = "/service.factory.v1.Factory/Update"
	Factory_Sync_FullMethodName        = "/service.factory.v1.Factory/Sync"
	Factory_Build_FullMethodName       = "/service.factory.v1.Factory/Build"
	Factory_Deploy_FullMethodName      = "/service.factory.v1.Factory/Deploy"
	Factory_Communicate_FullMethodName = "/service.factory.v1.Factory/Communicate"
)

Variables

View Source
var (
	LoadStatus_State_name = map[int32]string{
		0: "UNKNOWN",
		1: "READY",
		2: "ERROR",
	}
	LoadStatus_State_value = map[string]int32{
		"UNKNOWN": 0,
		"READY":   1,
		"ERROR":   2,
	}
)

Enum value maps for LoadStatus_State.

View Source
var (
	CreateStatus_Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "CREATED",
		2: "ERROR",
	}
	CreateStatus_Status_value = map[string]int32{
		"UNKNOWN": 0,
		"CREATED": 1,
		"ERROR":   2,
	}
)

Enum value maps for CreateStatus_Status.

View Source
var Factory_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "service.factory.v1.Factory",
	HandlerType: (*FactoryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Load",
			Handler:    _Factory_Load_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/v1/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)

View Source
var File_services_factory_v1_factory_proto protoreflect.FileDescriptor

Functions

func RegisterFactoryServer

func RegisterFactoryServer(s grpc.ServiceRegistrar, srv FactoryServer)

Types

type BuildRequest

type BuildRequest struct {
	DependenciesEndpoints []*v1.Endpoint `protobuf:"bytes,1,rep,name=dependencies_endpoints,json=dependenciesEndpoints,proto3" json:"dependencies_endpoints,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildRequest) Descriptor deprecated

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

Deprecated: Use BuildRequest.ProtoReflect.Descriptor instead.

func (*BuildRequest) GetDependenciesEndpoints added in v0.0.81

func (x *BuildRequest) GetDependenciesEndpoints() []*v1.Endpoint

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 {
	Status    *CreateStatus  `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Endpoints []*v1.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() []*v1.Endpoint

func (*CreateResponse) GetStatus

func (x *CreateResponse) GetStatus() *CreateStatus

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 CreateStatus

type CreateStatus struct {
	Status  CreateStatus_Status `protobuf:"varint,1,opt,name=status,proto3,enum=service.factory.v1.CreateStatus_Status" json:"status,omitempty"`
	Message string              `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateStatus) Descriptor deprecated

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

Deprecated: Use CreateStatus.ProtoReflect.Descriptor instead.

func (*CreateStatus) GetMessage

func (x *CreateStatus) GetMessage() string

func (*CreateStatus) GetStatus

func (x *CreateStatus) GetStatus() CreateStatus_Status

func (*CreateStatus) ProtoMessage

func (*CreateStatus) ProtoMessage()

func (*CreateStatus) ProtoReflect

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

func (*CreateStatus) Reset

func (x *CreateStatus) Reset()

func (*CreateStatus) String

func (x *CreateStatus) String() string

type CreateStatus_Status

type CreateStatus_Status int32
const (
	CreateStatus_UNKNOWN CreateStatus_Status = 0
	CreateStatus_CREATED CreateStatus_Status = 1
	CreateStatus_ERROR   CreateStatus_Status = 2
)

func (CreateStatus_Status) Descriptor

func (CreateStatus_Status) Enum

func (CreateStatus_Status) EnumDescriptor deprecated

func (CreateStatus_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use CreateStatus_Status.Descriptor instead.

func (CreateStatus_Status) Number

func (CreateStatus_Status) String

func (x CreateStatus_Status) String() string

func (CreateStatus_Status) Type

type DeploymentRequest

type DeploymentRequest struct {
	Environment           *v1.Environment `protobuf:"bytes,1,opt,name=environment,proto3" json:"environment,omitempty"`
	DependenciesEndpoints []*v1.Endpoint  `protobuf:"bytes,2,rep,name=dependencies_endpoints,json=dependenciesEndpoints,proto3" json:"dependencies_endpoints,omitempty"`
	// contains filtered or unexported fields
}

func (*DeploymentRequest) Descriptor deprecated

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

Deprecated: Use DeploymentRequest.ProtoReflect.Descriptor instead.

func (*DeploymentRequest) GetDependenciesEndpoints added in v0.0.81

func (x *DeploymentRequest) GetDependenciesEndpoints() []*v1.Endpoint

func (*DeploymentRequest) GetEnvironment

func (x *DeploymentRequest) GetEnvironment() *v1.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
	Load(ctx context.Context, in *LoadRequest, opts ...grpc.CallOption) (*LoadResponse, 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 *v1.Engage, opts ...grpc.CallOption) (*v1.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
	Load(context.Context, *LoadRequest) (*LoadResponse, 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, *v1.Engage) (*v1.InformationRequest, error)
	// contains filtered or unexported methods
}

FactoryServer is the server API for Factory service. All implementations must embed UnimplementedFactoryServer for forward compatibility

type LoadRequest added in v0.0.72

type LoadRequest struct {
	Debug  bool `protobuf:"varint,1,opt,name=debug,proto3" json:"debug,omitempty"` // Developer debug
	Create bool `protobuf:"varint,2,opt,name=create,proto3" json:"create,omitempty"`
	// Identity of the service
	Identity *v1.ServiceIdentity `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"`
	// contains filtered or unexported fields
}

func (*LoadRequest) Descriptor deprecated added in v0.0.72

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

Deprecated: Use LoadRequest.ProtoReflect.Descriptor instead.

func (*LoadRequest) GetCreate added in v0.0.72

func (x *LoadRequest) GetCreate() bool

func (*LoadRequest) GetDebug added in v0.0.72

func (x *LoadRequest) GetDebug() bool

func (*LoadRequest) GetIdentity added in v0.0.72

func (x *LoadRequest) GetIdentity() *v1.ServiceIdentity

func (*LoadRequest) ProtoMessage added in v0.0.72

func (*LoadRequest) ProtoMessage()

func (*LoadRequest) ProtoReflect added in v0.0.72

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

func (*LoadRequest) Reset added in v0.0.72

func (x *LoadRequest) Reset()

func (*LoadRequest) String added in v0.0.72

func (x *LoadRequest) String() string

type LoadResponse added in v0.0.72

type LoadResponse struct {
	Version        *v1.Version    `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Endpoints      []*v1.Endpoint `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	GettingStarted string         `protobuf:"bytes,3,opt,name=getting_started,json=gettingStarted,proto3" json:"getting_started,omitempty"`
	Status         *LoadStatus    `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*LoadResponse) Descriptor deprecated added in v0.0.72

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

Deprecated: Use LoadResponse.ProtoReflect.Descriptor instead.

func (*LoadResponse) GetEndpoints added in v0.0.72

func (x *LoadResponse) GetEndpoints() []*v1.Endpoint

func (*LoadResponse) GetGettingStarted added in v0.0.72

func (x *LoadResponse) GetGettingStarted() string

func (*LoadResponse) GetStatus added in v0.0.72

func (x *LoadResponse) GetStatus() *LoadStatus

func (*LoadResponse) GetVersion added in v0.0.72

func (x *LoadResponse) GetVersion() *v1.Version

func (*LoadResponse) ProtoMessage added in v0.0.72

func (*LoadResponse) ProtoMessage()

func (*LoadResponse) ProtoReflect added in v0.0.72

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

func (*LoadResponse) Reset added in v0.0.72

func (x *LoadResponse) Reset()

func (*LoadResponse) String added in v0.0.72

func (x *LoadResponse) String() string

type LoadStatus added in v0.0.72

type LoadStatus struct {
	State   LoadStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=service.factory.v1.LoadStatus_State" json:"state,omitempty"`
	Message string           `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*LoadStatus) Descriptor deprecated added in v0.0.72

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

Deprecated: Use LoadStatus.ProtoReflect.Descriptor instead.

func (*LoadStatus) GetMessage added in v0.0.72

func (x *LoadStatus) GetMessage() string

func (*LoadStatus) GetState added in v0.0.72

func (x *LoadStatus) GetState() LoadStatus_State

func (*LoadStatus) ProtoMessage added in v0.0.72

func (*LoadStatus) ProtoMessage()

func (*LoadStatus) ProtoReflect added in v0.0.72

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

func (*LoadStatus) Reset added in v0.0.72

func (x *LoadStatus) Reset()

func (*LoadStatus) String added in v0.0.72

func (x *LoadStatus) String() string

type LoadStatus_State added in v0.0.72

type LoadStatus_State int32
const (
	LoadStatus_UNKNOWN LoadStatus_State = 0
	LoadStatus_READY   LoadStatus_State = 1
	LoadStatus_ERROR   LoadStatus_State = 2
)

func (LoadStatus_State) Descriptor added in v0.0.72

func (LoadStatus_State) Enum added in v0.0.72

func (LoadStatus_State) EnumDescriptor deprecated added in v0.0.72

func (LoadStatus_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use LoadStatus_State.Descriptor instead.

func (LoadStatus_State) Number added in v0.0.72

func (LoadStatus_State) String added in v0.0.72

func (x LoadStatus_State) String() string

func (LoadStatus_State) Type added in v0.0.72

type SyncRequest

type SyncRequest struct {
	DependenciesEndpoints []*v1.Endpoint `protobuf:"bytes,1,rep,name=dependencies_endpoints,json=dependenciesEndpoints,proto3" json:"dependencies_endpoints,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncRequest) Descriptor deprecated

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

Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.

func (*SyncRequest) GetDependenciesEndpoints added in v0.0.81

func (x *SyncRequest) GetDependenciesEndpoints() []*v1.Endpoint

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 {
	// contains filtered or unexported fields
}

func (*SyncResponse) Descriptor deprecated

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

Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead.

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) Communicate

func (UnimplementedFactoryServer) Create

func (UnimplementedFactoryServer) Deploy

func (UnimplementedFactoryServer) Load added in v0.0.72

func (UnimplementedFactoryServer) Sync

func (UnimplementedFactoryServer) Update

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

Jump to

Keyboard shortcuts

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