authrc

package module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 4 Imported by: 1

README

License GoDoc

                              .   oooo
                            .o8   `888
     .oooo.   oooo  oooo  .o888oo  888 .oo.   oooo d8b  .ooooo.
    `P  )88b  `888  `888    888    888P"Y88b  `888""8P d88' `"Y8
     .oP"888   888   888    888    888   888   888     888
.o. d8(  888   888   888    888 .  888   888   888     888   .o8
Y8P `Y888""8o  `V88V"V8P'   "888" o888o o888o d888b    `Y8bod8P'

Welcome to the friendly authentication runcom library and command

authrc - runcom command

authrc is a command line tool to read .authrc files.

See bin folder

.authrc - runcom file

The .autrc file contains login and initialization information used for auto login. It generally resides in the user’s config directory, but a location outside of the config directory can be set.

  • ALIAS
    Alias of a service, or remote host

  • SERVICE
    Identify a service or remote host name. The auto login process searches the .authrc file for a SERVICE token that matches the service or remote machine specified on the command line argument. Once a match is made, the subsequent .authrc tokens are processed, stopping when the end of line is reached

  • USERNAME
    Identify a user of the service, or on the remote machine.

  • PASSWORD
    Supply a password. If this token is present, the auto-login process will supply the specified string if the service or remote server requires a password as part of the login process.

  • COMMAND
    Command to execute on remote server.

Example

.authrc single line example:

ALIAS: blog, SERVICE: posts.example.net, USERNAME: bloguser@example.net, PASSWORD: 12345abcd

Documentation

Overview

authrc - The friendly authentication runcom library. The .authrc file contains login and initialization information used for auto login.

Index

Constants

This section is empty.

Variables

View Source
var (
	FILE_AUTHRC string
)

Functions

func Get

func Get(name string) (string, string)

Returns both username and password

func GetAll

func GetAll(name string) (string, string, string, string)

Returns service, username, password and command

func GetPassword

func GetPassword(name string) string

func GetService

func GetService(name string) string

func GetUsername

func GetUsername(name string) string

func SetFilePath

func SetFilePath(path string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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