sidp

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: MPL-2.0, MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Store adapter

Store is the package state variable which contains database connections

Functions

func GetDoDroplets

func GetDoDroplets(token []byte) ([]godo.Droplet, error)

GetDoDroplets fetches droplet details from Digital ocean api

func GetSyncDetail

func GetSyncDetail(w http.ResponseWriter, r *http.Request)

GetSyncDetail retrieves key or token from database. should fetch and return key tag rather than key value.

func InitStore

func InitStore(state *global.State)

InitStore initialises package state

func SyncNow

func SyncNow(w http.ResponseWriter, r *http.Request)

SyncNow initiates TRASA sync with cloudIAAS provider

Types

type DOTokenSource

type DOTokenSource struct {
	AccessToken string
}

DOTokenSource required for digital ocean api

func (*DOTokenSource) Token

func (t *DOTokenSource) Token() (*oauth2.Token, error)

Token required for digital ocean api

Jump to

Keyboard shortcuts

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