v1

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package v1 is a generated protocol buffer package.

It is generated from these files:

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

It has these top-level messages:

	VMI
	VMIRequest
	MigrationRequest
	EmptyRequest
	Response
	DomainResponse
	DomainStatsResponse

 * 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 CmdVersion = 1

Variables

This section is empty.

Functions

func RegisterCmdServer

func RegisterCmdServer(s *grpc.Server, srv CmdServer)

Types

type CmdClient

type CmdClient interface {
	SyncVirtualMachine(ctx context.Context, in *VMIRequest, opts ...grpc.CallOption) (*Response, error)
	ShutdownVirtualMachine(ctx context.Context, in *VMIRequest, opts ...grpc.CallOption) (*Response, error)
	KillVirtualMachine(ctx context.Context, in *VMIRequest, opts ...grpc.CallOption) (*Response, error)
	DeleteVirtualMachine(ctx context.Context, in *VMIRequest, opts ...grpc.CallOption) (*Response, error)
	MigrateVirtualMachine(ctx context.Context, in *MigrationRequest, opts ...grpc.CallOption) (*Response, error)
	SyncMigrationTarget(ctx context.Context, in *VMIRequest, opts ...grpc.CallOption) (*Response, error)
	CancelVirtualMachineMigration(ctx context.Context, in *VMIRequest, opts ...grpc.CallOption) (*Response, error)
	GetDomain(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*DomainResponse, error)
	GetDomainStats(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*DomainStatsResponse, error)
	Ping(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Response, error)
}

func NewCmdClient

func NewCmdClient(cc *grpc.ClientConn) CmdClient

type CmdServer

type CmdServer interface {
	SyncVirtualMachine(context.Context, *VMIRequest) (*Response, error)
	ShutdownVirtualMachine(context.Context, *VMIRequest) (*Response, error)
	KillVirtualMachine(context.Context, *VMIRequest) (*Response, error)
	DeleteVirtualMachine(context.Context, *VMIRequest) (*Response, error)
	MigrateVirtualMachine(context.Context, *MigrationRequest) (*Response, error)
	SyncMigrationTarget(context.Context, *VMIRequest) (*Response, error)
	CancelVirtualMachineMigration(context.Context, *VMIRequest) (*Response, error)
	GetDomain(context.Context, *EmptyRequest) (*DomainResponse, error)
	GetDomainStats(context.Context, *EmptyRequest) (*DomainStatsResponse, error)
	Ping(context.Context, *EmptyRequest) (*Response, error)
}

type DomainResponse

type DomainResponse struct {
	Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
	Domain   string    `protobuf:"bytes,2,opt,name=domain" json:"domain,omitempty"`
}

func (*DomainResponse) Descriptor

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

func (*DomainResponse) GetDomain

func (m *DomainResponse) GetDomain() string

func (*DomainResponse) GetResponse

func (m *DomainResponse) GetResponse() *Response

func (*DomainResponse) ProtoMessage

func (*DomainResponse) ProtoMessage()

func (*DomainResponse) Reset

func (m *DomainResponse) Reset()

func (*DomainResponse) String

func (m *DomainResponse) String() string

type DomainStatsResponse

type DomainStatsResponse struct {
	Response    *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
	DomainStats string    `protobuf:"bytes,2,opt,name=domainStats" json:"domainStats,omitempty"`
}

func (*DomainStatsResponse) Descriptor

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

func (*DomainStatsResponse) GetDomainStats

func (m *DomainStatsResponse) GetDomainStats() string

func (*DomainStatsResponse) GetResponse

func (m *DomainStatsResponse) GetResponse() *Response

func (*DomainStatsResponse) ProtoMessage

func (*DomainStatsResponse) ProtoMessage()

func (*DomainStatsResponse) Reset

func (m *DomainStatsResponse) Reset()

func (*DomainStatsResponse) String

func (m *DomainStatsResponse) String() string

type EmptyRequest

type EmptyRequest struct {
}

func (*EmptyRequest) Descriptor

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

func (*EmptyRequest) ProtoMessage

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) Reset

func (m *EmptyRequest) Reset()

func (*EmptyRequest) String

func (m *EmptyRequest) String() string

type MigrationRequest

type MigrationRequest struct {
	Vmi     *VMI   `protobuf:"bytes,1,opt,name=vmi" json:"vmi,omitempty"`
	Options []byte `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
}

func (*MigrationRequest) Descriptor

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

func (*MigrationRequest) GetOptions

func (m *MigrationRequest) GetOptions() []byte

func (*MigrationRequest) GetVmi

func (m *MigrationRequest) GetVmi() *VMI

func (*MigrationRequest) ProtoMessage

func (*MigrationRequest) ProtoMessage()

func (*MigrationRequest) Reset

func (m *MigrationRequest) Reset()

func (*MigrationRequest) String

func (m *MigrationRequest) String() string

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

type VMI

type VMI struct {
	VmiJson []byte `protobuf:"bytes,1,opt,name=vmiJson,proto3" json:"vmiJson,omitempty"`
}

func (*VMI) Descriptor

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

func (*VMI) GetVmiJson

func (m *VMI) GetVmiJson() []byte

func (*VMI) ProtoMessage

func (*VMI) ProtoMessage()

func (*VMI) Reset

func (m *VMI) Reset()

func (*VMI) String

func (m *VMI) String() string

type VMIRequest

type VMIRequest struct {
	Vmi *VMI `protobuf:"bytes,1,opt,name=vmi" json:"vmi,omitempty"`
}

func (*VMIRequest) Descriptor

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

func (*VMIRequest) GetVmi

func (m *VMIRequest) GetVmi() *VMI

func (*VMIRequest) ProtoMessage

func (*VMIRequest) ProtoMessage()

func (*VMIRequest) Reset

func (m *VMIRequest) Reset()

func (*VMIRequest) String

func (m *VMIRequest) String() string

Jump to

Keyboard shortcuts

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