Documentation
¶
Index ¶
- func CreateTestProfile(profileName string, profileContent string, profilesDir string)
- func GetAvailableProfiles() ([]string, error)
- func GetAvailableRequests(profileName string) ([]string, error)
- func GetProfilesDir() (string, error)
- func SetupTestProfilesDir() string
- type Options
- type RequestOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestProfile ¶ added in v0.9.0
CreateTestProfile helper method for testing. Will create a profile file with the specified content in the specified directory.
func GetAvailableProfiles ¶
GetAvailableProfiles return the name of all profiles available in the configured directory
func GetAvailableRequests ¶
GetAvailableRequests returns a list of all the names of requests available in a profile.
func GetProfilesDir ¶
GetProfilesDir return the directory where profiles are stored
func SetupTestProfilesDir ¶ added in v0.9.0
func SetupTestProfilesDir() string
SetupTestProfilesDir helper method for testing. This will create a temporary directory where profiles can be dropped in. It will also set the environment variable so that profile files are read from the temporary directory.
Types ¶
type Options ¶
type Options struct {
BaseURL string
Headers map[string][]string
RequestOptions map[string]RequestOptions
Variables map[string]string
}
Options that can come from a profile file.
func LoadProfile ¶
LoadProfile loads Options for a specific profile by name.
func MergeOptions ¶
MergeOptions merges all options passed in into a final Options object.