2017-11-17 02:44:11 +03:00
|
|
|
// Copyright 2017 The go-libvirt Authors.
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
|
2017-11-03 20:58:41 +03:00
|
|
|
/*
|
|
|
|
* This file generated by internal/lvgen/generate.go. DO NOT EDIT BY HAND!
|
|
|
|
*
|
|
|
|
* To regenerate, run 'go generate' in internal/lvgen.
|
|
|
|
*/
|
|
|
|
|
2017-11-16 23:49:40 +03:00
|
|
|
// Package constants contains libvirt procedure identifiers and other enums and
|
|
|
|
// constants.
|
2017-11-03 20:58:41 +03:00
|
|
|
package constants
|
|
|
|
|
|
|
|
// These are libvirt procedure numbers which correspond to each respective
|
|
|
|
// API call between remote_internal driver and libvirtd. Each procedure is
|
|
|
|
// identified by a unique number which *may change in any future libvirt
|
|
|
|
// update*.
|
|
|
|
//
|
|
|
|
// Examples:
|
|
|
|
// REMOTE_PROC_CONNECT_OPEN = 1
|
|
|
|
// REMOTE_PROC_DOMAIN_DEFINE_XML = 11
|
|
|
|
// REMOTE_PROC_DOMAIN_MIGRATE_SET_MAX_SPEED = 207,
|
|
|
|
const (
|
|
|
|
// From enums:
|
2017-11-17 01:14:05 +03:00
|
|
|
{{range .EnumVals}} // {{.Name}} is libvirt's {{.LVName}}
|
|
|
|
{{.Name}} = {{.Val}}
|
2017-11-08 00:05:12 +03:00
|
|
|
{{end}}
|
2017-11-03 20:58:41 +03:00
|
|
|
|
|
|
|
// From consts:
|
2017-11-17 01:14:05 +03:00
|
|
|
{{range .Consts}} // {{.Name}} is libvirt's {{.LVName}}
|
|
|
|
{{.Name}} = {{.Val}}
|
2017-11-08 00:05:12 +03:00
|
|
|
{{end -}}
|
2017-11-03 20:58:41 +03:00
|
|
|
)
|