Documentation
¶
Index ¶
- func GetParallelPathSpec(pathSpec string) (parallelRepititions int, parsedPath string)
- func GetStringFromInterface(queryParam interface{}) (string, error)
- func IsParallelPathSpec(pathSpec string) bool
- func IsPathSpec(pathSpec string) bool
- func LocalPath(path, rootDir string) string
- func Max(x, y int) int
- func OpenFileOrUrl(path, rootDir string) (string, io.ReadCloser, error)
- func RemoveFromJsonArray(input []interface{}, removeIndex int) (output []interface{})
- func Unmarshal(input []byte, output interface{}) error
- type JsonArray
- type JsonBool
- type JsonNumber
- type JsonObject
- type JsonString
- type OAuthClientConfig
- func (c OAuthClientConfig) GetAuthToken(params ...string) (*oauth2.Token, error)
- func (c OAuthClientConfig) GetClientCredentialsAuthToken() (*oauth2.Token, error)
- func (c OAuthClientConfig) GetCodeAuthToken(params ...string) (*oauth2.Token, error)
- func (c OAuthClientConfig) GetPasswordCredentialsAuthToken(username string, password string) (*oauth2.Token, error)
- type OAuthClientsConfig
- type OAuthEndpointConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParallelPathSpec ¶ added in v1.5.0
func GetStringFromInterface ¶
func IsParallelPathSpec ¶
func IsPathSpec ¶
func OpenFileOrUrl ¶
func OpenFileOrUrl(path, rootDir string) (string, io.ReadCloser, error)
OpenFileOrUrl opens either a local file or gives the resp.Body from a remote file
func RemoveFromJsonArray ¶
func RemoveFromJsonArray(input []interface{}, removeIndex int) (output []interface{})
Types ¶
type JsonNumber ¶
type JsonNumber = float64
type JsonObject ¶
type JsonObject = map[string]interface{}
type JsonString ¶
type JsonString = string
type OAuthClientConfig ¶ added in v1.0.3
type OAuthClientConfig struct { Client string `json:"client"` Endpoint OAuthEndpointConfig `mapstructure:"endpoint" json:"endpoint"` Secret string `mapstructure:"secret" json:"secret"` RedirectURL string `mapstructure:"redirect_url" json:"redirect_url"` Scopes []string `mapstructure:"scopes" json:"scopes"` }
OAuthClientConfig is our config for a single oAuth client
func (OAuthClientConfig) GetAuthToken ¶ added in v1.0.3
func (c OAuthClientConfig) GetAuthToken(params ...string) (*oauth2.Token, error)
GetCodeAuthToken sends request to oAuth auth endpoint to get a token, optionally bypassing login form username, password have to be provided in the params list if needed
func (OAuthClientConfig) GetClientCredentialsAuthToken ¶ added in v1.1.0
func (c OAuthClientConfig) GetClientCredentialsAuthToken() (*oauth2.Token, error)
GetClientCredentialsAuthToken sends request to oAuth token endpoint to get a token on behalf of a user
func (OAuthClientConfig) GetCodeAuthToken ¶ added in v1.1.0
func (c OAuthClientConfig) GetCodeAuthToken(params ...string) (*oauth2.Token, error)
GetCodeAuthToken sends request to oAuth auth endpoint to get a token, optionally bypassing login form username, password have to be provided in the params list if needed
func (OAuthClientConfig) GetPasswordCredentialsAuthToken ¶ added in v1.1.0
func (c OAuthClientConfig) GetPasswordCredentialsAuthToken(username string, password string) (*oauth2.Token, error)
GetPasswordCredentialsAuthToken sends request to oAuth token endpoint to get a token on behalf of a user
type OAuthClientsConfig ¶ added in v1.0.3
type OAuthClientsConfig map[string]OAuthClientConfig
OAuthClientsConfig is our config for multiple oAuth clients
type OAuthEndpointConfig ¶ added in v1.0.3
type OAuthEndpointConfig struct { TokenURL string `mapstructure:"token_url" json:"token_url"` AuthURL string `mapstructure:"auth_url" json:"auth_url"` }
OAuthEndpointConfig is our config for an oAuth endpoint