utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVaultAPIClient

func CreateVaultAPIClient() (*resty.Client, string)

func GetCachePath

func GetCachePath() string

func WriteTokenToFile

func WriteTokenToFile(token string, domain string) error

writeTokenToFile writes the Pangea token to the specified file

Types

type CacheData

type CacheData struct {
	Paths map[string]WorkspaceData `json:"paths"`
}

func CheckPathExists

func CheckPathExists() (bool, CacheData, string)

func LoadCacheData

func LoadCacheData(cachePath string) CacheData

type Config

type Config struct {
	Title    string             `mapstructure:"title"`
	Services map[string]Service `mapstructure:"services"`
}

type Service

type Service struct {
	PANGEA_DOMAIN string `mapstructure:"PANGEA_DOMAIN"`
	PANGEA_TOKEN  string `mapstructure:"PANGEA_TOKEN"`
}

type WorkspaceData

type WorkspaceData struct {
	Remote string `json:"remote"`
}

Jump to

Keyboard shortcuts

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