Documentation ¶
Overview ¶
Package edgegrid provides the Akamai OPEN Edgegrid Authentication scheme
Deprecated: use client-v1/client instead
Package edgegrid provides the Akamai OPEN Edgegrid Authentication scheme ¶
Deprecated: use edgegrid/config and edgegrid/signer instead
Index ¶
- func AddRequestHeader(c Config, req *http.Request) *http.Requestdeprecated
- type Clientdeprecated
- func (c *Client) Do(req *http.Request) (*Response, error)deprecated
- func (c *Client) Get(url string) (*Response, error)deprecated
- func (c *Client) Head(url string) (*Response, error)deprecated
- func (c *Client) NewJSONRequest(method, urlStr string, body interface{}) (*http.Request, error)deprecated
- func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error)deprecated
- func (c *Client) Post(url string, bodyType string, body interface{}) (*Response, error)deprecated
- func (c *Client) PostForm(url string, data url.Values) (*Response, error)deprecated
- func (c *Client) PostJSON(url string, data interface{}) (*Response, error)deprecated
- type Configdeprecated
- type JSONBodydeprecated
- type Responsedeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client
deprecated
type Client struct { http.Client // Base URL for API requests. BaseURL *url.URL // User agent for client UserAgent string Config Config }
Client is a simple http.Client wrapper that transparently signs requests
Deprecated: use github.com/akamai/AkamaiOPEN-edgegrid-golang/client
func (*Client) NewJSONRequest
deprecated
NewJSONRequest creates an API request with JSON body. A relative URL can be provided in urlStr, which will be resolved to the BaseURL of the Client. If specified, the value pointed to by body is JSON encoded and included in as the request body.
Deprecated: use github.com/akamai/AkamaiOPEN-edgegrid-golang/client
func (*Client) NewRequest
deprecated
NewRequest creates an API request. A relative URL can be provided in urlStr, which will be resolved to the BaseURL of the Client. If specified, the value pointed to by body is JSON encoded and included in as the request body.
Deprecated: use github.com/akamai/AkamaiOPEN-edgegrid-golang/client
type Config
deprecated
type Config struct { Host string `ini:"host"` ClientToken string `ini:"client_token"` ClientSecret string `ini:"client_secret"` AccessToken string `ini:"access_token"` HeaderToSign []string `ini:"headers_to_sign"` MaxBody int `ini:"max_body"` Debug bool `ini:"debug"` }
Config struct provides all the necessary fields to create authorization header, debug is optional
Deprecated: use github.com/akamai/AkamaiOPEN-edgegrid-golang/edgegrid
func InitConfig
deprecated
func InitEdgeRc
deprecated
type Response
deprecated
Response is a Wrapper for http.Response
Deprecated: use github.com/akamai/AkamaiOPEN-edgegrid-golang/client
Directories ¶
Path | Synopsis |
---|---|
Package client is a simple library for http.Client to sign Akamai OPEN Edgegrid API requests
|
Package client is a simple library for http.Client to sign Akamai OPEN Edgegrid API requests |
Package edgegrid allows you to sign http.Request's using the Akamai OPEN Edgegrid Signing Scheme
|
Package edgegrid allows you to sign http.Request's using the Akamai OPEN Edgegrid Signing Scheme |
An example Diagnostic Tools v1 API Client
|
An example Diagnostic Tools v1 API Client |
Package jsonhooks adds hooks that are automatically called before JSON marshaling (PreMarshalJSON) and after JSON unmarshaling (PostUnmarshalJSON).
|
Package jsonhooks adds hooks that are automatically called before JSON marshaling (PreMarshalJSON) and after JSON unmarshaling (PostUnmarshalJSON). |
Package papi provides a simple wrapper for the Akamai Property Manager API
|
Package papi provides a simple wrapper for the Akamai Property Manager API |