Documentation
¶
Index ¶
- func GetAbsPath(manifestDir, pathSpec string) string
- func GetStringFromInterface(queryParam interface{}) (string, error)
- func IsParallelPathSpec(pathSpec []byte) bool
- func IsPathSpec(pathSpec []byte) 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{})
- type JsonArray
- type JsonBool
- type JsonNumber
- type JsonObject
- type JsonString
- type OAuthClientConfig
- type OAuthClientsConfig
- type OAuthEndpointConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAbsPath ¶
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 {
Key string
Endpoint OAuthEndpointConfig `mapstructure:"endpoint"`
Secret string `mapstructure:"secret"`
}
OAuthClientConfig is our config for a single oAuth client
func (OAuthClientConfig) GetAuthToken ¶ added in v1.0.3
GetAuthToken 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"`
}
OAuthEndpointConfig is our config for an oAuth endpoint
Click to show internal directories.
Click to hide internal directories.