Documentation
¶
Index ¶
- Variables
- func RegisterLivestateServiceServer(s grpc.ServiceRegistrar, srv LivestateServiceServer)
- type GetLivestateRequest
- func (*GetLivestateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLivestateRequest) GetApplicationId() string
- func (x *GetLivestateRequest) GetApplicationName() string
- func (x *GetLivestateRequest) GetDeploySource() *common.DeploymentSource
- func (x *GetLivestateRequest) GetDeployTargets() []string
- func (x *GetLivestateRequest) GetPipedId() string
- func (*GetLivestateRequest) ProtoMessage()
- func (x *GetLivestateRequest) ProtoReflect() protoreflect.Message
- func (x *GetLivestateRequest) Reset()
- func (x *GetLivestateRequest) String() string
- func (m *GetLivestateRequest) Validate() error
- func (m *GetLivestateRequest) ValidateAll() error
- type GetLivestateRequestMultiError
- type GetLivestateRequestValidationError
- func (e GetLivestateRequestValidationError) Cause() error
- func (e GetLivestateRequestValidationError) Error() string
- func (e GetLivestateRequestValidationError) ErrorName() string
- func (e GetLivestateRequestValidationError) Field() string
- func (e GetLivestateRequestValidationError) Key() bool
- func (e GetLivestateRequestValidationError) Reason() string
- type GetLivestateResponse
- func (*GetLivestateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLivestateResponse) GetApplicationLiveState() *model.ApplicationLiveState
- func (x *GetLivestateResponse) GetSyncState() *model.ApplicationSyncState
- func (*GetLivestateResponse) ProtoMessage()
- func (x *GetLivestateResponse) ProtoReflect() protoreflect.Message
- func (x *GetLivestateResponse) Reset()
- func (x *GetLivestateResponse) String() string
- func (m *GetLivestateResponse) Validate() error
- func (m *GetLivestateResponse) ValidateAll() error
- type GetLivestateResponseMultiError
- type GetLivestateResponseValidationError
- func (e GetLivestateResponseValidationError) Cause() error
- func (e GetLivestateResponseValidationError) Error() string
- func (e GetLivestateResponseValidationError) ErrorName() string
- func (e GetLivestateResponseValidationError) Field() string
- func (e GetLivestateResponseValidationError) Key() bool
- func (e GetLivestateResponseValidationError) Reason() string
- type LivestateServiceClient
- type LivestateServiceServer
- type UnimplementedLivestateServiceServer
- type UnsafeLivestateServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_pkg_plugin_api_v1alpha1_livestate_api_proto protoreflect.FileDescriptor
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 ¶
func (m GetLivestateRequestMultiError) Error() string
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 ¶
func (e GetLivestateRequestValidationError) Cause() error
Cause function returns cause value.
func (GetLivestateRequestValidationError) Error ¶
func (e GetLivestateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetLivestateRequestValidationError) ErrorName ¶
func (e GetLivestateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetLivestateRequestValidationError) Field ¶
func (e GetLivestateRequestValidationError) Field() string
Field function returns field value.
func (GetLivestateRequestValidationError) Key ¶
func (e GetLivestateRequestValidationError) Key() bool
Key function returns key value.
func (GetLivestateRequestValidationError) Reason ¶
func (e GetLivestateRequestValidationError) Reason() string
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 ¶
func (m GetLivestateResponseMultiError) Error() string
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 ¶
func (e GetLivestateResponseValidationError) Cause() error
Cause function returns cause value.
func (GetLivestateResponseValidationError) Error ¶
func (e GetLivestateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetLivestateResponseValidationError) ErrorName ¶
func (e GetLivestateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetLivestateResponseValidationError) Field ¶
func (e GetLivestateResponseValidationError) Field() string
Field function returns field value.
func (GetLivestateResponseValidationError) Key ¶
func (e GetLivestateResponseValidationError) Key() bool
Key function returns key value.
func (GetLivestateResponseValidationError) Reason ¶
func (e GetLivestateResponseValidationError) Reason() string
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.
func NewLivestateServiceClient ¶
func NewLivestateServiceClient(cc grpc.ClientConnInterface) LivestateServiceClient
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 ¶
func (UnimplementedLivestateServiceServer) GetLivestate(context.Context, *GetLivestateRequest) (*GetLivestateResponse, error)
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.