Documentation ¶
Index ¶
- Variables
- func Delete(endpoint string) error
- func IsCredentialRecorded(s, u string) bool
- func Prompt(in io.Reader, out io.Writer) (token string, err error)
- func PromptAndWrite(in io.Reader, out io.Writer, endpoint string) (token string, err error)
- func Read(endpoint string) (string, error)
- func Setup(endpoint string) (token string, err error)
- func Write(endpoint, token string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// KeyringService is the service the credential belongs to
KeyringService = "sectionctl"
)
Functions ¶
func IsCredentialRecorded ¶
IsCredentialRecorded returns if API credentials have been recorded
func Prompt ¶
Prompt interactively prompts the user for a credential to authenticate to the Section API
func PromptAndWrite ¶
PromptAndWrite prompts for a credential then writes it to a store
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.