Documentation
¶
Overview ¶
Copyright 2025 The Pastiche Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Copyright 2023 The Pastiche Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Copyright 2025 The Pastiche Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
func (*Model) Resolve ¶
func (c *Model) Resolve(s ServiceSpec, server string, method string) (ResolvedResource, error)
type ResolvedResource ¶
type ResolvedResource interface {
Service() *Service
Resource() *Resource
Endpoint() *Endpoint
Server() *Server
URL(baseURL *url.URL, vars uritemplates.Vars) (*url.URL, error)
Body(vars uritemplates.Vars) io.ReadCloser
}
type Resource ¶
type Service ¶
type ServiceSpec ¶
type ServiceSpec []string
func (ServiceSpec) NewCounter ¶
func (s ServiceSpec) NewCounter() cli.ArgCounter
func (ServiceSpec) Path ¶
func (s ServiceSpec) Path() string
func (ServiceSpec) ServiceName ¶
func (s ServiceSpec) ServiceName() string
func (*ServiceSpec) Set ¶
func (s *ServiceSpec) Set(arg string) error
func (ServiceSpec) String ¶
func (s ServiceSpec) String() string
Click to show internal directories.
Click to hide internal directories.