Documentation ¶
Index ¶
- Variables
- func Bool(b bool) *bool
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int64(i int64) *int64
- func String(s string) *string
- type Apitest
- func (s *Apitest) ExportFileByBranch(ctx context.Context, request operations.ExportFileByBranchRequest, ...) (*operations.ExportFileByBranchResponse, error)
- func (s *Apitest) ExportFileByCommit(ctx context.Context, request operations.ExportFileByCommitRequest, ...) (*operations.ExportFileByCommitResponse, error)
- type HTTPClient
- type SDKOption
- func WithClient(client HTTPClient) SDKOption
- func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption
- func WithSecurity(authorization string) SDKOption
- func WithServerIndex(serverIndex int) SDKOption
- func WithServerURL(serverURL string) SDKOption
- func WithTemplatedServerURL(serverURL string, params map[string]string) SDKOption
Constants ¶
This section is empty.
Variables ¶
var ServerList = []string{
"https://api.stoplight.io",
}
ServerList contains the list of servers available to the SDK
Functions ¶
Types ¶
type Apitest ¶
type Apitest struct {
// contains filtered or unexported fields
}
Apitest - Stoplight Catalog API: The Catalog API provides [bundled exports](https://docs.stoplight.io/docs/platform/37d160068e33c-export-api-files#ref-options) of your OpenAPI and JSON Schema files. A bundled export resolves remote `$refs` once, and then reuses references to the same objects to avoid repetition and produce a cleaner file.
Use Catalog API exports to:
- Facilitate automated testing - Update internal API Directories - Update a locally hosted [Prism mock server](https://github.com/stoplightio/prism) - Avoid direct Git access
func (*Apitest) ExportFileByBranch ¶
func (s *Apitest) ExportFileByBranch(ctx context.Context, request operations.ExportFileByBranchRequest, opts ...operations.Option) (*operations.ExportFileByBranchResponse, error)
ExportFileByBranch - exportFileByBranch Exports an OpenAPI or JSON Schema file from a Stoplight project that exists on the specified branch.
func (*Apitest) ExportFileByCommit ¶
func (s *Apitest) ExportFileByCommit(ctx context.Context, request operations.ExportFileByCommitRequest, opts ...operations.Option) (*operations.ExportFileByCommitResponse, error)
ExportFileByCommit - exportFileByCommit Exports an OpenAPI or JSON Schema file from a Stoplight project that exists on the specified commit.
type HTTPClient ¶
HTTPClient provides an interface for suplying the SDK with a custom HTTP client
type SDKOption ¶
type SDKOption func(*Apitest)
func WithClient ¶
func WithClient(client HTTPClient) SDKOption
WithClient allows the overriding of the default HTTP client used by the SDK
func WithRetryConfig ¶ added in v1.2.0
func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption
func WithSecurity ¶ added in v1.3.0
func WithServerIndex ¶
WithServerIndex allows the overriding of the default server by index
func WithServerURL ¶
WithServerURL allows the overriding of the default server URL