apis

package
v0.3.9-5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_deploy_proto protoreflect.FileDescriptor

Functions

func ConvertRoutes

func ConvertRoutes(routes string) []types.SRoute

func RegisterDeployAgentServer

func RegisterDeployAgentServer(s grpc.ServiceRegistrar, srv DeployAgentServer)

Types

type ConnectEsxiDisksParams

type ConnectEsxiDisksParams struct {
	VddkInfo   *VDDKConInfo    `protobuf:"bytes,1,opt,name=vddk_info,json=vddkInfo,proto3" json:"vddk_info,omitempty"`
	AccessInfo []*EsxiDiskInfo `protobuf:"bytes,2,rep,name=access_info,json=accessInfo,proto3" json:"access_info,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectEsxiDisksParams) Descriptor deprecated

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

Deprecated: Use ConnectEsxiDisksParams.ProtoReflect.Descriptor instead.

func (*ConnectEsxiDisksParams) GetAccessInfo

func (x *ConnectEsxiDisksParams) GetAccessInfo() []*EsxiDiskInfo

func (*ConnectEsxiDisksParams) GetVddkInfo

func (x *ConnectEsxiDisksParams) GetVddkInfo() *VDDKConInfo

func (*ConnectEsxiDisksParams) ProtoMessage

func (*ConnectEsxiDisksParams) ProtoMessage()

func (*ConnectEsxiDisksParams) ProtoReflect

func (x *ConnectEsxiDisksParams) ProtoReflect() protoreflect.Message

func (*ConnectEsxiDisksParams) Reset

func (x *ConnectEsxiDisksParams) Reset()

func (*ConnectEsxiDisksParams) String

func (x *ConnectEsxiDisksParams) String() string

type DeployAgentClient

type DeployAgentClient interface {
	DeployGuestFs(ctx context.Context, in *DeployParams, opts ...grpc.CallOption) (*DeployGuestFsResponse, error)
	ResizeFs(ctx context.Context, in *ResizeFsParams, opts ...grpc.CallOption) (*Empty, error)
	FormatFs(ctx context.Context, in *FormatFsParams, opts ...grpc.CallOption) (*Empty, error)
	SaveToGlance(ctx context.Context, in *SaveToGlanceParams, opts ...grpc.CallOption) (*SaveToGlanceResponse, error)
	ProbeImageInfo(ctx context.Context, in *ProbeImageInfoPramas, opts ...grpc.CallOption) (*ImageInfo, error)
	ConnectEsxiDisks(ctx context.Context, in *ConnectEsxiDisksParams, opts ...grpc.CallOption) (*EsxiDisksConnectionInfo, error)
	DisconnectEsxiDisks(ctx context.Context, in *EsxiDisksConnectionInfo, opts ...grpc.CallOption) (*Empty, error)
}

DeployAgentClient is the client API for DeployAgent service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type DeployAgentServer

type DeployAgentServer interface {
	DeployGuestFs(context.Context, *DeployParams) (*DeployGuestFsResponse, error)
	ResizeFs(context.Context, *ResizeFsParams) (*Empty, error)
	FormatFs(context.Context, *FormatFsParams) (*Empty, error)
	SaveToGlance(context.Context, *SaveToGlanceParams) (*SaveToGlanceResponse, error)
	ProbeImageInfo(context.Context, *ProbeImageInfoPramas) (*ImageInfo, error)
	ConnectEsxiDisks(context.Context, *ConnectEsxiDisksParams) (*EsxiDisksConnectionInfo, error)
	DisconnectEsxiDisks(context.Context, *EsxiDisksConnectionInfo) (*Empty, error)
	// contains filtered or unexported methods
}

DeployAgentServer is the server API for DeployAgent service. All implementations must embed UnimplementedDeployAgentServer for forward compatibility

type DeployContent

type DeployContent struct {
	Path    string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	Action  string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func JsonDeploysToStructs

func JsonDeploysToStructs(jdeploys []jsonutils.JSONObject) []*DeployContent

func (*DeployContent) Descriptor deprecated

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

Deprecated: Use DeployContent.ProtoReflect.Descriptor instead.

func (*DeployContent) GetAction

func (x *DeployContent) GetAction() string

func (*DeployContent) GetContent

func (x *DeployContent) GetContent() string

func (*DeployContent) GetPath

func (x *DeployContent) GetPath() string

func (*DeployContent) ProtoMessage

func (*DeployContent) ProtoMessage()

func (*DeployContent) ProtoReflect

func (x *DeployContent) ProtoReflect() protoreflect.Message

func (*DeployContent) Reset

func (x *DeployContent) Reset()

func (*DeployContent) String

func (x *DeployContent) String() string

type DeployGuestFsResponse

type DeployGuestFsResponse struct {
	Distro           string `protobuf:"bytes,1,opt,name=distro,proto3" json:"distro,omitempty"`
	Version          string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Arch             string `protobuf:"bytes,3,opt,name=arch,proto3" json:"arch,omitempty"`
	Language         string `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"`
	Os               string `protobuf:"bytes,5,opt,name=os,proto3" json:"os,omitempty"`
	Account          string `protobuf:"bytes,6,opt,name=account,proto3" json:"account,omitempty"`
	Key              string `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"`
	TelegrafDeployed bool   `protobuf:"varint,8,opt,name=telegraf_deployed,json=telegrafDeployed,proto3" json:"telegraf_deployed,omitempty"`
	// contains filtered or unexported fields
}

