starlarkopenapi

package
v0.0.0-...-3de7540 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2022 License: BSD-3-Clause Imports: 27 Imported by: 0

README

open

open(url, **kwargs) opens an OpenAPI spec creating a new openAPI client.

Parameter Type Description
url string Runtimevar URL of openAPI spec.
client http.client Optional HTTP client to use for all requests.

client·service·method

c.<service>.<method>(**parameters) sends a HTTP request and returns a HTTP response. OpenAPI clients will translate the spec into a typed client.

Parameter Type Description
service attr Methods grouped by "tag".
method attr Callable method in the group.
parameters {}any Request parameters.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessage

func NewMessage(schema *spec.Schema, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func NewModule

func NewModule() *starlarkstruct.Module

func Open

func Open(thread *starlark.Thread, fnname string, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Attr

func (c *Client) Attr(name string) (starlark.Value, error)

func (*Client) AttrNames

func (c *Client) AttrNames() []string

func (*Client) Close

func (c *Client) Close() error

func (*Client) Freeze

func (c *Client) Freeze()

func (*Client) Hash

func (c *Client) Hash() (uint32, error)

func (*Client) String

func (c *Client) String() string

func (*Client) Truth

func (c *Client) Truth() starlark.Bool

func (*Client) Type

func (c *Client) Type() string

type Method

type Method struct {
	// contains filtered or unexported fields
}

func (*Method) CallInternal

func (m *Method) CallInternal(thread *starlark.Thread, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func (*Method) Freeze

func (m *Method) Freeze()

func (*Method) Hash

func (m *Method) Hash() (uint32, error)

func (*Method) Name

func (m *Method) Name() string

func (*Method) String

func (m *Method) String() string

func (*Method) Truth

func (m *Method) Truth() starlark.Bool

func (*Method) Type

func (m *Method) Type() string

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) Attr

func (s *Service) Attr(name string) (starlark.Value, error)

func (*Service) AttrNames

func (s *Service) AttrNames() []string

func (*Service) Freeze

func (s *Service) Freeze()

func (*Service) Hash

func (s *Service) Hash() (uint32, error)

func (*Service) String

func (s *Service) String() string

func (*Service) Truth

func (s *Service) Truth() starlark.Bool

func (*Service) Type

func (s *Service) Type() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL