Documentation
¶
Index ¶
- Constants
- Variables
- func DecodeToken(token []byte) (string, error)
- func NewCmdConfigCurrentToken(config *cfg.Config) *cobra.Command
- func NewCmdConfigCurrentURL(config *cfg.Config) *cobra.Command
- func NewCmdConfigSetToken(config *cfg.Config) *cobra.Command
- func NewCmdConfigSetURL(config *cfg.Config) *cobra.Command
- func NewCmdConfigUnsetToken(config *cfg.Config) *cobra.Command
- func NewCmdConfigUnsetURL(config *cfg.Config) *cobra.Command
- func NewCmdCreateConfigSection(config *cfg.Config) *cobra.Command
- func NewCmdDeleteConfigSection(config *cfg.Config) *cobra.Command
- func NewCmdGetConfigSections(config *cfg.Config) *cobra.Command
- func NewCmdUpdateConfigSection(config *cfg.Config) *cobra.Command
- func NewCmdUpdateConfigSectionSet(config *cfg.Config) *cobra.Command
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 ¶
decodeToken decodes a project token without verifying its signature and getting its inner project ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.