fincloud

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvironmentFilepathName = "FINCLOUD_ENVIRONMENT_FILEPATH"

	NotAvailable = "N/A"
)

Variables

View Source
var (
	FinancialCloud = Environment{
		Name:                    "FinancialCloud",
		ResourceManagerEndpoint: "https://console.fin-ncloud.com",
	}
)

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	SubaccountName string `yaml:"nsa"`
	Key            string `yaml:"key"`
	CreateYmdt     string `yaml:"created"`
}

type Config

type Config struct {
	Path string
}

func (Config) Parse

func (c Config) Parse() (*ConfigData, error)

func (Config) Write

func (c Config) Write(configData *ConfigData) error

type ConfigData

type ConfigData struct {
	CertificateList []Certificate `yaml:"certs"`
}

type Environment

type Environment struct {
	Name                    string `json:"name"`
	ResourceManagerEndpoint string `json:"resourceManagerEndpoint"`
}

func EnvironmentFromName

func EnvironmentFromName(name string) (Environment, error)

type ResourceIdentifier

type ResourceIdentifier struct {
	Resource string `json:"resource"`
}

Jump to

Keyboard shortcuts

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