Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(opts ...rfms.ClientOption) (*rfms.Client, error)
NewClient creates a new rFMS client using the CLI credentials.
func NewCommand ¶
NewCommand returns a new cobra.Command for rFMS CLI authentication.
Types ¶
type Credentials ¶
type Credentials struct {
Provider string `json:"provider"`
Token *oauth2.Token `json:"token,omitzero"`
Username string `json:"username,omitzero"`
Password string `json:"password,omitzero"`
}
Credentials for the rFMS CLI.
func ReadCredentials ¶
func ReadCredentials() (*Credentials, error)
ReadCredentials reads the rFMS CLI credentials.
Click to show internal directories.
Click to hide internal directories.