urls

package
v1.14.10 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

urls is used to manage base urls for every STACKIT environment

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByEnvs

type ByEnvs struct {
	// Base URL for each environment
	Prod string
	QA   string
	Dev  string

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

func Init

func Init(pkg, prod, qa, dev string) ByEnvs

Init expects base URL strings for pkg, prod, qa, dev the package name is used fot setting OverrideWith for example, for pkg=costs, OverrideWith will be STACKIT_COSTS_BASEURL

func (ByEnvs) GetURL

func (e ByEnvs) GetURL(c common.Client) string

Jump to

Keyboard shortcuts

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