func (*DeployGuestFsResponse) Descriptor deprecated

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

Deprecated: Use DeployGuestFsResponse.ProtoReflect.Descriptor instead.

func (*DeployGuestFsResponse) GetAccount

func (x *DeployGuestFsResponse) GetAccount() string

func (*DeployGuestFsResponse) GetArch

func (x *DeployGuestFsResponse) GetArch() string

func (*DeployGuestFsResponse) GetDistro

func (x *DeployGuestFsResponse) GetDistro() string

func (*DeployGuestFsResponse) GetKey

func (x *DeployGuestFsResponse) GetKey() string

func (*DeployGuestFsResponse) GetLanguage

func (x *DeployGuestFsResponse) GetLanguage() string

func (*DeployGuestFsResponse) GetOs

func (x *DeployGuestFsResponse) GetOs() string

func (*DeployGuestFsResponse) GetTelegrafDeployed

func (x *DeployGuestFsResponse) GetTelegrafDeployed() bool

func (*DeployGuestFsResponse) GetVersion

func (x *DeployGuestFsResponse) GetVersion() string

func (*DeployGuestFsResponse) ProtoMessage

func (*DeployGuestFsResponse) ProtoMessage()

func (*DeployGuestFsResponse) ProtoReflect

func (x *DeployGuestFsResponse) ProtoReflect() protoreflect.Message

func (*DeployGuestFsResponse) Reset

func (x *DeployGuestFsResponse) Reset()

func (*DeployGuestFsResponse) String

func (x *DeployGuestFsResponse) String() string

type DeployInfo

type DeployInfo struct {
	PublicKey               *SSHKeys         `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Deploys                 []*DeployContent `protobuf:"bytes,2,rep,name=deploys,proto3" json:"deploys,omitempty"`
	Password                string           `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	IsInit                  bool             `protobuf:"varint,4,opt,name=is_init,json=isInit,proto3" json:"is_init,omitempty"`
	EnableTty               bool             `protobuf:"varint,5,opt,name=enable_tty,json=enableTty,proto3" json:"enable_tty,omitempty"`
	DefaultRootUser         bool             `protobuf:"varint,6,opt,name=default_root_user,json=defaultRootUser,proto3" json:"default_root_user,omitempty"`
	WindowsDefaultAdminUser bool             `` /* 135-byte string literal not displayed */
	EnableCloudInit         bool             `protobuf:"varint,8,opt,name=enable_cloud_init,json=enableCloudInit,proto3" json:"enable_cloud_init,omitempty"`
	LoginAccount            string           `protobuf:"bytes,9,opt,name=login_account,json=loginAccount,proto3" json:"login_account,omitempty"`
	Telegraf                *Telegraf        `protobuf:"bytes,10,opt,name=telegraf,proto3" json:"telegraf,omitempty"`
	// contains filtered or unexported fields
}

func NewDeployInfo

func NewDeployInfo(
	publicKey *SSHKeys,
	deploys []*DeployContent,
	password string,
	isInit bool,
	enableTty bool,
	defaultRootUser bool,
	windowsDefaultAdminUser bool,
	enableCloudInit bool,
	loginAccount string,
	enableTelegraf bool,
	telegrafConf string,
) *DeployInfo

func (*DeployInfo) Descriptor deprecated

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

Deprecated: Use DeployInfo.ProtoReflect.Descriptor instead.

func (*DeployInfo) GetDefaultRootUser

func (x *DeployInfo) GetDefaultRootUser() bool

func (*DeployInfo) GetDeploys

func (x *DeployInfo) GetDeploys() []*DeployContent

func (*DeployInfo) GetEnableCloudInit

func (x *DeployInfo) GetEnableCloudInit() bool

func (*DeployInfo) GetEnableTty

func (x *DeployInfo) GetEnableTty() bool

func (*DeployInfo) GetIsInit

func (x *DeployInfo) GetIsInit() bool

func (*DeployInfo) GetLoginAccount

func (x *DeployInfo) GetLoginAccount() string

func (*DeployInfo) GetPassword

func (x *DeployInfo) GetPassword() string

func (*DeployInfo) GetPublicKey

func (x *DeployInfo) GetPublicKey() *SSHKeys

func (*DeployInfo) GetTelegraf

func (x *DeployInfo) GetTelegraf() *Telegraf

func (*DeployInfo) GetWindowsDefaultAdminUser

func (x *DeployInfo) GetWindowsDefaultAdminUser() bool

func (*DeployInfo) ProtoMessage

func (*DeployInfo) ProtoMessage()

func (*DeployInfo) ProtoReflect

func (x *DeployInfo) ProtoReflect() protoreflect.Message

func (*DeployInfo) Reset

func (x *DeployInfo) Reset()

func (*DeployInfo) String

func (x *DeployInfo) String() string

type DeployParams

