Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureLaceworkAuth ¶
Types ¶
type Credentials ¶
type Credentials map[string]*ProfileCredentials
func Load ¶
func Load() Credentials
func (Credentials) Find ¶
func (c Credentials) Find(profileName string) *ProfileCredentials
func (Credentials) Save ¶
func (c Credentials) Save() error
type ProfileCredentials ¶
type ProfileCredentials struct {
Token string `json:"token"`
ExpiresAt time.Time `json:"expiresAt"`
}
func (*ProfileCredentials) IsNearExpiration ¶
func (p *ProfileCredentials) IsNearExpiration() bool
func (*ProfileCredentials) RefreshToken ¶
func (p *ProfileCredentials) RefreshToken(domain string, keyID string, secretKey string) error
Click to show internal directories.
Click to hide internal directories.