auth

package
v0.0.0-...-7c23477 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: MIT Imports: 9 Imported by: 0

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

func NewCommand() *cobra.Command

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.

Jump to

Keyboard shortcuts

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