Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TerraformToken ¶
type TerraformToken struct {
Token string `json:"token"`
}
TerraformToken JSON token object
func (*TerraformToken) JSON ¶
func (t *TerraformToken) JSON() string
JSON return current token instance as JSON bytes
type TokenSource ¶
TokenSource object to save in file
type TokenSources ¶
type TokenSources []TokenSource
TokenSources multiple TokenSource
func ReadTokenFile ¶
func ReadTokenFile(tokenFilePath string) (TokenSources, error)
ReadTokenFile read the current token from file if exist
func (*TokenSources) JSON ¶
func (t *TokenSources) JSON() string
JSON return current token instance as JSON bytes
func (*TokenSources) WriteToFile ¶
func (t *TokenSources) WriteToFile(filepath string) error
WriteToFile write tokens to given file
Click to show internal directories.
Click to hide internal directories.