config

package
v2.0.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigPath string

Functions

func GetCurrentTargetFromFs

func GetCurrentTargetFromFs(fsys afero.Fs) (target string, err error)

GetCurrentTargetFromFs returns the current target (from filesystem .tsuru/target)

func GetTargetURL

func GetTargetURL(fsys afero.Fs, target string) (string, error)

GetTargetURL returns the target URL from a given alias. If the alias is not found, it returns the alias itself (as it may already be the correct URL).

func GetTokenFromFs

func GetTokenFromFs(fsys afero.Fs) (string, error)

GetTokenFromFs returns the token for the current target.

func RemoveCurrentTokensFromFs

func RemoveCurrentTokensFromFs(fsys afero.Fs) error

RemoveCurrentTokensFromFs removes the token for the current target and alias.

func SaveToken

func SaveToken(fsys afero.Fs, token string) error

SaveToken saves the token on the filesystem for future use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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