v1

package
v0.6.310 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AlertService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.alert.v1.AlertService",
	HandlerType: (*AlertServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListAlerts",
			Handler:    _AlertService_ListAlerts_Handler,
		},
		{
			MethodName: "CreateAlert",
			Handler:    _AlertService_CreateAlert_Handler,
		},
		{
			MethodName: "GetAlert",
			Handler:    _AlertService_GetAlert_Handler,
		},
		{
			MethodName: "UpdateAlert",
			Handler:    _AlertService_UpdateAlert_Handler,
		},
		{
			MethodName: "DeleteAlert",
			Handler:    _AlertService_DeleteAlert_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/alert/v1/alert.proto",
}

AlertService_ServiceDesc is the grpc.ServiceDesc for AlertService 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_github_com_metaprov_modelaapi_services_alert_v1_alert_proto protoreflect.FileDescriptor

Functions

func RegisterAlertServiceServer

func RegisterAlertServiceServer(s grpc.ServiceRegistrar, srv AlertServiceServer)

Types

type AlertResponse

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

func (*AlertResponse) Descriptor deprecated

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

Deprecated: Use AlertResponse.ProtoReflect.Descriptor instead.

func (*AlertResponse) ProtoMessage

func (*AlertResponse) ProtoMessage()

func (*AlertResponse) ProtoReflect

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

func (*AlertResponse) Reset

func (x *AlertResponse) Reset()

func (*AlertResponse) String

func (x *AlertResponse) String() string

type AlertServiceClient

type AlertServiceClient interface {
	ListAlerts(ctx context.Context, in *ListAlertsRequest, opts ...grpc.CallOption) (*ListAlertsResponse, error)
	CreateAlert(ctx context.Context, in *CreateAlertRequest, opts ...grpc.CallOption) (*CreateAlertResponse, error)
	GetAlert(ctx context.Context, in *GetAlertRequest, opts ...grpc.CallOption) (*GetAlertResponse, error)
	UpdateAlert(ctx context.Context, in *UpdateAlertRequest, opts ...grpc.CallOption) (*UpdateAlertResponse, error)
	DeleteAlert(ctx context.Context, in *DeleteAlertRequest, opts ...grpc.CallOption) (*DeleteAlertResponse, error)
}

AlertServiceClient is the client API for AlertService 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 AlertServiceServer

type AlertServiceServer interface {
	ListAlerts(context.Context, *ListAlertsRequest) (*ListAlertsResponse, error)
	CreateAlert(context.Context, *CreateAlertRequest) (*CreateAlertResponse, error)
	GetAlert(context.Context, *GetAlertRequest) (*GetAlertResponse, error)
	UpdateAlert(context.Context, *UpdateAlertRequest) (*UpdateAlertResponse, error)
	DeleteAlert(context.Context, *DeleteAlertRequest) (*DeleteAlertResponse, error)
	// contains filtered or unexported methods
}

AlertServiceServer is the server API for AlertService service. All implementations must embed UnimplementedAlertServiceServer for forward compatibility

type CreateAlertRequest

