Documentation ¶
Index ¶
- func ConvertX25519Key(ed25519_sk []byte) [32]byte
- func EncryptedConfigExists() (bool, error)
- func GetEncryptedConfigName() (string, error)
- func GetEncryptedContents() (string, error)
- func GetPassword(newFile bool) ([]byte, error)
- func ResetPassword() error
- func SaveConfigContents(config *OSDFConfig) error
- func SaveConfigContents_internal(config *OSDFConfig, forcePassword bool) error
- func SaveEncryptedContents(encContents []byte) error
- func SavePassword(password []byte) error
- func TryGetPassword() ([]byte, error)
- type OSDFConfig
- type PrefixEntry
- type TokenEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertX25519Key ¶
func EncryptedConfigExists ¶ added in v6.10.0
func GetEncryptedConfigName ¶
func GetEncryptedContents ¶
func GetPassword ¶
func ResetPassword ¶
func ResetPassword() error
func SaveConfigContents ¶
func SaveConfigContents(config *OSDFConfig) error
func SaveConfigContents_internal ¶
func SaveConfigContents_internal(config *OSDFConfig, forcePassword bool) error
func SaveEncryptedContents ¶
func SavePassword ¶
func TryGetPassword ¶
Types ¶
type OSDFConfig ¶
type OSDFConfig struct { // Top-level OSDF object OSDF struct { // List of OAuth2 client configurations OauthClient []PrefixEntry `yaml:"oauth_client,omitempty"` } `yaml:"OSDF"` }
func GetConfigContents ¶
func GetConfigContents() (OSDFConfig, error)
type PrefixEntry ¶
type PrefixEntry struct { // OSDF namespace prefix Prefix string `yaml:"prefix"` ClientID string `yaml:"client_id"` ClientSecret string `yaml:"client_secret"` Tokens []TokenEntry `yaml:"tokens,omitempty"` }
type TokenEntry ¶ added in v6.10.0
Click to show internal directories.
Click to hide internal directories.