info

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 14

Documentation

Overview

Package info is a generated protocol buffer package.

It is generated from these files:

api_info.proto

It has these top-level messages:

InfoParams
InfoResult
HookPoint

Index

Constants

View Source
const OnDefineDomainHookPointName = "OnDefineDomain"
View Source
const PreCloudInitIsoHookPointName = "PreCloudInitIso"
View Source
const ShutdownHookPointName = "Shutdown"

Variables

This section is empty.

Functions

func RegisterInfoServer

func RegisterInfoServer(s *grpc.Server, srv InfoServer)

Types

type HookPoint

type HookPoint struct {
	// name represents name of the subscribed hook point
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// priority is used to sort hooks prior to their execution (second key is the name)
	Priority int32 `protobuf:"varint,2,opt,name=priority" json:"priority,omitempty"`
}

func (*HookPoint) Descriptor

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

func (*HookPoint) GetName

func (m *HookPoint) GetName() string

func (*HookPoint) GetPriority

func (m *HookPoint) GetPriority() int32

func (*HookPoint) ProtoMessage

func (*HookPoint) ProtoMessage()

func (*HookPoint) Reset

func (m *HookPoint) Reset()

func (*HookPoint) String

func (m *HookPoint) String() string

type InfoClient

type InfoClient interface {
	Info(ctx context.Context, in *InfoParams, opts ...grpc.CallOption) (*InfoResult, error)
}

func NewInfoClient

func NewInfoClient(cc *grpc.ClientConn) InfoClient

type InfoParams

type InfoParams struct {
}

func (*InfoParams) Descriptor

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

func (*InfoParams) ProtoMessage

func (*InfoParams) ProtoMessage()

func (*InfoParams) Reset

func (m *InfoParams) Reset()

func (*InfoParams) String

func (m *InfoParams) String() string

type InfoResult

type InfoResult struct {
	// name of the hook used by virt-launcher to compare it with requested hooks
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// hookPoints is a list of subscribed hook points
	HookPoints []*HookPoint `protobuf:"bytes,3,rep,name=hookPoints" json:"hookPoints,omitempty"`
	// versions is a list of implemented hook Callbacks service versions
	Versions []string `protobuf:"bytes,4,rep,name=versions" json:"versions,omitempty"`
}

func (*InfoResult) Descriptor

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

func (*InfoResult) GetHookPoints

func (m *InfoResult) GetHookPoints() []*HookPoint

func (*InfoResult) GetName

func (m *InfoResult) GetName() string

func (*InfoResult) GetVersions

func (m *InfoResult) GetVersions() []string

func (*InfoResult) ProtoMessage

func (*InfoResult) ProtoMessage()

func (*InfoResult) Reset

func (m *InfoResult) Reset()

func (*InfoResult) String

func (m *InfoResult) String() string

type InfoServer

type InfoServer interface {
	Info(context.Context, *InfoParams) (*InfoResult, error)
}

Jump to

Keyboard shortcuts

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