credentials

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCredentialsStorageFilePath

func GetCredentialsStorageFilePath() string

Types

type Credentials

type Credentials struct {
	// URL of the groshi server.
	URL string `json:"url"`

	// Token for authorizing at the server.
	Token string `json:"token"`
}

func New

func New(url string, jwt string) *Credentials

func ReadFromDefaultPath

func ReadFromDefaultPath() (*Credentials, error)

func ReadFromPath

func ReadFromPath(filepath string) (*Credentials, error)

func (*Credentials) WriteToFile

func (c *Credentials) WriteToFile(filepath string) error

Jump to

Keyboard shortcuts

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