type DeployParams struct {
	DiskInfo   *DiskInfo    `protobuf:"bytes,1,opt,name=disk_info,json=diskInfo,proto3" json:"disk_info,omitempty"`
	GuestDesc  *GuestDesc   `protobuf:"bytes,2,opt,name=guest_desc,json=guestDesc,proto3" json:"guest_desc,omitempty"`
	DeployInfo *DeployInfo  `protobuf:"bytes,3,opt,name=deploy_info,json=deployInfo,proto3" json:"deploy_info,omitempty"`
	VddkInfo   *VDDKConInfo `protobuf:"bytes,4,opt,name=vddk_info,json=vddkInfo,proto3" json:"vddk_info,omitempty"`
	// contains filtered or unexported fields
}

func (*DeployParams) Descriptor deprecated

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

Deprecated: Use DeployParams.ProtoReflect.Descriptor instead.

func (*DeployParams) GetDeployInfo

func (x *DeployParams) GetDeployInfo() *DeployInfo

func (*DeployParams) GetDiskInfo

func (x *DeployParams) GetDiskInfo() *DiskInfo

func (*DeployParams) GetGuestDesc

func (x *DeployParams) GetGuestDesc() *GuestDesc

func (*DeployParams) GetVddkInfo

func (x *DeployParams) GetVddkInfo() *VDDKConInfo

func (*DeployParams) ProtoMessage

func (*DeployParams) ProtoMessage()

func (*DeployParams) ProtoReflect

func (x *DeployParams) ProtoReflect() protoreflect.Message

func (*DeployParams) Reset

func (x *DeployParams) Reset()

func (*DeployParams) String

func (x *DeployParams) String() string

type Disk

type Disk struct {
	DiskId          string `protobuf:"bytes,1,opt,name=disk_id,json=diskId,proto3" json:"disk_id,omitempty"`
	Driver          string `protobuf:"bytes,2,opt,name=driver,proto3" json:"driver,omitempty"`
	CacheMode       string `protobuf:"bytes,3,opt,name=cache_mode,json=cacheMode,proto3" json:"cache_mode,omitempty"`
	AioMode         string `protobuf:"bytes,4,opt,name=aio_mode,json=aioMode,proto3" json:"aio_mode,omitempty"`
	Size            int64  `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
	TemplateId      string `protobuf:"bytes,6,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"`
	ImagePath       string `protobuf:"bytes,7,opt,name=image_path,json=imagePath,proto3" json:"image_path,omitempty"`
	StorageId       string `protobuf:"bytes,8,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
	Migrating       bool   `protobuf:"varint,9,opt,name=migrating,proto3" json:"migrating,omitempty"`
	TargetStorageId string `protobuf:"bytes,10,opt,name=target_storage_id,json=targetStorageId,proto3" json:"target_storage_id,omitempty"`
	Path            string `protobuf:"bytes,11,opt,name=path,proto3" json:"path,omitempty"`
	Format          string `protobuf:"bytes,12,opt,name=format,proto3" json:"format,omitempty"`
	Index           int32  `protobuf:"varint,13,opt,name=index,proto3" json:"index,omitempty"`
	MergeSnapshot   bool   `protobuf:"varint,14,opt,name=merge_snapshot,json=mergeSnapshot,proto3" json:"merge_snapshot,omitempty"`
	Fs              string `protobuf:"bytes,15,opt,name=fs,proto3" json:"fs,omitempty"`
	Mountpoint      string `protobuf:"bytes,16,opt,name=mountpoint,proto3" json:"mountpoint,omitempty"`
	Dev             string `protobuf:"bytes,17,opt,name=dev,proto3" json:"dev,omitempty"`
	// contains filtered or unexported fields
}

func (*Disk) Descriptor deprecated

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

Deprecated: Use Disk.ProtoReflect.Descriptor instead.

func (*Disk) GetAioMode

func (x *Disk) GetAioMode() string

func (*Disk) GetCacheMode

func (x *Disk) GetCacheMode() string

func (*Disk) GetDev

func (x *Disk) GetDev() string

func (*Disk) GetDiskId

func (x *Disk) GetDiskId() string

func (*Disk) GetDriver

func (x *Disk) GetDriver() string

func (*Disk) GetFormat

func (x *Disk) GetFormat() string

func (*Disk) GetFs

func (x *Disk) GetFs() string

func (*Disk) GetImagePath

func (x *Disk) GetImagePath() string

func (*Disk) GetIndex

func (x *Disk) GetIndex() int32

func (*Disk) GetMergeSnapshot

func (x *Disk) GetMergeSnapshot() bool

func (*Disk) GetMigrating

func (x *Disk) GetMigrating() bool

func (*Disk) GetMountpoint

func (x *Disk) GetMountpoint() string

func (*Disk) GetPath

func (x *Disk) GetPath() string

func (*Disk) GetSize

func (x *Disk) GetSize() int64

func (*Disk) GetStorageId

func (x *Disk) GetStorageId() string

func (*Disk) GetTargetStorageId

func (x *Disk) GetTargetStorageId() string

func (*Disk) GetTemplateId

func (x *Disk) GetTemplateId() string

