factoryv1

package
v0.0.71 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Factory_Init_FullMethodName        = "/service.factory.v1.Factory/Init"
	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 (
	InitStatus_State_name = map[int32]string{
		0: "UNKNOWN",
		1: "READY",
		2: "ERROR",
	}
	InitStatus_State_value = map[string]int32{
		"UNKNOWN": 0,
		"READY":   1,
		"ERROR":   2,
	}
)

Enum value maps for InitStatus_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: "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/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 {
	DependencyEndpointGroup *v1.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() *v1.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 {
	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"`
	DependencyEndpointGroup *v1.EndpointGroup `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DeploymentRequest) Descriptor deprecated

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

Deprecated: Use DeploymentRequest.ProtoReflect.Descriptor instead.

func (*DeploymentRequest) GetDependencyEndpointGroup

func (x *DeploymentRequest) GetDependencyEndpointGroup() *v1.EndpointGroup

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
	Init(ctx context.Context, in *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 *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
	Init(context.Context, *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, *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 InitRequest

type InitRequest 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"`
	// Dependency EndpointGroup
	DependencyEndpointGroup *v1.EndpointGroup `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*InitRequest) Descriptor deprecated

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

Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.

func (*InitRequest) GetCreate

func (x *InitRequest) GetCreate() bool

func (*InitRequest) GetDebug

func (x *InitRequest) GetDebug() bool

func (*InitRequest) GetDependencyEndpointGroup

func (x *InitRequest) GetDependencyEndpointGroup() *v1.EndpointGroup

func (*InitRequest) GetIdentity

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

func (*InitRequest) ProtoMessage

func (*InitRequest) ProtoMessage()

func (*InitRequest) ProtoReflect

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

func (*InitRequest) Reset

func (x *InitRequest) Reset()

func (*InitRequest) String

func (x *InitRequest) String() string

type InitResponse

type InitResponse 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         *InitStatus    `protobuf:"bytes,4,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) GetEndpoints

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

func (*InitResponse) GetGettingStarted added in v0.0.63

func (x *InitResponse) GetGettingStarted() string

func (*InitResponse) GetStatus

func (x *InitResponse) GetStatus() *InitStatus

func (*InitResponse) GetVersion

func (x *InitResponse) GetVersion() *v1.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 InitStatus

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

func (*InitStatus) Descriptor deprecated

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

Deprecated: Use InitStatus.ProtoReflect.Descriptor instead.

func (*InitStatus) GetMessage

func (x *InitStatus) GetMessage() string

func (*InitStatus) GetState

func (x *InitStatus) GetState() InitStatus_State

func (*InitStatus) ProtoMessage

func (*InitStatus) ProtoMessage()

func (*InitStatus) ProtoReflect

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

func (*InitStatus) Reset

func (x *InitStatus) Reset()

func (*InitStatus) String

func (x *InitStatus) String() string

type InitStatus_State

type InitStatus_State int32
const (
	InitStatus_UNKNOWN InitStatus_State = 0
	InitStatus_READY   InitStatus_State = 1
	InitStatus_ERROR   InitStatus_State = 2
)

func (InitStatus_State) Descriptor

func (InitStatus_State) Enum

func (InitStatus_State) EnumDescriptor deprecated

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

Deprecated: Use InitStatus_State.Descriptor instead.

func (InitStatus_State) Number

func (InitStatus_State) String

func (x InitStatus_State) String() string

func (InitStatus_State) Type

type SyncRequest

type SyncRequest struct {
	DependencyEndpointGroup *v1.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() *v1.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) Communicate

func (UnimplementedFactoryServer) Create

func (UnimplementedFactoryServer) Deploy

func (UnimplementedFactoryServer) Init

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