baseurl

package
v1.29.11 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseURL

type BaseURL struct {
	// Base URL
	BaseURL string

	// OverrideWith specifies an environment
	// variable name. When set, the value
	// it contains will override the base URL
	OverrideWith string
}

func New

func New(pkg, baseURL string) BaseURL

New expects the package name and base URL for example, for pkg=costs, OverrideWith will be STACKIT_COSTS_BASEURL

func (BaseURL) Get

func (eu BaseURL) Get() string

Get returns the base URL if the override environment variable is set, it is returned instead

func (BaseURL) GetOverrideName

func (eu BaseURL) GetOverrideName() string

GetOverrideName returns the name of the environment variable that can be used to override the base URL

Jump to

Keyboard shortcuts

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