func (*Disk) ProtoMessage

func (*Disk) ProtoMessage()

func (*Disk) ProtoReflect

func (x *Disk) ProtoReflect() protoreflect.Message

func (*Disk) Reset

func (x *Disk) Reset()

func (*Disk) String

func (x *Disk) String() string

type DiskInfo

type DiskInfo struct {
	Path            string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	EncryptPassword string `protobuf:"bytes,2,opt,name=encrypt_password,json=encryptPassword,proto3" json:"encrypt_password,omitempty"`
	EncryptFormat   string `protobuf:"bytes,3,opt,name=encrypt_format,json=encryptFormat,proto3" json:"encrypt_format,omitempty"`
	EncryptAlg      string `protobuf:"bytes,4,opt,name=encrypt_alg,json=encryptAlg,proto3" json:"encrypt_alg,omitempty"`
	// contains filtered or unexported fields
}

func (*DiskInfo) Descriptor deprecated

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

Deprecated: Use DiskInfo.ProtoReflect.Descriptor instead.

func (*DiskInfo) GetEncryptAlg

func (x *DiskInfo) GetEncryptAlg() string

func (*DiskInfo) GetEncryptFormat

func (x *DiskInfo) GetEncryptFormat() string

func (*DiskInfo) GetEncryptPassword

func (x *DiskInfo) GetEncryptPassword() string

func (*DiskInfo) GetPath

func (x *DiskInfo) GetPath() string

func (*DiskInfo) ProtoMessage

func (*DiskInfo) ProtoMessage()

func (*DiskInfo) ProtoReflect

func (x *DiskInfo) ProtoReflect() protoreflect.Message

func (*DiskInfo) Reset

func (x *DiskInfo) Reset()

func (*DiskInfo) String

func (x *DiskInfo) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type EsxiDiskInfo

type EsxiDiskInfo struct {
	DiskPath string `protobuf:"bytes,1,opt,name=disk_path,json=diskPath,proto3" json:"disk_path,omitempty"`
	// contains filtered or unexported fields
}

func (*EsxiDiskInfo) Descriptor deprecated

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

Deprecated: Use EsxiDiskInfo.ProtoReflect.Descriptor instead.

func (*EsxiDiskInfo) GetDiskPath

func (x *EsxiDiskInfo) GetDiskPath() string

func (*EsxiDiskInfo) ProtoMessage

func (*EsxiDiskInfo) ProtoMessage()

func (*EsxiDiskInfo) ProtoReflect

func (x *EsxiDiskInfo) ProtoReflect() protoreflect.Message

func (*EsxiDiskInfo) Reset

func (x *EsxiDiskInfo) Reset()

func (*EsxiDiskInfo) String

func (x *EsxiDiskInfo) String() string

type EsxiDisksConnectionInfo

type EsxiDisksConnectionInfo struct {
	Disks []*EsxiDiskInfo `protobuf:"bytes,1,rep,name=disks,proto3" json:"disks,omitempty"`
	// contains filtered or unexported fields
}

func (*EsxiDisksConnectionInfo) Descriptor deprecated

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

Deprecated: Use EsxiDisksConnectionInfo.ProtoReflect.Descriptor instead.

func (*EsxiDisksConnectionInfo) GetDisks

func (x *EsxiDisksConnectionInfo) GetDisks() []*EsxiDiskInfo

func (*EsxiDisksConnectionInfo) ProtoMessage

func (*EsxiDisksConnectionInfo) ProtoMessage()

func (*EsxiDisksConnectionInfo) ProtoReflect

func (x *EsxiDisksConnectionInfo) ProtoReflect() protoreflect.Message

func (*EsxiDisksConnectionInfo) Reset

func (x *EsxiDisksConnectionInfo) Reset()

func (*EsxiDisksConnectionInfo) String

func (x *EsxiDisksConnectionInfo) String() string

type FormatFsParams

type FormatFsParams struct {
	DiskInfo *DiskInfo `protobuf:"bytes,1,opt,name=disk_info,json=diskInfo,proto3" json:"disk_info,omitempty"`
	FsFormat string    `protobuf:"bytes,2,opt,name=fs_format,json=fsFormat,proto3" json:"fs_format,omitempty"`
	Uuid     string    `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*FormatFsParams) Descriptor deprecated

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

Deprecated: Use FormatFsParams.ProtoReflect.Descriptor instead.

func (*FormatFsParams) GetDiskInfo

func (x *FormatFsParams) GetDiskInfo() *DiskInfo

func (*FormatFsParams) GetFsFormat

func (x *FormatFsParams) GetFsFormat() string

func (*FormatFsParams) GetUuid

func (x *FormatFsParams) GetUuid() string

func (*FormatFsParams) ProtoMessage

func (*FormatFsParams) ProtoMessage()

func (*FormatFsParams) ProtoReflect

func (x *FormatFsParams) ProtoReflect() protoreflect.Message

func (*FormatFsParams) Reset

func (x *FormatFsParams) Reset()

func (*FormatFsParams) String

func (x *FormatFsParams) String() string

type GuestDesc

type GuestDesc struct {
	Name        string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Uuid        string  `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Domain      string  `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
	Nics        []*Nic  `protobuf:"bytes,4,rep,name=nics,proto3" json:"nics,omitempty"`
	NicsStandby []*Nic  `protobuf:"bytes,5,rep,name=nics_standby,json=nicsStandby,proto3" json:"nics_standby,omitempty"`
	Disks       []*Disk `protobuf:"bytes,6,rep,name=disks,proto3" json:"disks,omitempty"`
	Hypervisor  string  `protobuf:"bytes,7,opt,name=Hypervisor,proto3" json:"Hypervisor,omitempty"`
	Hostname    string  `protobuf:"bytes,8,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// contains filtered or unexported fields
}

