Documentation ¶
Index ¶
- Variables
- type Client
- type NewClientOptions
- type Operation
- func (o *Operation) Clone() *Operation
- func (operation *Operation) GetID() string
- func (operation *Operation) GetPath() string
- func (operation *Operation) GetSecuritySchemes() []auth.SecurityScheme
- func (operation *Operation) GetTags() []string
- func (operation *Operation) IsReachable() error
- func (operation *Operation) NewRequest() (*Request, error)
- func (operation *Operation) SetID(id string) *Operation
- func (operation *Operation) SetSecuritySchemes(securitySchemes []auth.SecurityScheme) *Operation
- func (operation *Operation) SetTags(tags []string) *Operation
- func (operation *Operation) WithCookies(cookies []*http.Cookie) *Operation
- func (operation *Operation) WithHeader(header http.Header) *Operation
- func (operation *Operation) WithOpenapiOperation(openapiOperation openapi3.Operation) *Operation
- type Operations
- type Request
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = NewClient(NewClientOptions{})
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.6.1
func NewClient ¶ added in v0.6.1
func NewClient(opts NewClientOptions) *Client
func (*Client) WithCookies ¶ added in v0.6.1
type NewClientOptions ¶ added in v0.6.1
type Operation ¶ added in v0.3.1
type Operation struct { *Client `json:"-" yaml:"-"` Method string `json:"method" yaml:"method"` URL url.URL `json:"url,string" yaml:"url,string"` Body *bytes.Buffer `json:"body,omitempty" yaml:"body,omitempty"` Cookies []*http.Cookie `json:"cookies,omitempty" yaml:"cookies,omitempty"` Header http.Header `json:"header,omitempty" yaml:"header,omitempty"` SecuritySchemes []auth.SecurityScheme `json:"security_schemes" yaml:"security_schemes"` ID string `json:"id" yaml:"id"` Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"` }
func NewOperation ¶ added in v0.3.1
func NewOperationFromRequest ¶ added in v0.4.0
func (*Operation) GetSecuritySchemes ¶ added in v0.7.2
func (operation *Operation) GetSecuritySchemes() []auth.SecurityScheme
func (*Operation) IsReachable ¶ added in v0.7.1
func (*Operation) NewRequest ¶ added in v0.7.2
func (*Operation) SetSecuritySchemes ¶ added in v0.7.2
func (operation *Operation) SetSecuritySchemes(securitySchemes []auth.SecurityScheme) *Operation
func (*Operation) WithCookies ¶ added in v0.7.2
func (*Operation) WithHeader ¶ added in v0.7.2
type Operations ¶ added in v0.3.1
type Operations []*Operation
func (Operations) Len ¶ added in v0.3.1
func (o Operations) Len() int
func (Operations) Less ¶ added in v0.3.1
func (o Operations) Less(i, j int) bool
func (Operations) Swap ¶ added in v0.3.1
func (o Operations) Swap(i, j int)
type Request ¶ added in v0.3.1
func NewRequest ¶ added in v0.3.0
func (*Request) WithCookies ¶ added in v0.6.1
func (*Request) WithHeader ¶ added in v0.7.2
func (*Request) WithSecurityScheme ¶ added in v0.3.1
func (r *Request) WithSecurityScheme(securityScheme auth.SecurityScheme) *Request
Click to show internal directories.
Click to hide internal directories.