livestate

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_plugin_api_v1alpha1_livestate_api_proto protoreflect.FileDescriptor
View Source
var LivestateService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpc.plugin.livestateapi.v1alpha1.LivestateService",
	HandlerType: (*LivestateServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetLivestate",
			Handler:    _LivestateService_GetLivestate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/plugin/api/v1alpha1/livestate/api.proto",
}

LivestateService_ServiceDesc is the grpc.ServiceDesc for LivestateService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterLivestateServiceServer

func RegisterLivestateServiceServer(s grpc.ServiceRegistrar, srv LivestateServiceServer)

Types

type GetLivestateRequest

type GetLivestateRequest struct {

	// The id of the piped
	PipedId string `protobuf:"bytes,1,opt,name=piped_id,json=pipedId,proto3" json:"piped_id,omitempty"`
	// The id of the application
	ApplicationId string `protobuf:"bytes,2,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`
	// The name of the application
	ApplicationName string `protobuf:"bytes,3,opt,name=application_name,json=applicationName,proto3" json:"application_name,omitempty"`
	// The source of the deployment
	DeploySource *common.DeploymentSource `protobuf:"bytes,4,opt,name=deploy_source,json=deploySource,proto3" json:"deploy_source,omitempty"`
	// The targets of the deployment
	DeployTargets []string `protobuf:"bytes,5,rep,name=deploy_targets,json=deployTargets,proto3" json:"deploy_targets,omitempty"`
	// contains filtered or unexported fields
}

GetLivestateRequest is the request for the GetLivestate method.

func (*GetLivestateRequest) Descriptor deprecated

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

Deprecated: Use GetLivestateRequest.ProtoReflect.Descriptor instead.

func (*GetLivestateRequest) GetApplicationId

func (x *GetLivestateRequest) GetApplicationId() string

func (*GetLivestateRequest) GetApplicationName

func (x *GetLivestateRequest) GetApplicationName() string

func (*GetLivestateRequest) GetDeploySource

func (x *GetLivestateRequest) GetDeploySource() *common.DeploymentSource

func (*GetLivestateRequest) GetDeployTargets

func (x *GetLivestateRequest) GetDeployTargets() []string

func (*GetLivestateRequest) GetPipedId

func (x *GetLivestateRequest) GetPipedId() string

func (*GetLivestateRequest) ProtoMessage

func (*GetLivestateRequest) ProtoMessage()

func (*GetLivestateRequest) ProtoReflect

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

func (*GetLivestateRequest) Reset

func (x *GetLivestateRequest) Reset()

func (*GetLivestateRequest) String

func (x *GetLivestateRequest) String() string

func (*GetLivestateRequest) Validate

func (m *GetLivestateRequest) Validate() error

Validate checks the field values on GetLivestateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetLivestateRequest) ValidateAll

func (m *GetLivestateRequest) ValidateAll() error

ValidateAll checks the field values on GetLivestateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetLivestateRequestMultiError, or nil if none found.

type GetLivestateRequestMultiError

type GetLivestateRequestMultiError []error

GetLivestateRequestMultiError is an error wrapping multiple validation errors returned by GetLivestateRequest.ValidateAll() if the designated constraints aren't met.

func (GetLivestateRequestMultiError) AllErrors

func (m GetLivestateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetLivestateRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetLivestateRequestValidationError

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

GetLivestateRequestValidationError is the validation error returned by GetLivestateRequest.Validate if the designated constraints aren't met.

func (GetLivestateRequestValidationError) Cause

Cause function returns cause value.

func (GetLivestateRequestValidationError) Error

Error satisfies the builtin error interface

func (GetLivestateRequestValidationError) ErrorName

ErrorName returns error name.

func (GetLivestateRequestValidationError) Field

Field function returns field value.

func (GetLivestateRequestValidationError) Key

Key function returns key value.

func (GetLivestateRequestValidationError) Reason

Reason function returns reason value.

type GetLivestateResponse

type GetLivestateResponse struct {

	// The application live state
	ApplicationLiveState *model.ApplicationLiveState `protobuf:"bytes,1,opt,name=application_live_state,json=applicationLiveState,proto3" json:"application_live_state,omitempty"`
	// The application sync state
	SyncState *model.ApplicationSyncState `protobuf:"bytes,2,opt,name=sync_state,json=syncState,proto3" json:"sync_state,omitempty"`
	// contains filtered or unexported fields
}

GetLivestateResponse is the response for the GetLivestate method.

func (*GetLivestateResponse) Descriptor deprecated

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

Deprecated: Use GetLivestateResponse.ProtoReflect.Descriptor instead.

func (*GetLivestateResponse) GetApplicationLiveState

func (x *GetLivestateResponse) GetApplicationLiveState() *model.ApplicationLiveState

func (*GetLivestateResponse) GetSyncState

func (x *GetLivestateResponse) GetSyncState() *model.ApplicationSyncState

func (*GetLivestateResponse) ProtoMessage

func (*GetLivestateResponse) ProtoMessage()

func (*GetLivestateResponse) ProtoReflect

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

func (*GetLivestateResponse) Reset

func (x *GetLivestateResponse) Reset()

func (*GetLivestateResponse) String

func (x *GetLivestateResponse) String() string

func (*GetLivestateResponse) Validate

func (m *GetLivestateResponse) Validate() error

Validate checks the field values on GetLivestateResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetLivestateResponse) ValidateAll

func (m *GetLivestateResponse) ValidateAll() error

ValidateAll checks the field values on GetLivestateResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetLivestateResponseMultiError, or nil if none found.

type GetLivestateResponseMultiError

type GetLivestateResponseMultiError []error

GetLivestateResponseMultiError is an error wrapping multiple validation errors returned by GetLivestateResponse.ValidateAll() if the designated constraints aren't met.

func (GetLivestateResponseMultiError) AllErrors

func (m GetLivestateResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetLivestateResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetLivestateResponseValidationError

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

GetLivestateResponseValidationError is the validation error returned by GetLivestateResponse.Validate if the designated constraints aren't met.

func (GetLivestateResponseValidationError) Cause

Cause function returns cause value.

func (GetLivestateResponseValidationError) Error

Error satisfies the builtin error interface

func (GetLivestateResponseValidationError) ErrorName

ErrorName returns error name.

func (GetLivestateResponseValidationError) Field

Field function returns field value.

func (GetLivestateResponseValidationError) Key

Key function returns key value.

func (GetLivestateResponseValidationError) Reason

Reason function returns reason value.

type LivestateServiceClient

type LivestateServiceClient interface {
	// GetLivestate gets the application live state for the give app id.
	GetLivestate(ctx context.Context, in *GetLivestateRequest, opts ...grpc.CallOption) (*GetLivestateResponse, error)
}

LivestateServiceClient is the client API for LivestateService 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 LivestateServiceServer

type LivestateServiceServer interface {
	// GetLivestate gets the application live state for the give app id.
	GetLivestate(context.Context, *GetLivestateRequest) (*GetLivestateResponse, error)
	// contains filtered or unexported methods
}

LivestateServiceServer is the server API for LivestateService service. All implementations must embed UnimplementedLivestateServiceServer for forward compatibility

type UnimplementedLivestateServiceServer

type UnimplementedLivestateServiceServer struct {
}

UnimplementedLivestateServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLivestateServiceServer) GetLivestate

type UnsafeLivestateServiceServer

type UnsafeLivestateServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeLivestateServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LivestateServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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