func GuestDescToDeployDesc

func GuestDescToDeployDesc(guestDesc *jsonutils.JSONDict) (*GuestDesc, error)

func (*GuestDesc) Descriptor deprecated

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

Deprecated: Use GuestDesc.ProtoReflect.Descriptor instead.

func (*GuestDesc) GetDisks

func (x *GuestDesc) GetDisks() []*Disk

func (*GuestDesc) GetDomain

func (x *GuestDesc) GetDomain() string

func (*GuestDesc) GetHostname

func (x *GuestDesc) GetHostname() string

func (*GuestDesc) GetHypervisor

func (x *GuestDesc) GetHypervisor() string

func (*GuestDesc) GetName

func (x *GuestDesc) GetName() string

func (*GuestDesc) GetNics

func (x *GuestDesc) GetNics() []*Nic

func (*GuestDesc) GetNicsStandby

func (x *GuestDesc) GetNicsStandby() []*Nic

func (*GuestDesc) GetUuid

func (x *GuestDesc) GetUuid() string

func (*GuestDesc) ProtoMessage

func (*GuestDesc) ProtoMessage()

func (*GuestDesc) ProtoReflect

func (x *GuestDesc) ProtoReflect() protoreflect.Message

func (*GuestDesc) Reset

func (x *GuestDesc) Reset()

func (*GuestDesc) String

func (x *GuestDesc) String() string

type ImageInfo

