Documentation
¶
Index ¶
- func CollectionToHTTPFiles(collection *model.PostmanCollection) []model.HTTPFile
- func ExtractBearerToken(auth *model.PostmanAuth) (string, bool)
- func FormatFileName(name string) string
- func FormatGroupName(name string) string
- func HTTPFilesToCollection(files []model.HTTPFile, name string, version string, env *model.Environment) *model.PostmanCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectionToHTTPFiles ¶
func CollectionToHTTPFiles(collection *model.PostmanCollection) []model.HTTPFile
CollectionToHTTPFiles converts a Postman collection into HTTP files.
func ExtractBearerToken ¶
func ExtractBearerToken(auth *model.PostmanAuth) (string, bool)
ExtractBearerToken extracts the bearer token from a PostmanAuth.
func FormatFileName ¶
FormatFileName sanitizes a name for use as a file/directory name.
func FormatGroupName ¶
FormatGroupName formats a name for display (exported for testing).
func HTTPFilesToCollection ¶
func HTTPFilesToCollection(files []model.HTTPFile, name string, version string, env *model.Environment) *model.PostmanCollection
HTTPFilesToCollection converts parsed HTTP files into a Postman collection.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.