Documentation
¶
Index ¶
- func GenerateOperationID(method string, path string) string
- type Operation
- func (o *Operation) Clone() (*Operation, error)
- func (operation *Operation) GenerateID() *Operation
- func (operation *Operation) GetID() string
- func (operation *Operation) GetOpenAPIDocPath() *string
- func (operation *Operation) GetPath() string
- func (operation *Operation) GetSecurityScheme() *auth.SecurityScheme
- func (operation *Operation) GetSecuritySchemes() []*auth.SecurityScheme
- func (operation *Operation) IsReachable() error
- func (operation *Operation) NewRequest() (*request.Request, error)
- func (operation *Operation) SetID(id string) *Operation
- func (operation *Operation) SetSecuritySchemes(securitySchemes []*auth.SecurityScheme) *Operation
- func (operation *Operation) WithCookies(cookies []*http.Cookie) *Operation
- func (operation *Operation) WithHeader(header http.Header) *Operation
- func (operation *Operation) WithOpenapiOperation(docPath string, openapiOperation *openapi3.Operation) *Operation
- type Operations
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateOperationID ¶
Types ¶
type Operation ¶
type Operation struct { *request.Client `json:"-" yaml:"-"` OpenAPIDocPath *string `json:"-" yaml:"-"` ID string `json:"id" yaml:"id"` Method string `json:"method" yaml:"method"` URL url.URL `json:"url" yaml:"url"` Body []byte `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:"securitySchemes" yaml:"securitySchemes"` }
func MustNewOperation ¶
func NewOperation ¶
func (*Operation) GenerateID ¶
func (*Operation) GetOpenAPIDocPath ¶
func (*Operation) GetSecurityScheme ¶
func (operation *Operation) GetSecurityScheme() *auth.SecurityScheme
func (*Operation) GetSecuritySchemes ¶
func (operation *Operation) GetSecuritySchemes() []*auth.SecurityScheme
func (*Operation) IsReachable ¶
func (*Operation) SetSecuritySchemes ¶
func (operation *Operation) SetSecuritySchemes(securitySchemes []*auth.SecurityScheme) *Operation
func (*Operation) WithCookies ¶
func (*Operation) WithHeader ¶
type Operations ¶
type Operations []*Operation
func (Operations) GetByID ¶
func (o Operations) GetByID(id string) *Operation
func (Operations) Len ¶
func (o Operations) Len() int
func (Operations) Less ¶
func (o Operations) Less(i, j int) bool
func (Operations) Swap ¶
func (o Operations) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.