cfg

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File string

Functions

func ReadMergedInto

func ReadMergedInto(c *Config) error

Types

type Config

type Config struct {
	ContentStack ContentStackConfig `yaml:"content_stack"`
}

func NewConfig

func NewConfig() *Config

func (*Config) String

func (c *Config) String() string

func (*Config) Validate

func (c *Config) Validate() error

func (*Config) Write

func (c *Config) Write() error

func (*Config) WriteToFile

func (c *Config) WriteToFile(file string) error

type ContentStackConfig

type ContentStackConfig struct {
	DeliveryApi   DeliveryApiConfig        `yaml:"delivery_api"`
	RegionCode    string                   `yaml:"region_code" env:"CS_REGION" env-default:"NA"`
	ManagementApi management.Configuration `yaml:"management_api"`
}

type DeliveryApiConfig

type DeliveryApiConfig struct {
	Host string `yaml:"delivery_api_host" env:"CS_DELIVERY_API_HOST" env-default:"https://cdn.contentstack.io"`
}

Jump to

Keyboard shortcuts

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