Documentation
¶
Index ¶
- Constants
- Variables
- func CredentialsPath() (string, error)
- func DeleteCredentials() error
- func GetAccessToken() string
- func SaveCredentials(creds *Credentials) error
- func ShowJSON(out *os.File, title string, res gjson.Result, format string, transform string) error
- func ShowJSONIterator[T any](stdout *os.File, title string, iter jsonview.Iterator[T], format string, ...) error
- type BodyContentType
- type Credentials
Constants ¶
View Source
const Version = "0.23.0" // x-release-please-version
Variables ¶
View Source
var (
Command *cli.Command
)
View Source
var OutputFormats = []string{"auto", "explore", "json", "jsonl", "pretty", "raw", "yaml"}
Functions ¶
func CredentialsPath ¶ added in v0.23.0
func DeleteCredentials ¶ added in v0.23.0
func DeleteCredentials() error
func GetAccessToken ¶ added in v0.23.0
func GetAccessToken() string
func SaveCredentials ¶ added in v0.23.0
func SaveCredentials(creds *Credentials) error
Types ¶
type BodyContentType ¶ added in v0.5.0
type BodyContentType int
const ( EmptyBody BodyContentType = iota MultipartFormEncoded ApplicationJSON ApplicationOctetStream )
type Credentials ¶ added in v0.23.0
type Credentials struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token,omitempty"`
ExpiresAt time.Time `json:"expires_at,omitempty"`
TokenType string `json:"token_type,omitempty"`
Scope string `json:"scope,omitempty"`
}
func LoadCredentials ¶ added in v0.23.0
func LoadCredentials() (*Credentials, error)
func (*Credentials) IsExpired ¶ added in v0.23.0
func (c *Credentials) IsExpired() bool
Source Files
¶
- album.go
- artist.go
- audioanalysis.go
- audiobook.go
- audiofeature.go
- browse.go
- browsecategory.go
- chapter.go
- cmd.go
- cmdutil.go
- cmdutil_unix.go
- credentials.go
- episode.go
- flagoptions.go
- login.go
- login_unix.go
- logout.go
- market.go
- me.go
- mealbum.go
- meaudiobook.go
- meepisode.go
- mefollowing.go
- meplayer.go
- meplayerqueue.go
- meplaylist.go
- meshow.go
- metop.go
- metrack.go
- playlist.go
- playlistfollower.go
- playlistimage.go
- playlisttrack.go
- recommendation.go
- search.go
- show.go
- suggest.go
- track.go
- user.go
- userplaylist.go
- version.go
- whoami.go
Click to show internal directories.
Click to hide internal directories.