Sha256: 3233ea8e4aebca068b0bd74f4ae21d24336dd069d7e3e69ded10629e4e1090d1

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

package main

import (
    "github.com/rackspace/gophercloud"
    "os"
)

func main() {
    var provider = os.Getenv("RAX_AUTH_URL") + "/v2.0/tokens"
    var username = os.Getenv("RAX_USERNAME")
    var api_key = os.Getenv("RAX_API_KEY")
    _, err := gophercloud.Authenticate(
        provider,
        gophercloud.AuthOptions{
            Username: username,
            ApiKey: api_key,
        },
    )
    if err != nil {
        panic(err)
    }
    println("Authenticated")
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polytrix-0.0.1 sdks/gophercloud/challenges/authenticate_token.go