profile

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrProfileNotFound = errors.New("profile not found")

Functions

func Save

func Save(name string, p *Profile) error

Types

type Config

type Config struct {
	Profiles Profiles `json:"profiles"`
}

func LoadConfig

func LoadConfig() (*Config, error)

type Profile

type Profile struct {
	Redeemed           bool   `json:"redeemed"`
	AccountID          string `json:"account_id"`
	DisplayName        string `json:"account_display_name"`
	DeviceName         string `json:"-"`
	LiveAPIKey         string `json:"livemode_key_secret"`
	LivePublishableKey string `json:"livemode_key_publishable"`
	TestAPIKey         string `json:"testmode_key_secret"`
	TestPublishableKey string `json:"testmode_key_publishable"`
}

func Load

func Load(name string) (*Profile, error)

type Profiles

type Profiles map[string]*Profile

Jump to

Keyboard shortcuts

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