v1alpha1

package
v0.0.0-...-d33d768 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package v1alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventService_CreateEvent_FullMethodName  = "/tracker.event.v1alpha1.EventService/CreateEvent"
	EventService_GetEvent_FullMethodName     = "/tracker.event.v1alpha1.EventService/GetEvent"
	EventService_SearchEvents_FullMethodName = "/tracker.event.v1alpha1.EventService/SearchEvents"
	EventService_ListEvents_FullMethodName   = "/tracker.event.v1alpha1.EventService/ListEvents"
)

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "deployment",
		2: "operation",
	}
	Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"deployment":       1,
		"operation":        2,
	}
)

Enum value maps for Type.

View Source
var (
	Priority_name = map[int32]string{
		0: "PRIORITY_UNSPECIFIED",
		1: "P1",
		3: "P2",
		4: "P3",
		5: "P4",
	}
	Priority_value = map[string]int32{
		"PRIORITY_UNSPECIFIED": 0,
		"P1":                   1,
		"P2":                   3,
		"P3":                   4,
		"P4":                   5,
	}
)

Enum value maps for Priority.

View Source
var (
	Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "start",
		2: "failure",
		3: "success",
		4: "warning",
		5: "error",
		6: "snapshot",
		7: "user_update",
		8: "recommandation",
	}
	Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"start":              1,
		"failure":            2,
		"success":            3,
		"warning":            4,
		"error":              5,
		"snapshot":           6,
		"user_update":        7,
		"recommandation":     8,
	}
)

Enum value maps for Status.

View Source
var EventService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tracker.event.v1alpha1.EventService",
	HandlerType: (*EventServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateEvent",
			Handler:    _EventService_CreateEvent_Handler,
		},
		{
			MethodName: "GetEvent",
			Handler:    _EventService_GetEvent_Handler,
		},
		{
			MethodName: "SearchEvents",
			Handler:    _EventService_SearchEvents_Handler,
		},
		{
			MethodName: "ListEvents",
			Handler:    _EventService_ListEvents_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/event/v1alpha1/event.proto",
}

EventService_ServiceDesc is the grpc.ServiceDesc for EventService 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_proto_event_v1alpha1_event_proto protoreflect.FileDescriptor

Functions

func RegisterEventServiceHandler

func RegisterEventServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterEventServiceHandler registers the http handlers for service EventService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterEventServiceHandlerClient

func RegisterEventServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EventServiceClient) error

RegisterEventServiceHandlerClient registers the http handlers for service EventService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EventServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EventServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EventServiceClient" to call the correct interceptors.

func RegisterEventServiceHandlerFromEndpoint

func RegisterEventServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterEventServiceHandlerFromEndpoint is same as RegisterEventServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterEventServiceHandlerServer

func RegisterEventServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EventServiceServer) error

RegisterEventServiceHandlerServer registers the http handlers for service EventService to "mux". UnaryRPC :call EventServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEventServiceHandlerFromEndpoint instead.

func RegisterEventServiceServer

func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)

Types

type CreateEventRequest

