common

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(id, secret, cluster string, scopes ...string) (*url.URL, *http.Client, error)

Authenticate returns the url of the cluster and an authenticated Client

func Bind

func Bind(client *http.Client, req *http.Request, o interface{}) error

Bind does a get request and binds the body to the given interface

func CopyURL

func CopyURL(u *url.URL) *url.URL

CopyURL returns a copy of the url

func JoinURL

func JoinURL(u *url.URL, args ...string) (ep *url.URL)

JoinURL creates an url from the given parts

Types

This section is empty.

Jump to

Keyboard shortcuts

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