Documentation ¶
Index ¶
- type Api
- type ApiLookupFilter
- type ApiOperation
- type ApiOperationConsumable
- type ApiOperationParam
- type ApiOperationProducible
- type ApiOperationSchema
- type ApisService
- type Client
- type Config
- type Metadata
- type Service
- type ServiceLookupFilter
- type ServicesService
- type Type
- type TypeField
- type TypeLookupFilter
- type TypesService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct { Metadata *Metadata `json:"metadata"` Operations []*ApiOperation `json:"operations,omitempty"` }
type ApiLookupFilter ¶
type ApiOperation ¶
type ApiOperation struct { Name string `json:"name"` Path string `json:"path"` Method string `json:"method"` Params []*ApiOperationParam `json:"params,omitempty"` Consumables []*ApiOperationConsumable `json:"consumables,omitempty"` Producibles []*ApiOperationProducible `json:"producibles,omitempty"` }
type ApiOperationConsumable ¶
type ApiOperationConsumable struct { Format string `json:"format"` Type string `json:"type"` Schema *ApiOperationSchema `json:"schema"` }
type ApiOperationParam ¶
type ApiOperationProducible ¶
type ApiOperationProducible struct { Status string `json:"status"` Format string `json:"format"` Type string `json:"type"` Schema *ApiOperationSchema `json:"schema"` }
type ApiOperationSchema ¶
type ApisService ¶
type ApisService service
func (*ApisService) Create ¶
func (a *ApisService) Create(resource *Api) error
func (*ApisService) Describe ¶
func (a *ApisService) Describe(lookup *ApiLookupFilter, resource interface{}) error
func (*ApisService) DescribeById ¶
func (a *ApisService) DescribeById(id string, resource interface{}) error
func (*ApisService) Update ¶
func (a *ApisService) Update(resource *Api) error
type Client ¶
type Client struct { Types *TypesService Apis *ApisService Services *ServicesService // contains filtered or unexported fields }
type Metadata ¶
type ServiceLookupFilter ¶
type ServicesService ¶
type ServicesService service
func (*ServicesService) Create ¶
func (t *ServicesService) Create(resource *Service) error
func (*ServicesService) Describe ¶
func (t *ServicesService) Describe(lookup *ServiceLookupFilter, resource interface{}) error
func (*ServicesService) DescribeById ¶
func (t *ServicesService) DescribeById(id string, resource interface{}) error
func (*ServicesService) Update ¶
func (t *ServicesService) Update(resource *Service) error
type TypeLookupFilter ¶
type TypesService ¶
type TypesService service
func (*TypesService) Create ¶
func (t *TypesService) Create(resource *Type) error
func (*TypesService) Describe ¶
func (t *TypesService) Describe(lookup *TypeLookupFilter, resource interface{}) error
func (*TypesService) DescribeById ¶
func (t *TypesService) DescribeById(id string, resource interface{}) error
func (*TypesService) Update ¶
func (t *TypesService) Update(resource *Type) error
Click to show internal directories.
Click to hide internal directories.