type CreateEventRequest struct {
	Title      string           `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Attributes *EventAttributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"`
	Links      *EventLinks      `protobuf:"bytes,3,opt,name=links,proto3" json:"links,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateEventRequest) Descriptor deprecated

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

Deprecated: Use CreateEventRequest.ProtoReflect.Descriptor instead.

func (*CreateEventRequest) GetAttributes

func (x *CreateEventRequest) GetAttributes() *EventAttributes
func (x *CreateEventRequest) GetLinks() *EventLinks

func (*CreateEventRequest) GetTitle

func (x *CreateEventRequest) GetTitle() string

func (*CreateEventRequest) ProtoMessage

func (*CreateEventRequest) ProtoMessage()

func (*CreateEventRequest) ProtoReflect

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

func (*CreateEventRequest) Reset

func (x *CreateEventRequest) Reset()

func (*CreateEventRequest) String

func (x *CreateEventRequest) String() string

func (*CreateEventRequest) Validate

func (m *CreateEventRequest) Validate() error

Validate checks the field values on CreateEventRequest 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 (*CreateEventRequest) ValidateAll

func (m *CreateEventRequest) ValidateAll() error

ValidateAll checks the field values on CreateEventRequest 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 CreateEventRequestMultiError, or nil if none found.

type CreateEventRequestMultiError

type CreateEventRequestMultiError []error

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

func (CreateEventRequestMultiError) AllErrors

func (m CreateEventRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateEventRequestMultiError) Error

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

type CreateEventRequestValidationError

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

CreateEventRequestValidationError is the validation error returned by CreateEventRequest.Validate if the designated constraints aren't met.

func (CreateEventRequestValidationError) Cause

Cause function returns cause value.

func (CreateEventRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateEventRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateEventRequestValidationError) Field

Field function returns field value.

func (CreateEventRequestValidationError) Key

Key function returns key value.

func (CreateEventRequestValidationError) Reason

Reason function returns reason value.

type CreateEventResponse

type CreateEventResponse struct {
	Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateEventResponse) Descriptor deprecated

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

Deprecated: Use CreateEventResponse.ProtoReflect.Descriptor instead.

func (*CreateEventResponse) GetEvent

func (x *CreateEventResponse) GetEvent() *Event

func (*CreateEventResponse) ProtoMessage

func (*CreateEventResponse) ProtoMessage()

func (*CreateEventResponse) ProtoReflect

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

func (*CreateEventResponse) Reset

func (x *CreateEventResponse) Reset()

func (*CreateEventResponse) String

func (x *CreateEventResponse) String() string

func (*CreateEventResponse) Validate

func (m *CreateEventResponse) Validate() error

Validate checks the field values on CreateEventResponse 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 (*CreateEventResponse) ValidateAll

func (m *CreateEventResponse) ValidateAll() error

ValidateAll checks the field values on CreateEventResponse 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 CreateEventResponseMultiError, or nil if none found.

type CreateEventResponseMultiError

type CreateEventResponseMultiError []error

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

func (CreateEventResponseMultiError) AllErrors

func (m CreateEventResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateEventResponseMultiError) Error

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

type CreateEventResponseValidationError

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

CreateEventResponseValidationError is the validation error returned by CreateEventResponse.Validate if the designated constraints aren't met.

func (CreateEventResponseValidationError) Cause

Cause function returns cause value.

func (CreateEventResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateEventResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateEventResponseValidationError) Field

Field function returns field value.

func (CreateEventResponseValidationError) Key

Key function returns key value.

func (CreateEventResponseValidationError) Reason

Reason function returns reason value.

type Event

type Event struct {
	Title      string           `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Attributes *EventAttributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"`
	Links      *EventLinks      `protobuf:"bytes,3,opt,name=links,proto3" json:"links,omitempty"`
	Metadata   *EventMetadata   `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetAttributes

func (x *Event) GetAttributes() *EventAttributes
func (x *Event) GetLinks() *EventLinks

func (*Event) GetMetadata

func (x *Event) GetMetadata() *EventMetadata

func (*Event) GetTitle

func (x *Event) GetTitle() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

func (*Event) Validate

func (m *Event) Validate() error

Validate checks the field values on Event 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 (*Event) ValidateAll

func (m *Event) ValidateAll() error

ValidateAll checks the field values on Event 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 EventMultiError, or nil if none found.

type EventAttributes

type EventAttributes struct {
	Message   string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Source    string   `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	Type      Type     `protobuf:"varint,3,opt,name=type,proto3,enum=tracker.event.v1alpha1.Type" json:"type,omitempty"`
	Priority  Priority `protobuf:"varint,4,opt,name=priority,proto3,enum=tracker.event.v1alpha1.Priority" json:"priority,omitempty"`
	RelatedId string   `protobuf:"bytes,5,opt,name=related_id,json=relatedId,proto3" json:"related_id,omitempty"`
	Service   string   `protobuf:"bytes,6,opt,name=service,proto3" json:"service,omitempty"`
	Status    Status   `protobuf:"varint,7,opt,name=status,proto3,enum=tracker.event.v1alpha1.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*EventAttributes) Descriptor deprecated

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

Deprecated: Use EventAttributes.ProtoReflect.Descriptor instead.

func (*EventAttributes) GetMessage

func (x *EventAttributes) GetMessage() string

func (*EventAttributes) GetPriority

func (x *EventAttributes) GetPriority() Priority

func (*EventAttributes) GetRelatedId

func (x *EventAttributes) GetRelatedId() string

func (*EventAttributes) GetService

func (x *EventAttributes) GetService() string

func (*EventAttributes) GetSource

func (x *EventAttributes) GetSource() string

func (*EventAttributes) GetStatus

func (x *EventAttributes) GetStatus() Status

func (*EventAttributes) GetType

func (x *EventAttributes) GetType() Type

func (*EventAttributes) ProtoMessage

func (*EventAttributes) ProtoMessage()

func (*EventAttributes) ProtoReflect

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

func (*EventAttributes) Reset

func (x *EventAttributes) Reset()

func (*EventAttributes) String

func (x *EventAttributes) String() string

func (*EventAttributes) Validate

func (m *EventAttributes) Validate() error

Validate checks the field values on EventAttributes 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 (*EventAttributes) ValidateAll

func (m *EventAttributes) ValidateAll() error

ValidateAll checks the field values on EventAttributes 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 EventAttributesMultiError, or nil if none found.

type EventAttributesMultiError

type EventAttributesMultiError []error

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

func (EventAttributesMultiError) AllErrors

func (m EventAttributesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EventAttributesMultiError) Error

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

type EventAttributesValidationError

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

EventAttributesValidationError is the validation error returned by EventAttributes.Validate if the designated constraints aren't met.

func (EventAttributesValidationError) Cause

Cause function returns cause value.

func (EventAttributesValidationError) Error

Error satisfies the builtin error interface

func (EventAttributesValidationError) ErrorName

func (e EventAttributesValidationError) ErrorName() string

ErrorName returns error name.

func (EventAttributesValidationError) Field

Field function returns field value.

func (EventAttributesValidationError) Key

Key function returns key value.

func (EventAttributesValidationError) Reason

Reason function returns reason value.

type EventLinks struct {
	PullRequestLink string `protobuf:"bytes,1,opt,name=pull_request_link,json=pullRequestLink,proto3" json:"pull_request_link,omitempty"`
	// contains filtered or unexported fields
}

func (*EventLinks) Descriptor deprecated

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

Deprecated: Use EventLinks.ProtoReflect.Descriptor instead.

func (x *EventLinks) GetPullRequestLink() string

func (*EventLinks) ProtoMessage

func (*EventLinks) ProtoMessage()

func (*EventLinks) ProtoReflect

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

func (*EventLinks) Reset

func (x *EventLinks) Reset()

func (*EventLinks) String

func (x *EventLinks) String() string

func (*EventLinks) Validate

func (m *EventLinks) Validate() error

Validate checks the field values on EventLinks 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 (*EventLinks) ValidateAll

func (m *EventLinks) ValidateAll() error

ValidateAll checks the field values on EventLinks 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 EventLinksMultiError, or nil if none found.

type EventLinksMultiError

type EventLinksMultiError []error

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

func (EventLinksMultiError) AllErrors

func (m EventLinksMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EventLinksMultiError) Error

func (m EventLinksMultiError) Error() string

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

type EventLinksValidationError

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

EventLinksValidationError is the validation error returned by EventLinks.Validate if the designated constraints aren't met.

func (EventLinksValidationError) Cause

func (e EventLinksValidationError) Cause() error

Cause function returns cause value.

func (EventLinksValidationError) Error

Error satisfies the builtin error interface

func (EventLinksValidationError) ErrorName

func (e EventLinksValidationError) ErrorName() string

ErrorName returns error name.

func (EventLinksValidationError) Field

Field function returns field value.

func (EventLinksValidationError) Key

Key function returns key value.

func (EventLinksValidationError) Reason

func (e EventLinksValidationError) Reason() string

Reason function returns reason value.

type EventMetadata

type EventMetadata struct {
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Duration  *durationpb.Duration   `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
	Id        string                 `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*EventMetadata) Descriptor deprecated

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

Deprecated: Use EventMetadata.ProtoReflect.Descriptor instead.

func (*EventMetadata) GetCreatedAt

func (x *EventMetadata) GetCreatedAt() *timestamppb.Timestamp

func (*EventMetadata) GetDuration

func (x *EventMetadata) GetDuration() *durationpb.Duration

func (*EventMetadata) GetId

func (x *EventMetadata) GetId() string

func (*EventMetadata) ProtoMessage

func (*EventMetadata) ProtoMessage()

func (*EventMetadata) ProtoReflect

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

func (*EventMetadata) Reset

func (x *EventMetadata) Reset()

func (*EventMetadata) String

func (x *EventMetadata) String() string

func (*EventMetadata) Validate

func (m *EventMetadata) Validate() error

Validate checks the field values on EventMetadata 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 (*EventMetadata) ValidateAll

func (m *EventMetadata) ValidateAll() error

ValidateAll checks the field values on EventMetadata 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 EventMetadataMultiError, or nil if none found.

type EventMetadataMultiError

type EventMetadataMultiError []error

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

func (EventMetadataMultiError) AllErrors

func (m EventMetadataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EventMetadataMultiError) Error

func (m EventMetadataMultiError) Error() string

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

type EventMetadataValidationError

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

EventMetadataValidationError is the validation error returned by EventMetadata.Validate if the designated constraints aren't met.

func (EventMetadataValidationError) Cause

Cause function returns cause value.

func (EventMetadataValidationError) Error

Error satisfies the builtin error interface

func (EventMetadataValidationError) ErrorName

func (e EventMetadataValidationError) ErrorName() string

ErrorName returns error name.

func (EventMetadataValidationError) Field

Field function returns field value.

func (EventMetadataValidationError) Key

Key function returns key value.

func (EventMetadataValidationError) Reason

Reason function returns reason value.

type EventMultiError

type EventMultiError []error

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

func (EventMultiError) AllErrors

func (m EventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EventMultiError) Error

func (m EventMultiError) Error() string

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

type EventServiceClient

type EventServiceClient interface {
	CreateEvent(ctx context.Context, in *CreateEventRequest, opts ...grpc.CallOption) (*CreateEventResponse, error)
	GetEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*GetEventResponse, error)
	SearchEvents(ctx context.Context, in *SearchEventsRequest, opts ...grpc.CallOption) (*SearchEventsResponse, error)
	ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error)
}

EventServiceClient is the client API for EventService 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 EventServiceServer

type EventServiceServer interface {
	CreateEvent(context.Context, *CreateEventRequest) (*CreateEventResponse, error)
	GetEvent(context.Context, *GetEventRequest) (*GetEventResponse, error)
	SearchEvents(context.Context, *SearchEventsRequest) (*SearchEventsResponse, error)
	ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)
	// contains filtered or unexported methods
}

EventServiceServer is the server API for EventService service. All implementations must embed UnimplementedEventServiceServer for forward compatibility

type EventValidationError

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

EventValidationError is the validation error returned by Event.Validate if the designated constraints aren't met.

func (EventValidationError) Cause

func (e EventValidationError) Cause() error

Cause function returns cause value.

func (EventValidationError) Error

func (e EventValidationError) Error() string

Error satisfies the builtin error interface

func (EventValidationError) ErrorName

func (e EventValidationError) ErrorName() string

ErrorName returns error name.

func (EventValidationError) Field

func (e EventValidationError) Field() string

Field function returns field value.

func (EventValidationError) Key

func (e EventValidationError) Key() bool

Key function returns key value.

func (EventValidationError) Reason

func (e EventValidationError) Reason() string

Reason function returns reason value.

type GetEventRequest

type GetEventRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventRequest) Descriptor deprecated

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

Deprecated: Use GetEventRequest.ProtoReflect.Descriptor instead.

func (*GetEventRequest) GetId

func (x *GetEventRequest) GetId() string

func (*GetEventRequest) ProtoMessage

func (*GetEventRequest) ProtoMessage()

func (*GetEventRequest) ProtoReflect

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

func (*GetEventRequest) Reset

func (x *GetEventRequest) Reset()

func (*GetEventRequest) String

func (x *GetEventRequest) String() string

func (*GetEventRequest) Validate

func (m *GetEventRequest) Validate() error

Validate checks the field values on GetEventRequest 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 (*GetEventRequest) ValidateAll

func (m *GetEventRequest) ValidateAll() error

ValidateAll checks the field values on GetEventRequest 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 GetEventRequestMultiError, or nil if none found.

type GetEventRequestMultiError

type GetEventRequestMultiError []error

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

func (GetEventRequestMultiError) AllErrors

func (m GetEventRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetEventRequestMultiError) Error

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

type GetEventRequestValidationError

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

GetEventRequestValidationError is the validation error returned by GetEventRequest.Validate if the designated constraints aren't met.

func (GetEventRequestValidationError) Cause

Cause function returns cause value.

func (GetEventRequestValidationError) Error

Error satisfies the builtin error interface

func (GetEventRequestValidationError) ErrorName

func (e GetEventRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetEventRequestValidationError) Field

Field function returns field value.

func (GetEventRequestValidationError) Key

Key function returns key value.

func (GetEventRequestValidationError) Reason

Reason function returns reason value.

type GetEventResponse

type GetEventResponse struct {
	Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventResponse) Descriptor deprecated

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

Deprecated: Use GetEventResponse.ProtoReflect.Descriptor instead.

func (*GetEventResponse) GetEvent

func (x *GetEventResponse) GetEvent() *Event

func (*GetEventResponse) ProtoMessage

func (*GetEventResponse) ProtoMessage()

func (*GetEventResponse) ProtoReflect

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

func (*GetEventResponse) Reset

func (x *GetEventResponse) Reset()

func (*GetEventResponse) String

func (x *GetEventResponse) String() string

func (*GetEventResponse) Validate

func (m *GetEventResponse) Validate() error

Validate checks the field values on GetEventResponse 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 (*GetEventResponse) ValidateAll

func (m *GetEventResponse) ValidateAll() error

ValidateAll checks the field values on GetEventResponse 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 GetEventResponseMultiError, or nil if none found.

type GetEventResponseMultiError

type GetEventResponseMultiError []error

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

func (GetEventResponseMultiError) AllErrors

func (m GetEventResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetEventResponseMultiError) Error

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

type GetEventResponseValidationError

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

GetEventResponseValidationError is the validation error returned by GetEventResponse.Validate if the designated constraints aren't met.

func (GetEventResponseValidationError) Cause

Cause function returns cause value.

func (GetEventResponseValidationError) Error

Error satisfies the builtin error interface

func (GetEventResponseValidationError) ErrorName

ErrorName returns error name.

func (GetEventResponseValidationError) Field

Field function returns field value.

func (GetEventResponseValidationError) Key

Key function returns key value.

func (GetEventResponseValidationError) Reason

Reason function returns reason value.

type ListEventsRequest

type ListEventsRequest struct {
	PerPage *wrapperspb.UInt32Value `protobuf:"bytes,1,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"`
	Page    *wrapperspb.Int32Value  `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEventsRequest) Descriptor deprecated

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

