v1

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Package v1 is a generated protocol buffer package.

It is generated from these files:

pkg/handler-launcher-com/notify/v1/notify.proto

It has these top-level messages:

	DomainEventRequest
	K8SEventRequest
	Response

 * This file is part of the KubeVirt project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Copyright 2019 Red Hat, Inc.
 *

Index

Constants

View Source
const NotifyVersion = 1

Variables

This section is empty.

Functions

func RegisterNotifyServer

func RegisterNotifyServer(s *grpc.Server, srv NotifyServer)

Types

type DomainEventRequest

type DomainEventRequest struct {
	DomainJSON []byte `protobuf:"bytes,1,opt,name=domainJSON,proto3" json:"domainJSON,omitempty"`
	StatusJSON []byte `protobuf:"bytes,2,opt,name=statusJSON,proto3" json:"statusJSON,omitempty"`
	EventType  string `protobuf:"bytes,3,opt,name=eventType" json:"eventType,omitempty"`
}

func (*DomainEventRequest) Descriptor

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

func (*DomainEventRequest) GetDomainJSON

func (m *DomainEventRequest) GetDomainJSON() []byte

func (*DomainEventRequest) GetEventType

func (m *DomainEventRequest) GetEventType() string

func (*DomainEventRequest) GetStatusJSON

func (m *DomainEventRequest) GetStatusJSON() []byte

func (*DomainEventRequest) ProtoMessage

func (*DomainEventRequest) ProtoMessage()

func (*DomainEventRequest) Reset

func (m *DomainEventRequest) Reset()

func (*DomainEventRequest) String

func (m *DomainEventRequest) String() string

type K8SEventRequest

type K8SEventRequest struct {
	EventJSON []byte `protobuf:"bytes,1,opt,name=eventJSON,proto3" json:"eventJSON,omitempty"`
}

func (*K8SEventRequest) Descriptor

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

func (*K8SEventRequest) GetEventJSON

func (m *K8SEventRequest) GetEventJSON() []byte

func (*K8SEventRequest) ProtoMessage

func (*K8SEventRequest) ProtoMessage()

func (*K8SEventRequest) Reset

func (m *K8SEventRequest) Reset()

func (*K8SEventRequest) String

func (m *K8SEventRequest) String() string

type NotifyClient

type NotifyClient interface {
	HandleDomainEvent(ctx context.Context, in *DomainEventRequest, opts ...grpc.CallOption) (*Response, error)
	HandleK8SEvent(ctx context.Context, in *K8SEventRequest, opts ...grpc.CallOption) (*Response, error)
}

func NewNotifyClient

func NewNotifyClient(cc *grpc.ClientConn) NotifyClient

type NotifyServer

type NotifyServer interface {
	HandleDomainEvent(context.Context, *DomainEventRequest) (*Response, error)
	HandleK8SEvent(context.Context, *K8SEventRequest) (*Response, error)
}

type Response

type Response struct {
	Success bool   `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
}

func (*Response) Descriptor

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

func (*Response) GetMessage

func (m *Response) GetMessage() string

func (*Response) GetSuccess

func (m *Response) GetSuccess() bool

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

Jump to

Keyboard shortcuts

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