fastly

package
v0.0.0-...-f31989a Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backend

func Backend(c *logical.BackendConfig) *backend

Backend creates a new backend.

func Factory

Factory creates a new usable instance of this secrets engine.

Types

type FastlyToken

type FastlyToken struct {
	ID          string    `json:"id"`
	AccessToken string    `json:"access_token"`
	Name        string    `json:"name"`
	UserID      string    `json:"user_id"`
	ServiceID   string    `json:"service_id"`
	ExpiresAt   time.Time `json:"expires_at"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
	Scope       string    `json:"scope"`
	Services    []string  `json:"services"`
}

FastlyToken is the response of Fastly create token API request

func CreateFastlyToken

func CreateFastlyToken(otp string, formData map[string][]string) (*FastlyToken, error)

CreateFastlyToken uses Fastly API to create an API token

Jump to

Keyboard shortcuts

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