Documentation
¶
Index ¶
- Constants
- func BuildFeedRegistry(descriptors map[string]*ServiceDescriptor) (map[string]FeedSpec, error)
- func ResolveBuildContextDir(baseDir string, raw interface{}) (string, error)
- func ResolveBuildContextFile(baseDir string, buildRaw interface{}, containerPath string) (string, error)
- type AuthDescriptor
- type EndpointDescriptor
- type FeedDescriptor
- type FeedSpec
- type ServiceDescriptor
- func LoadFromBuildContext(baseDir string, buildRaw interface{}, descriptorPath string) (*ServiceDescriptor, string, error)
- func LoadFromFile(path string) (*ServiceDescriptor, error)
- func LoadFromImage(imageRef, descriptorPath string) (*ServiceDescriptor, error)
- func Parse(data []byte) (*ServiceDescriptor, error)
Constants ¶
View Source
const DefaultDescriptorFile = ".claw-describe.json"
Variables ¶
This section is empty.
Functions ¶
func BuildFeedRegistry ¶
func BuildFeedRegistry(descriptors map[string]*ServiceDescriptor) (map[string]FeedSpec, error)
func ResolveBuildContextDir ¶
Types ¶
type AuthDescriptor ¶
type EndpointDescriptor ¶
type FeedDescriptor ¶
type ServiceDescriptor ¶
type ServiceDescriptor struct {
Version int `json:"version"`
Description string `json:"description,omitempty"`
Feeds []FeedDescriptor `json:"feeds,omitempty"`
Endpoints []EndpointDescriptor `json:"endpoints,omitempty"`
Auth *AuthDescriptor `json:"auth,omitempty"`
Skill string `json:"skill,omitempty"`
}
func LoadFromBuildContext ¶
func LoadFromBuildContext(baseDir string, buildRaw interface{}, descriptorPath string) (*ServiceDescriptor, string, error)
func LoadFromFile ¶
func LoadFromFile(path string) (*ServiceDescriptor, error)
func LoadFromImage ¶
func LoadFromImage(imageRef, descriptorPath string) (*ServiceDescriptor, error)
func Parse ¶
func Parse(data []byte) (*ServiceDescriptor, error)
func (*ServiceDescriptor) Validate ¶
func (d *ServiceDescriptor) Validate() error
Click to show internal directories.
Click to hide internal directories.