type ImageInfo struct {
	OsInfo                *ReleaseInfo `protobuf:"bytes,1,opt,name=os_info,json=osInfo,proto3" json:"os_info,omitempty"`
	OsType                string       `protobuf:"bytes,2,opt,name=os_type,json=osType,proto3" json:"os_type,omitempty"`
	IsUefiSupport         bool         `protobuf:"varint,3,opt,name=is_uefi_support,json=isUefiSupport,proto3" json:"is_uefi_support,omitempty"`
	IsLvmPartition        bool         `protobuf:"varint,4,opt,name=is_lvm_partition,json=isLvmPartition,proto3" json:"is_lvm_partition,omitempty"`
	IsReadonly            bool         `protobuf:"varint,5,opt,name=is_readonly,json=isReadonly,proto3" json:"is_readonly,omitempty"`
	PhysicalPartitionType string       `` /* 126-byte string literal not displayed */
	IsInstalledCloudInit  bool         `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ImageInfo) Descriptor deprecated

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

Deprecated: Use ImageInfo.ProtoReflect.Descriptor instead.

func (*ImageInfo) GetIsInstalledCloudInit

func (x *ImageInfo) GetIsInstalledCloudInit() bool

func (*ImageInfo) GetIsLvmPartition

func (x *ImageInfo) GetIsLvmPartition() bool

func (*ImageInfo) GetIsReadonly

func (x *ImageInfo) GetIsReadonly() bool

func (*ImageInfo) GetIsUefiSupport

func (x *ImageInfo) GetIsUefiSupport() bool

func (*ImageInfo) GetOsInfo

func (x *ImageInfo) GetOsInfo() *ReleaseInfo

func (*ImageInfo) GetOsType

func (x *ImageInfo) GetOsType() string

func (*ImageInfo) GetPhysicalPartitionType

func (x *ImageInfo) GetPhysicalPartitionType() string

func (*ImageInfo) ProtoMessage

func (*ImageInfo) ProtoMessage()

func (*ImageInfo) ProtoReflect

func (x *ImageInfo) ProtoReflect() protoreflect.Message

func (*ImageInfo) Reset

func (x *ImageInfo) Reset()

func (*ImageInfo) String

func (x *ImageInfo) String() string

type Nic

type Nic struct {
	Mac        string   `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	Ip         string   `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	Net        string   `protobuf:"bytes,3,opt,name=net,proto3" json:"net,omitempty"`
	NetId      string   `protobuf:"bytes,4,opt,name=net_id,json=netId,proto3" json:"net_id,omitempty"`
	Virtual    bool     `protobuf:"varint,5,opt,name=virtual,proto3" json:"virtual,omitempty"`
	Gateway    string   `protobuf:"bytes,6,opt,name=gateway,proto3" json:"gateway,omitempty"`
	Dns        string   `protobuf:"bytes,7,opt,name=dns,proto3" json:"dns,omitempty"`
	Domain     string   `protobuf:"bytes,8,opt,name=domain,proto3" json:"domain,omitempty"`
	Routes     string   `protobuf:"bytes,9,opt,name=routes,proto3" json:"routes,omitempty"`
	Ifname     string   `protobuf:"bytes,10,opt,name=ifname,proto3" json:"ifname,omitempty"`
	Masklen    int32    `protobuf:"varint,11,opt,name=masklen,proto3" json:"masklen,omitempty"`
	Driver     string   `protobuf:"bytes,12,opt,name=driver,proto3" json:"driver,omitempty"`
	Bridge     string   `protobuf:"bytes,13,opt,name=bridge,proto3" json:"bridge,omitempty"`
	WireId     string   `protobuf:"bytes,14,opt,name=wire_id,json=wireId,proto3" json:"wire_id,omitempty"`
	Vlan       int32    `protobuf:"varint,15,opt,name=vlan,proto3" json:"vlan,omitempty"`
	Interface  string   `protobuf:"bytes,16,opt,name=interface,proto3" json:"interface,omitempty"`
	Bw         int32    `protobuf:"varint,17,opt,name=bw,proto3" json:"bw,omitempty"`
	Index      int32    `protobuf:"varint,18,opt,name=index,proto3" json:"index,omitempty"`
	VirtualIps []string `protobuf:"bytes,19,rep,name=virtual_ips,json=virtualIps,proto3" json:"virtual_ips,omitempty"`
	ExternelId string   `protobuf:"bytes,20,opt,name=externel_id,json=externelId,proto3" json:"externel_id,omitempty"`
	TeamWith   string   `protobuf:"bytes,21,opt,name=team_with,json=teamWith,proto3" json:"team_with,omitempty"`
	Manual     bool     `protobuf:"varint,22,opt,name=manual,proto3" json:"manual,omitempty"`
	NicType    string   `protobuf:"bytes,23,opt,name=nic_type,json=nicType,proto3" json:"nic_type,omitempty"`
	LinkUp     bool     `protobuf:"varint,24,opt,name=link_up,json=linkUp,proto3" json:"link_up,omitempty"`
	Mtu        int64    `protobuf:"varint,25,opt,name=mtu,proto3" json:"mtu,omitempty"`
	Name       string   `protobuf:"bytes,26,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Nic) Descriptor deprecated

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

Deprecated: Use Nic.ProtoReflect.Descriptor instead.

func (*Nic) GetBridge

func (x *Nic) GetBridge() string

func (*Nic) GetBw

func (x *Nic) GetBw() int32

func (*Nic) GetDns

func (x *Nic) GetDns() string

func (*Nic) GetDomain

func (x *Nic) GetDomain() string

func (*Nic) GetDriver

func (x *Nic) GetDriver() string

func (*Nic) GetExternelId

func (x *Nic) GetExternelId() string

func (*Nic) GetGateway

func (x *Nic) GetGateway() string

func (*Nic) GetIfname

func (x *Nic) GetIfname() string

func (*Nic) GetIndex

func (x *Nic) GetIndex() int32

func (*Nic) GetInterface

func (x *Nic) GetInterface() string

func (*Nic) GetIp

func (x *Nic) GetIp() string

func (*Nic) GetLinkUp

func (x *Nic) GetLinkUp() bool

func (*Nic) GetMac

func (x *Nic) GetMac() string

func (*Nic) GetManual

func (x *Nic) GetManual() bool

func (*Nic) GetMasklen

func (x *Nic) GetMasklen() int32

func (*Nic) GetMtu

func (x *Nic) GetMtu() int64

func (*Nic) GetName

func (x *Nic) GetName() string

func (*Nic) GetNet

func (x *Nic) GetNet() string

func (*Nic) GetNetId

func (x *Nic) GetNetId() string

func (*Nic) GetNicType

func (x *Nic) GetNicType() string

func (*Nic) GetRoutes

func (x *Nic) GetRoutes() string

func (*Nic) GetTeamWith

func (x *Nic) GetTeamWith() string

func (*Nic) GetVirtual

func (x *Nic) GetVirtual() bool

func (*Nic) GetVirtualIps

func (x *Nic) GetVirtualIps() []string

func (*Nic) GetVlan

func (x *Nic) GetVlan() int32

func (*Nic) GetWireId

func (x *Nic) GetWireId() string

func (*Nic) ProtoMessage

func (*Nic) ProtoMessage()

func (*Nic) ProtoReflect

func (x *Nic) ProtoReflect() protoreflect.Message

func (*Nic) Reset

func (x *Nic) Reset()

func (*Nic) String

func (x *Nic) String() string

type ProbeImageInfoPramas

type ProbeImageInfoPramas struct {
	DiskInfo *DiskInfo `protobuf:"bytes,1,opt,name=disk_info,json=diskInfo,proto3" json:"disk_info,omitempty"`
	// contains filtered or unexported fields
}

func (*ProbeImageInfoPramas) Descriptor deprecated

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

Deprecated: Use ProbeImageInfoPramas.ProtoReflect.Descriptor instead.

func (*ProbeImageInfoPramas) GetDiskInfo

func (x *ProbeImageInfoPramas) GetDiskInfo() *DiskInfo

func (*ProbeImageInfoPramas) ProtoMessage

func (*ProbeImageInfoPramas) ProtoMessage()

func (*ProbeImageInfoPramas) ProtoReflect

func (x *ProbeImageInfoPramas) ProtoReflect() protoreflect.Message

func (*ProbeImageInfoPramas) Reset

func (x *ProbeImageInfoPramas) Reset()

func (*ProbeImageInfoPramas) String

func (x *ProbeImageInfoPramas) String() string

type ReleaseInfo

type ReleaseInfo struct {
	Distro   string `protobuf:"bytes,1,opt,name=distro,proto3" json:"distro,omitempty"`
	Version  string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Arch     string `protobuf:"bytes,3,opt,name=arch,proto3" json:"arch,omitempty"`
	Language string `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func NewReleaseInfo

func NewReleaseInfo(distro, version, arch string) *ReleaseInfo

func (*ReleaseInfo) Descriptor deprecated

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

Deprecated: Use ReleaseInfo.ProtoReflect.Descriptor instead.

func (*ReleaseInfo) GetArch

func (x *ReleaseInfo) GetArch() string

func (*ReleaseInfo) GetDistro

func (x *ReleaseInfo) GetDistro() string

func (*ReleaseInfo) GetLanguage

func (x *ReleaseInfo) GetLanguage() string

func (*ReleaseInfo) GetVersion

func (x *ReleaseInfo) GetVersion() string

func (*ReleaseInfo) ProtoMessage

func (*ReleaseInfo) ProtoMessage()

func (*ReleaseInfo) ProtoReflect

func (x *ReleaseInfo) ProtoReflect() protoreflect.Message

func (*ReleaseInfo) Reset

func (x *ReleaseInfo) Reset()

func (*ReleaseInfo) String

func (x *ReleaseInfo) String() string

type ResizeFsParams

type ResizeFsParams struct {
	DiskInfo   *DiskInfo    `protobuf:"bytes,1,opt,name=disk_info,json=diskInfo,proto3" json:"disk_info,omitempty"`
	Hypervisor string       `protobuf:"bytes,2,opt,name=hypervisor,proto3" json:"hypervisor,omitempty"`
	VddkInfo   *VDDKConInfo `protobuf:"bytes,3,opt,name=vddk_info,json=vddkInfo,proto3" json:"vddk_info,omitempty"`
	// contains filtered or unexported fields
}

func (*ResizeFsParams) Descriptor deprecated

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

Deprecated: Use ResizeFsParams.ProtoReflect.Descriptor instead.

func (*ResizeFsParams) GetDiskInfo

func (x *ResizeFsParams) GetDiskInfo() *DiskInfo

func (*ResizeFsParams) GetHypervisor

func (x *ResizeFsParams) GetHypervisor() string

func (*ResizeFsParams) GetVddkInfo

func (x *ResizeFsParams) GetVddkInfo() *VDDKConInfo

func (*ResizeFsParams) ProtoMessage

func (*ResizeFsParams) ProtoMessage()

func (*ResizeFsParams) ProtoReflect

func (x *ResizeFsParams) ProtoReflect() protoreflect.Message

func (*ResizeFsParams) Reset

func (x *ResizeFsParams) Reset()

func (*ResizeFsParams) String

func (x *ResizeFsParams) String() string

type SSHKeys

type SSHKeys struct {
	PublicKey        string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	DeletePublicKey  string `protobuf:"bytes,2,opt,name=delete_public_key,json=deletePublicKey,proto3" json:"delete_public_key,omitempty"`
	AdminPublicKey   string `protobuf:"bytes,3,opt,name=admin_public_key,json=adminPublicKey,proto3" json:"admin_public_key,omitempty"`
	ProjectPublicKey string `protobuf:"bytes,4,opt,name=project_public_key,json=projectPublicKey,proto3" json:"project_public_key,omitempty"`
	// contains filtered or unexported fields
}

func GetKeys

func GetKeys(data jsonutils.JSONObject) *SSHKeys

func (*SSHKeys) Descriptor deprecated

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

Deprecated: Use SSHKeys.ProtoReflect.Descriptor instead.

func (*SSHKeys) GetAdminPublicKey

func (x *SSHKeys) GetAdminPublicKey() string

func (*SSHKeys) GetDeletePublicKey

func (x *SSHKeys) GetDeletePublicKey() string

func (*SSHKeys) GetProjectPublicKey

func (x *SSHKeys) GetProjectPublicKey() string

func (*SSHKeys) GetPublicKey

func (x *SSHKeys) GetPublicKey() string

func (*SSHKeys) ProtoMessage

func (*SSHKeys) ProtoMessage()

func (*SSHKeys) ProtoReflect

func (x *SSHKeys) ProtoReflect() protoreflect.Message

func (*SSHKeys) Reset

func (x *SSHKeys) Reset()

func (*SSHKeys) String

func (x *SSHKeys) String() string

type SaveToGlanceParams

type SaveToGlanceParams struct {
	DiskInfo *DiskInfo `protobuf:"bytes,1,opt,name=disk_info,json=diskInfo,proto3" json:"disk_info,omitempty"`
	Compress bool      `protobuf:"varint,2,opt,name=compress,proto3" json:"compress,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveToGlanceParams) Descriptor deprecated

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

Deprecated: Use SaveToGlanceParams.ProtoReflect.Descriptor instead.

func (*SaveToGlanceParams) GetCompress

func (x *SaveToGlanceParams) GetCompress() bool

func (*SaveToGlanceParams) GetDiskInfo

func (x *SaveToGlanceParams) GetDiskInfo() *DiskInfo

func (*SaveToGlanceParams) ProtoMessage

func (*SaveToGlanceParams) ProtoMessage()

func (*SaveToGlanceParams) ProtoReflect

func (x *SaveToGlanceParams) ProtoReflect() protoreflect.Message

func (*SaveToGlanceParams) Reset

func (x *SaveToGlanceParams) Reset()

func (*SaveToGlanceParams) String

func (x *SaveToGlanceParams) String() string

type SaveToGlanceResponse

type SaveToGlanceResponse struct {
	OsInfo      string       `protobuf:"bytes,1,opt,name=os_info,json=osInfo,proto3" json:"os_info,omitempty"`
	ReleaseInfo *ReleaseInfo `protobuf:"bytes,2,opt,name=release_info,json=releaseInfo,proto3" json:"release_info,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveToGlanceResponse) Descriptor deprecated

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

Deprecated: Use SaveToGlanceResponse.ProtoReflect.Descriptor instead.

func (*SaveToGlanceResponse) GetOsInfo

func (x *SaveToGlanceResponse) GetOsInfo() string

func (*SaveToGlanceResponse) GetReleaseInfo

func (x *SaveToGlanceResponse) GetReleaseInfo() *ReleaseInfo

func (*SaveToGlanceResponse) ProtoMessage

func (*SaveToGlanceResponse) ProtoMessage()

func (*SaveToGlanceResponse) ProtoReflect

func (x *SaveToGlanceResponse) ProtoReflect() protoreflect.Message

func (*SaveToGlanceResponse) Reset

func (x *SaveToGlanceResponse) Reset()

func (*SaveToGlanceResponse) String

func (x *SaveToGlanceResponse) String() string

type Telegraf

type Telegraf struct {
	TelegrafConf string `protobuf:"bytes,1,opt,name=telegraf_conf,json=telegrafConf,proto3" json:"telegraf_conf,omitempty"`
	// contains filtered or unexported fields
}

func (*Telegraf) Descriptor deprecated

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

Deprecated: Use Telegraf.ProtoReflect.Descriptor instead.

func (*Telegraf) GetTelegrafConf

func (x *Telegraf) GetTelegrafConf() string

func (*Telegraf) ProtoMessage

func (*Telegraf) ProtoMessage()

func (*Telegraf) ProtoReflect

func (x *Telegraf) ProtoReflect() protoreflect.Message

func (*Telegraf) Reset

func (x *Telegraf) Reset()

func (*Telegraf) String

func (x *Telegraf) String() string

type UnimplementedDeployAgentServer

type UnimplementedDeployAgentServer struct {
}

UnimplementedDeployAgentServer must be embedded to have forward compatible implementations.

func (UnimplementedDeployAgentServer) ConnectEsxiDisks

func (UnimplementedDeployAgentServer) DeployGuestFs

func (UnimplementedDeployAgentServer) DisconnectEsxiDisks

func (UnimplementedDeployAgentServer) FormatFs

func (UnimplementedDeployAgentServer) ProbeImageInfo

func (UnimplementedDeployAgentServer) ResizeFs

func (UnimplementedDeployAgentServer) SaveToGlance

type UnsafeDeployAgentServer

type UnsafeDeployAgentServer interface {
	// contains filtered or unexported methods
}

UnsafeDeployAgentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeployAgentServer will result in compilation errors.

type VDDKConInfo

type VDDKConInfo struct {
	Host   string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Port   int32  `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	User   string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	Passwd string `protobuf:"bytes,4,opt,name=passwd,proto3" json:"passwd,omitempty"`
	Vmref  string `protobuf:"bytes,5,opt,name=vmref,proto3" json:"vmref,omitempty"`
	// contains filtered or unexported fields
}

func (*VDDKConInfo) Descriptor deprecated

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

Deprecated: Use VDDKConInfo.ProtoReflect.Descriptor instead.

func (*VDDKConInfo) GetHost

func (x *VDDKConInfo) GetHost() string

func (*VDDKConInfo) GetPasswd

func (x *VDDKConInfo) GetPasswd() string

func (*VDDKConInfo) GetPort

func (x *VDDKConInfo) GetPort() int32

func (*VDDKConInfo) GetUser

func (x *VDDKConInfo) GetUser() string

func (*VDDKConInfo) GetVmref

func (x *VDDKConInfo) GetVmref() string

func (*VDDKConInfo) ProtoMessage

func (*VDDKConInfo) ProtoMessage()

func (*VDDKConInfo) ProtoReflect

func (x *VDDKConInfo) ProtoReflect() protoreflect.Message

func (*VDDKConInfo) Reset

func (x *VDDKConInfo) Reset()

func (*VDDKConInfo) String

func (x *VDDKConInfo) String() string

Jump to

Keyboard shortcuts

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