one

package
v0.0.0-...-b52e348 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Overview

** Copyright [2013-2017] [Megam Systems] ** ** 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Enabled       bool     `json:"enabled" toml:"enabled"`
	StorageType   string   `json:"storage_hddtype" toml:"storage_hddtype"`
	VOneCloud     bool     `json:"vonecloud" toml:"vonecloud"`
	ClusterId     string   `json:"cluster_id" toml:"cluster_id"`
	Vnet_pri_ipv4 []string `json:"vnet_pri_ipv4" toml:"vnet_pri_ipv4"`
	Vnet_pub_ipv4 []string `json:"vnet_pub_ipv4" toml:"vnet_pub_ipv4"`
	Vnet_pri_ipv6 []string `json:"vnet_pri_ipv6" toml:"vnet_pri_ipv6"`
	Vnet_pub_ipv6 []string `json:"vnet_pub_ipv6" toml:"vnet_pub_ipv6"`
}

type ImageMetadata

type ImageMetadata struct {
	Name string
}

type One

type One struct {
	Enabled        bool     `json:"enabled" toml:"enabled"`
	Regions        []Region `json:"region" toml:"region"`
	Image          string   `json:"image" toml:"image"`
	VCPUPercentage string   `json:"vcpu_percentage" toml:"vcpu_percentage"`
	OneTemplate    string   `json:"one_template" toml:"one_template"`
}

type Region

type Region struct {
	OneZone        string    `json:"one_zone" toml:"one_zone"`
	OneEndPoint    string    `json:"one_endpoint" toml:"one_endpoint"`
	OneUserid      string    `json:"one_user" toml:"one_user"`
	OnePassword    string    `json:"one_password" toml:"one_password"`
	OneMasterKey   string    `json:"one_masterkey" toml:"one_masterkey"`
	OneTemplate    string    `json:"one_template" toml:"one_template"`
	Image          string    `json:"image" toml:"image"`
	VCPUPercentage string    `json:"vcpu_percentage" toml:"vcpu_percentage"`
	Datastore      string    `json:"one_datastore_id" toml:"one_datastore_id"`
	Certificate    string    `json:"certificate" toml:"certificate"`
	Clusters       []Cluster `json:"cluster" toml:"cluster"`
}

func (Region) ToClusterMap

func (c Region) ToClusterMap() map[string]map[string][]string

func (Region) ToMap

func (c Region) ToMap() map[string]string

convert the config to just a map.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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