xenserver

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2018 License: MIT Imports: 11 Imported by: 2

Documentation

Overview

* The MIT License (MIT) * Copyright (c) 2016 Maksym Borodin <borodin.maksym@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, * and to permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions * of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE.

* The MIT License (MIT) * Copyright (c) 2016 Maksym Borodin <borodin.maksym@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, * and to permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions * of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE.

* The MIT License (MIT) * Copyright (c) 2016 Maksym Borodin <borodin.maksym@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, * and to permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions * of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE.

* The MIT License (MIT) * Copyright (c) 2016 Maksym Borodin <borodin.maksym@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, * and to permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions * of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE.

* The MIT License (MIT) * Copyright (c) 2016 Maksym Borodin <borodin.maksym@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, * and to permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions * of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE.

* The MIT License (MIT) * Copyright (c) 2016 Michael Franz Aigner <maigner@updox.com> * Copyright (c) 2016 Maksym Borodin <borodin.maksym@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, * and to permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions * of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE.

* The MIT License (MIT) * Copyright (c) 2016 Maksym Borodin <borodin.maksym@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, * and to permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions * of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Provider ...

Types

type Config

type Config struct {
	URL      string
	Username string
	Password string
}

Config ...

func (*Config) NewConnection

func (cfg *Config) NewConnection() (*Connection, error)

NewConnection ...

type Connection

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

Connection ...

type NetworkDescriptor

type NetworkDescriptor struct {
	UUID        string
	Name        string
	Description string
	Bridge      string
	MTU         int

	NetworkRef xenAPI.NetworkRef
}

func (*NetworkDescriptor) Load

func (this *NetworkDescriptor) Load(c *Connection) error

func (*NetworkDescriptor) Query

func (this *NetworkDescriptor) Query(c *Connection) error

type PIFDescriptor

type PIFDescriptor struct {
	UUID string

	PIFRef xenAPI.PIFRef
}

func (*PIFDescriptor) Load

func (this *PIFDescriptor) Load(c *Connection) error

func (*PIFDescriptor) Query

func (this *PIFDescriptor) Query(c *Connection) error

type Range

type Range struct {
	Min int
	Max int
}

type SRDescriptor

type SRDescriptor struct {
	Name        string
	UUID        string
	Description string
	Host        string
	Type        string
	ContentType string
	Shared      bool

	SRRef xenAPI.SRRef
}

func (*SRDescriptor) Load

func (this *SRDescriptor) Load(c *Connection) error

func (*SRDescriptor) Query

func (this *SRDescriptor) Query(c *Connection) error

type VBDDescriptor

type VBDDescriptor struct {
	UUID             string
	VM               *VMDescriptor
	VDI              *VDIDescriptor
	Device           string
	UserDevice       string
	Mode             xenAPI.VbdMode
	Type             xenAPI.VbdType
	Bootable         bool
	OtherConfig      map[string]string
	IsTemplateDevice bool

	VBDRef xenAPI.VBDRef
}

func (*VBDDescriptor) Commit

func (this *VBDDescriptor) Commit(c *Connection) (err error)

func (*VBDDescriptor) Query

func (this *VBDDescriptor) Query(c *Connection) error

type VDIDescriptor

type VDIDescriptor struct {
	Name       string
	UUID       string
	SR         *SRDescriptor
	IsShared   bool
	IsReadOnly bool
	Size       int

	VDIRef xenAPI.VDIRef
}

func (*VDIDescriptor) Load

func (this *VDIDescriptor) Load(c *Connection) error

func (*VDIDescriptor) Query

func (this *VDIDescriptor) Query(c *Connection) error

type VIFDescriptor

type VIFDescriptor struct {
	Network            *NetworkDescriptor
	VM                 *VMDescriptor
	UUID               string
	MTU                int
	MAC                string
	IsAutogeneratedMAC bool
	DeviceOrder        int
	OtherConfig        map[string]string

	VIFRef xenAPI.VIFRef
}

func (*VIFDescriptor) Load

func (this *VIFDescriptor) Load(c *Connection) error

func (*VIFDescriptor) Query

func (this *VIFDescriptor) Query(c *Connection) error

type VLANDescriptor

type VLANDescriptor struct {
	UUID        string
	Tag         int
	TaggedPIF   PIFDescriptor
	UntaggedPIF PIFDescriptor
	OtherConfig map[string]string

	VLANRef xenAPI.VLANRef
}

func (*VLANDescriptor) Load

func (this *VLANDescriptor) Load(c *Connection) error

func (*VLANDescriptor) Query

func (this *VLANDescriptor) Query(c *Connection) error

type VMDescriptor

type VMDescriptor struct {
	UUID              string
	Name              string
	Description       string
	PowerState        xenAPI.VMPowerState
	IsPV              bool
	StaticMemory      Range
	DynamicMemory     Range
	VCPUCount         int
	VIFCount          int
	VBDCount          int
	PCICount          int
	OtherConfig       map[string]string
	XenstoreData      map[string]string
	HVMBootParameters map[string]string
	Platform          map[string]string
	IsATemplate       bool

	VMRef xenAPI.VMRef
}

func (*VMDescriptor) Load

func (this *VMDescriptor) Load(c *Connection) error

func (*VMDescriptor) Query

func (this *VMDescriptor) Query(c *Connection) error

func (*VMDescriptor) UpdateMemory

func (this *VMDescriptor) UpdateMemory(c *Connection) error

func (*VMDescriptor) UpdateVCPUs

func (this *VMDescriptor) UpdateVCPUs(c *Connection) error

Jump to

Keyboard shortcuts

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