Documentation
¶
Index ¶
- type Session
- func (s *Session) Delete(path string) (string, error)
- func (s *Session) Get(path string) (string, error)
- func (s *Session) Interactive() error
- func (s *Session) Post(path, body string) (string, error)
- func (s *Session) Put(path, body string) (string, error)
- func (s *Session) Request(method, path, body string, extra map[string]string) (string, error)
- type SessionOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
BaseURL string
Auth string
AuthType string
Headers map[string]string
Spec string
// contains filtered or unexported fields
}
func NewSession ¶
func NewSession(cfg *config.API, opts ...SessionOption) (*Session, error)
func (*Session) Interactive ¶
type SessionOption ¶ added in v0.19.0
type SessionOption func(*Session)
func WithJqFilter ¶ added in v0.19.0
func WithJqFilter(filter string) SessionOption
WithJqFilter sets a jq filter for the session.
Click to show internal directories.
Click to hide internal directories.