config

package
v1.1.1-0...-9418116 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DevSpaceCloudProviderName = "app.devspace.cloud"

DevSpaceCloudProviderName is the name of the default devspace-cloud provider

Variables

View Source
var DevSpaceCloudProviderConfig = &latest.Provider{
	Name: DevSpaceCloudProviderName,
	Host: "https://app.devspace.cloud",
}

DevSpaceCloudProviderConfig holds the information for the devspace-cloud

View Source
var DevSpaceProvidersConfigPath = constants.DefaultHomeDevSpaceFolder + "/providers.yaml"

DevSpaceProvidersConfigPath is the path to the providers config

View Source
var LegacyDevSpaceCloudConfigPath = constants.DefaultHomeDevSpaceFolder + "/clouds.yaml"

LegacyDevSpaceCloudConfigPath holds the path to the cloud config file

Functions

func GetProvider

func GetProvider(config *latest.Config, provider string) *latest.Provider

GetProvider returns a provider from the loaded config

Types

type Loader

type Loader interface {
	Save(config *latest.Config) error
	Load() (*latest.Config, error)
	GetDefaultProviderName() (string, error)
}

Loader saves and loads cloud configuration

func NewLoader

func NewLoader() Loader

NewLoader creates a new instance of the interface Loader

Directories

Path Synopsis
versions

Jump to

Keyboard shortcuts

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