Deprecated: Use ListEventsRequest.ProtoReflect.Descriptor instead.

func (*ListEventsRequest) GetPage

func (x *ListEventsRequest) GetPage() *wrapperspb.Int32Value

func (*ListEventsRequest) GetPerPage

func (x *ListEventsRequest) GetPerPage() *wrapperspb.UInt32Value

func (*ListEventsRequest) ProtoMessage

func (*ListEventsRequest) ProtoMessage()

func (*ListEventsRequest) ProtoReflect

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

func (*ListEventsRequest) Reset

func (x *ListEventsRequest) Reset()

func (*ListEventsRequest) String

func (x *ListEventsRequest) String() string

func (*ListEventsRequest) Validate

func (m *ListEventsRequest) Validate() error

Validate checks the field values on ListEventsRequest 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 (*ListEventsRequest) ValidateAll

func (m *ListEventsRequest) ValidateAll() error

ValidateAll checks the field values on ListEventsRequest 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 ListEventsRequestMultiError, or nil if none found.

type ListEventsRequestMultiError

type ListEventsRequestMultiError []error

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

func (ListEventsRequestMultiError) AllErrors

func (m ListEventsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListEventsRequestMultiError) Error

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

type ListEventsRequestValidationError

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

ListEventsRequestValidationError is the validation error returned by ListEventsRequest.Validate if the designated constraints aren't met.

