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) GetPriority ¶
func (*HookPoint) ProtoMessage ¶
func (*HookPoint) ProtoMessage()
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)
}
Click to show internal directories.
Click to hide internal directories.