config

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName  = "cloud.calyptia.com"
	BackUpFolder = ".calyptia"
)
View Source
const KeyBaseURL = "base_url"
View Source
const KeyToken = "project_token"

Variables

View Source
var ErrInvalidToken = errors.New("invalid token")
View Source
var ErrURLNotFound = errors.New("url not found")

Functions

func DecodeToken

func DecodeToken(token []byte) (string, error)

decodeToken decodes a project token without verifying its signature and getting its inner project ID.

func NewCmdConfigCurrentToken

func NewCmdConfigCurrentToken(config *cfg.Config) *cobra.Command

func NewCmdConfigCurrentURL

func NewCmdConfigCurrentURL(config *cfg.Config) *cobra.Command

func NewCmdConfigSetToken

func NewCmdConfigSetToken(config *cfg.Config) *cobra.Command

func NewCmdConfigSetURL

func NewCmdConfigSetURL(config *cfg.Config) *cobra.Command

func NewCmdConfigUnsetToken

func NewCmdConfigUnsetToken(config *cfg.Config) *cobra.Command

func NewCmdConfigUnsetURL

func NewCmdConfigUnsetURL(config *cfg.Config) *cobra.Command

func NewCmdCreateConfigSection

func NewCmdCreateConfigSection(config *cfg.Config) *cobra.Command

func NewCmdDeleteConfigSection

func NewCmdDeleteConfigSection(config *cfg.Config) *cobra.Command

func NewCmdGetConfigSections

func NewCmdGetConfigSections(config *cfg.Config) *cobra.Command

func NewCmdUpdateConfigSection

func NewCmdUpdateConfigSection(config *cfg.Config) *cobra.Command

func NewCmdUpdateConfigSectionSet

func NewCmdUpdateConfigSectionSet(config *cfg.Config) *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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