authplugins

package
v0.0.0-...-1a56975 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

README

How to add a new plugin:

  • Add a new subdirectory.

  • Export GetInfo() that conforms to authplugin.InfoFn

  • In the returned authplugin.Info:

    • Set Name to what will be used to specify your plugin in config
    • Set GetAuth to a function in your plugin that conforms to authplugin.AuthFn
  • Edit inventory.go in this directory so that your plugin's GetInfo is retuned in the slice that Inventory() returns.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMap

func AuthMap() map[string]authplugin.AuthFn

AuthMap goes ahead and runs each GetInfo function and produces a map of plugin names to GetAuth functions.

func Inventory

func Inventory() []authplugin.InfoFn

Inventory returns a slice of all supported plugins. For new plugins add them here.

Types

This section is empty.

Directories

Path Synopsis
Package google is a Galley auth plugin that uses Google application default credentials.
Package google is a Galley auth plugin that uses Google application default credentials.
Package none is a Galley auth plugin that returns an empty auth DialOption.
Package none is a Galley auth plugin that returns an empty auth DialOption.

Jump to

Keyboard shortcuts

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