specs

package
v0.0.0-...-f1610be Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package specs Copyright 2020-2021 Author.

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.

Mustafa mbayramo@vmware.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiInterface

type ApiInterface struct {
	Host     string `yaml:"host" json:"host"`
	Port     int    `yaml:"port" json:"port"`
	User     string `yaml:"user" json:"user"`
	Password string `yaml:"password" json:"password"`
	Debug    int    `yaml:"debug_level" json:"debug_level"`
	ApiBase  string `yaml:"api_base" json:"api_base"`
}

ApiInterface /**

type Cluster

type Cluster struct {
	Name string       `yaml:"name"`
	Rest ApiInterface `yaml:"rest"`
}

Cluster spec

type ServerSpec

type ServerSpec struct {
	Formation struct {
		Cluster Cluster `yaml:"cluster"`
	} `yaml:"serverSpec"`
	BaseDir string
}

ServerSpec Server spec

func Read

func Read(file string) (ServerSpec, error)

Read Reads config.yml file and serialize everything in ServerSpec struct.

Jump to

Keyboard shortcuts

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