type CreateAlertRequest struct {
	Alert *v1alpha1.Alert `protobuf:"bytes,1,opt,name=alert,proto3" json:"alert,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAlertRequest) Descriptor deprecated

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

Deprecated: Use CreateAlertRequest.ProtoReflect.Descriptor instead.

func (*CreateAlertRequest) GetAlert added in v0.4.475

func (x *CreateAlertRequest) GetAlert() *v1alpha1.Alert

func (*CreateAlertRequest) ProtoMessage

func (*CreateAlertRequest) ProtoMessage()

func (*CreateAlertRequest) ProtoReflect

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

func (*CreateAlertRequest) Reset

func (x *CreateAlertRequest) Reset()

func (*CreateAlertRequest) String

func (x *CreateAlertRequest) String() string

type CreateAlertResponse

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

func (*CreateAlertResponse) Descriptor deprecated

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

Deprecated: Use CreateAlertResponse.ProtoReflect.Descriptor instead.

func (*CreateAlertResponse) ProtoMessage

func (*CreateAlertResponse) ProtoMessage()

func (*CreateAlertResponse) ProtoReflect

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

func (*CreateAlertResponse) Reset

func (x *CreateAlertResponse) Reset()

func (*CreateAlertResponse) String

func (x *CreateAlertResponse) String() string

type DeleteAlertRequest

type DeleteAlertRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAlertRequest) Descriptor deprecated

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

Deprecated: Use DeleteAlertRequest.ProtoReflect.Descriptor instead.

func (*DeleteAlertRequest) GetName

func (x *DeleteAlertRequest) GetName() string

func (*DeleteAlertRequest) GetNamespace

func (x *DeleteAlertRequest) GetNamespace() string

func (*DeleteAlertRequest) ProtoMessage

func (*DeleteAlertRequest) ProtoMessage()

func (*DeleteAlertRequest) ProtoReflect

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

func (*DeleteAlertRequest) Reset

func (x *DeleteAlertRequest) Reset()

func (*DeleteAlertRequest) String

func (x *DeleteAlertRequest) String() string

type DeleteAlertResponse

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

func (*DeleteAlertResponse) Descriptor deprecated

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

Deprecated: Use DeleteAlertResponse.ProtoReflect.Descriptor instead.

func (*DeleteAlertResponse) ProtoMessage

func (*DeleteAlertResponse) ProtoMessage()

func (*DeleteAlertResponse) ProtoReflect

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

func (*DeleteAlertResponse) Reset

func (x *DeleteAlertResponse) Reset()

func (*DeleteAlertResponse) String

func (x *DeleteAlertResponse) String() string

type GetAlertNamespacesRequest

type GetAlertNamespacesRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAlertNamespacesRequest) Descriptor deprecated

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

Deprecated: Use GetAlertNamespacesRequest.ProtoReflect.Descriptor instead.

func (*GetAlertNamespacesRequest) GetName

func (x *GetAlertNamespacesRequest) GetName() string

func (*GetAlertNamespacesRequest) GetNamespace

func (x *GetAlertNamespacesRequest) GetNamespace() string

func (*GetAlertNamespacesRequest) ProtoMessage

func (*GetAlertNamespacesRequest) ProtoMessage()

func (*GetAlertNamespacesRequest) ProtoReflect

func (*GetAlertNamespacesRequest) Reset

func (x *GetAlertNamespacesRequest) Reset()

func (*GetAlertNamespacesRequest) String

func (x *GetAlertNamespacesRequest) String() string

type GetAlertNamespacesResponse

type GetAlertNamespacesResponse struct {
	Namespaces []*v1.NamespaceInfo `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAlertNamespacesResponse) Descriptor deprecated

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

Deprecated: Use GetAlertNamespacesResponse.ProtoReflect.Descriptor instead.

func (*GetAlertNamespacesResponse) GetNamespaces

func (x *GetAlertNamespacesResponse) GetNamespaces() []*v1.NamespaceInfo

func (*GetAlertNamespacesResponse) ProtoMessage

func (*GetAlertNamespacesResponse) ProtoMessage()

func (*GetAlertNamespacesResponse) ProtoReflect

func (*GetAlertNamespacesResponse) Reset

func (x *GetAlertNamespacesResponse) Reset()

func (*GetAlertNamespacesResponse) String

func (x *GetAlertNamespacesResponse) String() string

type GetAlertRequest

type GetAlertRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAlertRequest) Descriptor deprecated

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

Deprecated: Use GetAlertRequest.ProtoReflect.Descriptor instead.

func (*GetAlertRequest) GetName

func (x *GetAlertRequest) GetName() string

func (*GetAlertRequest) GetNamespace

func (x *GetAlertRequest) GetNamespace() string

func (*GetAlertRequest) ProtoMessage

func (*GetAlertRequest) ProtoMessage()

func (*GetAlertRequest) ProtoReflect

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

func (*GetAlertRequest) Reset

func (x *GetAlertRequest) Reset()

func (*GetAlertRequest) String

func (x *GetAlertRequest) String() string

type GetAlertResponse

