connection

package
v0.0.0-...-435c8fa Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIToken

type APIToken struct {
	ID    string `yaml:"id"`
	Token string `yaml:"token"`
}

APIToken Token ID and actual token

type Info

type Info struct {
	Address  string   `yaml:"apiaddress"`
	UserID   UserID   `yaml:"userid"`
	APIToken APIToken `yaml:"apitoken"`
}

Info token-based API access information

func ReadFile

func ReadFile(filePath string) (*Info, error)

ReadFile returns API token-based connection info

type UserID

type UserID struct {
	Username string `yaml:"username"`
	IDRealm  string `yaml:"idrealm"`
}

UserID User name and realm

Jump to

Keyboard shortcuts

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