mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-23 18:04:11 -05:00
15 lines
230 B
Go
15 lines
230 B
Go
package digitalocean
|
|
|
|
import (
|
|
"golang.org/x/oauth2"
|
|
)
|
|
|
|
type apiTokenSource struct {
|
|
AccessToken string
|
|
}
|
|
|
|
func (t *apiTokenSource) Token() (*oauth2.Token, error) {
|
|
return &oauth2.Token{
|
|
AccessToken: t.AccessToken,
|
|
}, nil
|
|
}
|