type GetAlertResponse struct {
	Alert *v1alpha1.Alert `protobuf:"bytes,1,opt,name=alert,proto3" json:"alert,omitempty"`
	Yaml  string          `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAlertResponse) Descriptor deprecated

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

Deprecated: Use GetAlertResponse.ProtoReflect.Descriptor instead.

func (*GetAlertResponse) GetAlert added in v0.4.475

func (x *GetAlertResponse) GetAlert() *v1alpha1.Alert

func (*GetAlertResponse) GetYaml

func (x *GetAlertResponse) GetYaml() string

func (*GetAlertResponse) ProtoMessage

func (*GetAlertResponse) ProtoMessage()

func (*GetAlertResponse) ProtoReflect

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

func (*GetAlertResponse) Reset

func (x *GetAlertResponse) Reset()

func (*GetAlertResponse) String

func (x *GetAlertResponse) String() string

type ListAlertsRequest

type ListAlertsRequest struct {
	Namespace string            `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Labels    map[string]string `` /* 153-byte string literal not displayed */
	PageSize  int32             `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string            `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	OrderBy   string            `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAlertsRequest) Descriptor deprecated

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

Deprecated: Use ListAlertsRequest.ProtoReflect.Descriptor instead.

func (*ListAlertsRequest) GetLabels

func (x *ListAlertsRequest) GetLabels() map[string]string

func (*ListAlertsRequest) GetNamespace

func (x *ListAlertsRequest) GetNamespace() string

func (*ListAlertsRequest) GetOrderBy added in v0.4.414

func (x *ListAlertsRequest) GetOrderBy() string

func (*ListAlertsRequest) GetPageSize added in v0.4.414

func (x *ListAlertsRequest) GetPageSize() int32

func (*ListAlertsRequest) GetPageToken added in v0.4.414

func (x *ListAlertsRequest) GetPageToken() string

func (*ListAlertsRequest) ProtoMessage

func (*ListAlertsRequest) ProtoMessage()

func (*ListAlertsRequest) ProtoReflect

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

func (*ListAlertsRequest) Reset

func (x *ListAlertsRequest) Reset()

func (*ListAlertsRequest) String

func (x *ListAlertsRequest) String() string

type ListAlertsResponse

type ListAlertsResponse struct {
	Alerts        *v1alpha1.AlertList `protobuf:"bytes,1,opt,name=alerts,proto3" json:"alerts,omitempty"`
	NextPageToken string              `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAlertsResponse) Descriptor deprecated

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

Deprecated: Use ListAlertsResponse.ProtoReflect.Descriptor instead.

func (*ListAlertsResponse) GetAlerts added in v0.4.471

func (x *ListAlertsResponse) GetAlerts() *v1alpha1.AlertList

func (*ListAlertsResponse) GetNextPageToken added in v0.4.471

func (x *ListAlertsResponse) GetNextPageToken() string

func (*ListAlertsResponse) ProtoMessage

func (*ListAlertsResponse) ProtoMessage()

func (*ListAlertsResponse) ProtoReflect

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

func (*ListAlertsResponse) Reset

func (x *ListAlertsResponse) Reset()

func (*ListAlertsResponse) String

func (x *ListAlertsResponse) String() string

type UnimplementedAlertServiceServer

type UnimplementedAlertServiceServer struct {
}

UnimplementedAlertServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAlertServiceServer) CreateAlert

func (UnimplementedAlertServiceServer) DeleteAlert

func (UnimplementedAlertServiceServer) GetAlert

func (UnimplementedAlertServiceServer) ListAlerts

func (UnimplementedAlertServiceServer) UpdateAlert

type UnsafeAlertServiceServer added in v0.4.687

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

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

type UpdateAlertRequest

type UpdateAlertRequest struct {
	Alert      *v1alpha1.Alert       `protobuf:"bytes,1,opt,name=alert,proto3" json:"alert,omitempty"`
	UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAlertRequest) Descriptor deprecated

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

Deprecated: Use UpdateAlertRequest.ProtoReflect.Descriptor instead.

func (*UpdateAlertRequest) GetAlert added in v0.4.475

func (x *UpdateAlertRequest) GetAlert() *v1alpha1.Alert

func (*UpdateAlertRequest) GetUpdateMask added in v0.4.475

func (x *UpdateAlertRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateAlertRequest) ProtoMessage

func (*UpdateAlertRequest) ProtoMessage()

func (*UpdateAlertRequest) ProtoReflect

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

func (*UpdateAlertRequest) Reset

func (x *UpdateAlertRequest) Reset()

func (*UpdateAlertRequest) String

func (x *UpdateAlertRequest) String() string

type UpdateAlertResponse

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

func (*UpdateAlertResponse) Descriptor deprecated

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

Deprecated: Use UpdateAlertResponse.ProtoReflect.Descriptor instead.

func (*UpdateAlertResponse) ProtoMessage

func (*UpdateAlertResponse) ProtoMessage()

func (*UpdateAlertResponse) ProtoReflect

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

func (*UpdateAlertResponse) Reset

func (x *UpdateAlertResponse) Reset()

func (*UpdateAlertResponse) String

func (x *UpdateAlertResponse) String() string

Jump to

Keyboard shortcuts

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