one

package
v0.0.0-...-625886a Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDisk

func CreateDisk(vmName string, diskMap map[string]interface{}, session *image.Client) (*vm.Disk, error)

func CreateElasticityPolicy

func CreateElasticityPolicy(policyMap map[string]interface{}) oneflow.ElasticityPolicy

func CreateRole

func CreateRole(roleMap map[string]interface{}) oneflow.Role

func CreateScheduledPolicy

func CreateScheduledPolicy(policyMap map[string]interface{}) oneflow.ScheduledPolicy

func GetCredentials

func GetCredentials() ([]string, error)

func Provider

func Provider() *schema.Provider

Provider function returning the provider for terraform

Types

type Client

type Client struct {
	Session        *client.Client
	VMSession      *vm.Client
	ImageSession   *image.Client
	ServiceSession *oneflow.Client
	NetworkSession *network.Client
	SystemSession  *system.Client
	VMTimeout      int
}

Client struct

type Config

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

Config struct

func CreateConfig

func CreateConfig(endpoint string, username string, password string, oneflowHost string, vmTimeout int) Config

func (*Config) Client

func (c *Config) Client() (interface{}, error)

Client method that creates a new client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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