func (ListEventsRequestValidationError) Cause

Cause function returns cause value.

func (ListEventsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListEventsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListEventsRequestValidationError) Field

Field function returns field value.

func (ListEventsRequestValidationError) Key

Key function returns key value.

func (ListEventsRequestValidationError) Reason

Reason function returns reason value.

type ListEventsResponse

type ListEventsResponse struct {
	Events     []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	TotalCount uint32   `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEventsResponse) Descriptor deprecated

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

Deprecated: Use ListEventsResponse.ProtoReflect.Descriptor instead.

func (*ListEventsResponse) GetEvents

func (x *ListEventsResponse) GetEvents() []*Event

func (*ListEventsResponse) GetTotalCount

func (x *ListEventsResponse) GetTotalCount() uint32

func (*ListEventsResponse) ProtoMessage

func (*ListEventsResponse) ProtoMessage()

func (*ListEventsResponse) ProtoReflect

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

func (*ListEventsResponse) Reset

func (x *ListEventsResponse) Reset()

func (*ListEventsResponse) String

func (x *ListEventsResponse) String() string

func (*ListEventsResponse) Validate

func (m *ListEventsResponse) Validate() error

Validate checks the field values on ListEventsResponse 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 (*ListEventsResponse) ValidateAll

func (m *ListEventsResponse) ValidateAll() error

ValidateAll checks the field values on ListEventsResponse 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 ListEventsResponseMultiError, or nil if none found.

type ListEventsResponseMultiError

type ListEventsResponseMultiError []error

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

func (ListEventsResponseMultiError) AllErrors

func (m ListEventsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListEventsResponseMultiError) Error

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

type ListEventsResponseValidationError

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

ListEventsResponseValidationError is the validation error returned by ListEventsResponse.Validate if the designated constraints aren't met.

func (ListEventsResponseValidationError) Cause

Cause function returns cause value.

func (ListEventsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListEventsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListEventsResponseValidationError) Field

Field function returns field value.

func (ListEventsResponseValidationError) Key

Key function returns key value.

func (ListEventsResponseValidationError) Reason

Reason function returns reason value.

type Priority

type Priority int32
const (
	Priority_PRIORITY_UNSPECIFIED Priority = 0
	Priority_P1                   Priority = 1
	Priority_P2                   Priority = 3
	Priority_P3                   Priority = 4
	Priority_P4                   Priority = 5
)

func (Priority) Descriptor

func (Priority) Descriptor() protoreflect.EnumDescriptor

func (Priority) Enum

func (x Priority) Enum() *Priority

func (Priority) EnumDescriptor deprecated

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

Deprecated: Use Priority.Descriptor instead.

func (Priority) Number

func (x Priority) Number() protoreflect.EnumNumber

func (Priority) String

func (x Priority) String() string

func (Priority) Type

type SearchEventsRequest

type SearchEventsRequest struct {
	Source    string   `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Type      Type     `protobuf:"varint,2,opt,name=type,proto3,enum=tracker.event.v1alpha1.Type" json:"type,omitempty"`
	Priority  Priority `protobuf:"varint,3,opt,name=priority,proto3,enum=tracker.event.v1alpha1.Priority" json:"priority,omitempty"`
	Status    Status   `protobuf:"varint,4,opt,name=status,proto3,enum=tracker.event.v1alpha1.Status" json:"status,omitempty"`
	Service   string   `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"`
	StartDate string   `protobuf:"bytes,6,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	EndDate   string   `protobuf:"bytes,7,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchEventsRequest) Descriptor deprecated

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

Deprecated: Use SearchEventsRequest.ProtoReflect.Descriptor instead.

func (*SearchEventsRequest) GetEndDate

func (x *SearchEventsRequest) GetEndDate() string

func (*SearchEventsRequest) GetPriority

func (x *SearchEventsRequest) GetPriority() Priority

func (*SearchEventsRequest) GetService

func (x *SearchEventsRequest) GetService() string

func (*SearchEventsRequest) GetSource

func (x *SearchEventsRequest) GetSource() string

func (*SearchEventsRequest) GetStartDate

func (x *SearchEventsRequest) GetStartDate() string

func (*SearchEventsRequest) GetStatus

func (x *SearchEventsRequest) GetStatus() Status

func (*SearchEventsRequest) GetType

func (x *SearchEventsRequest) GetType() Type

func (*SearchEventsRequest) ProtoMessage

func (*SearchEventsRequest) ProtoMessage()

func (*SearchEventsRequest) ProtoReflect

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

func (*SearchEventsRequest) Reset

func (x *SearchEventsRequest) Reset()

func (*SearchEventsRequest) String

func (x *SearchEventsRequest) String() string

func (*SearchEventsRequest) Validate

func (m *SearchEventsRequest) Validate() error

Validate checks the field values on SearchEventsRequest 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 (*SearchEventsRequest) ValidateAll

func (m *SearchEventsRequest) ValidateAll() error

ValidateAll checks the field values on SearchEventsRequest 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 SearchEventsRequestMultiError, or nil if none found.

type SearchEventsRequestMultiError

type SearchEventsRequestMultiError []error

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

func (SearchEventsRequestMultiError) AllErrors

func (m SearchEventsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SearchEventsRequestMultiError) Error

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

type SearchEventsRequestValidationError

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

SearchEventsRequestValidationError is the validation error returned by SearchEventsRequest.Validate if the designated constraints aren't met.

func (SearchEventsRequestValidationError) Cause

Cause function returns cause value.

func (SearchEventsRequestValidationError) Error

Error satisfies the builtin error interface

func (SearchEventsRequestValidationError) ErrorName

ErrorName returns error name.

func (SearchEventsRequestValidationError) Field

Field function returns field value.

func (SearchEventsRequestValidationError) Key

Key function returns key value.

func (SearchEventsRequestValidationError) Reason

Reason function returns reason value.

type SearchEventsResponse

type SearchEventsResponse struct {
	Events     []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	TotalCount uint32   `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchEventsResponse) Descriptor deprecated

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

Deprecated: Use SearchEventsResponse.ProtoReflect.Descriptor instead.

func (*SearchEventsResponse) GetEvents

func (x *SearchEventsResponse) GetEvents() []*Event

func (*SearchEventsResponse) GetTotalCount

func (x *SearchEventsResponse) GetTotalCount() uint32

func (*SearchEventsResponse) ProtoMessage

func (*SearchEventsResponse) ProtoMessage()

func (*SearchEventsResponse) ProtoReflect

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

func (*SearchEventsResponse) Reset

func (x *SearchEventsResponse) Reset()

func (*SearchEventsResponse) String

func (x *SearchEventsResponse) String() string

func (*SearchEventsResponse) Validate

func (m *SearchEventsResponse) Validate() error

Validate checks the field values on SearchEventsResponse 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 (*SearchEventsResponse) ValidateAll

func (m *SearchEventsResponse) ValidateAll() error

ValidateAll checks the field values on SearchEventsResponse 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 SearchEventsResponseMultiError, or nil if none found.

type SearchEventsResponseMultiError

type SearchEventsResponseMultiError []error

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

func (SearchEventsResponseMultiError) AllErrors

func (m SearchEventsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SearchEventsResponseMultiError) Error

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

type SearchEventsResponseValidationError

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

SearchEventsResponseValidationError is the validation error returned by SearchEventsResponse.Validate if the designated constraints aren't met.

func (SearchEventsResponseValidationError) Cause

Cause function returns cause value.

func (SearchEventsResponseValidationError) Error

Error satisfies the builtin error interface

func (SearchEventsResponseValidationError) ErrorName

ErrorName returns error name.

func (SearchEventsResponseValidationError) Field

Field function returns field value.

func (SearchEventsResponseValidationError) Key

Key function returns key value.

func (SearchEventsResponseValidationError) Reason

Reason function returns reason value.

type Status

type Status int32
const (
	Status_STATUS_UNSPECIFIED Status = 0
	Status_start              Status = 1
	Status_failure            Status = 2
	Status_success            Status = 3
	Status_warning            Status = 4
	Status_error              Status = 5
	Status_snapshot           Status = 6
	Status_user_update        Status = 7
	Status_recommandation     Status = 8
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type Type

type Type int32
const (
	Type_TYPE_UNSPECIFIED Type = 0
	Type_deployment       Type = 1
	Type_operation        Type = 2
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

type UnimplementedEventServiceServer

type UnimplementedEventServiceServer struct {
}

UnimplementedEventServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEventServiceServer) CreateEvent

func (UnimplementedEventServiceServer) GetEvent

func (UnimplementedEventServiceServer) ListEvents

func (UnimplementedEventServiceServer) SearchEvents

type UnsafeEventServiceServer

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

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

Jump to

Keyboard shortcuts

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