cloudconfig

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_CLOUD_API_URL = "https://cloud.mify.io/api"
View Source
const DEFAULT_CLOUD_URL = "https://cloud.mify.io"
View Source
const DEFAULT_STATS_API_URL = "https://cloud.mify.io/api-stats"

Variables

This section is empty.

Functions

func GetCloudApiURL added in v0.1.4

func GetCloudApiURL() string

func GetCloudUrl added in v0.1.4

func GetCloudUrl() string

func GetStatsApiUrl added in v0.1.4

func GetStatsApiUrl() string

Types

type CloudConfig

type CloudConfig struct {
	PublicHostname string `yaml:"public_hostname"`
	Path           string `yaml:"path"`
}

type EnvVariable

type EnvVariable struct {
	Value            *string           `yaml:"value,omitempty"`
	SecretName       string            `yaml:"secret_name,omitempty"`
	ValuePerEnv      map[string]string `yaml:"value_per_env,omitempty"`
	SecretNamePerEnv map[string]string `yaml:"secret_name_per_env,omitempty"`
}

type ServiceCloudConfig

type ServiceCloudConfig struct {
	Domain  ServiceCloudConfigDomain `yaml:"domain,omitempty"`
	Presets map[string]string        `yaml:"presets,omitempty"`
	EnvVars map[string]EnvVariable   `yaml:"env_vars,omitempty"`
	Publish bool                     `yaml:"publish,omitempty"`
}

func ReadServiceCloudCfg

func ReadServiceCloudCfg(path string) (*ServiceCloudConfig, error)

func (*ServiceCloudConfig) WriteToFile

func (conf *ServiceCloudConfig) WriteToFile(path string) error

type ServiceCloudConfigDomain

type ServiceCloudConfigDomain struct {
	CustomHostname string `yaml:"custom_hostname,omitempty"`
	Path           string `yaml:"path,omitempty"`
}

Jump to

Keyboard shortcuts

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