Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToTool ¶ added in v0.1.2
Types ¶
type JQParser ¶
func NewJQParser ¶
func (*JQParser) Parse ¶
func (parser *JQParser) Parse(data []byte) *JQResponse
type JQResponse ¶
type JQResponse struct { Bytes []byte Type JQResponseType StringObj string StringArray []string StringMap map[string]string StringMapArray []map[string]string }
func (*JQResponse) Unmarshal ¶
func (resp *JQResponse) Unmarshal()
type JQResponseType ¶
type JQResponseType int
const ( Empty JQResponseType = iota String StringArray StringStringMap StringStringMapArray Unknown )
type ServiceRegistration ¶
type ServiceRegistration struct { Name string Description string `json:",omitempty"` Owner string `json:",omitempty"` Lifecycle string `json:",omitempty"` Tier string `json:",omitempty"` Product string `json:",omitempty"` Language string `json:",omitempty"` Framework string `json:",omitempty"` Aliases []string `json:",omitempty"` Tags map[string]string `json:",omitempty"` Tools []opslevel.ToolCreateInput `json:",omitempty"` // This is a concrete class so fields are validated during `service preview` }
func QueryForServices ¶
func QueryForServices(c *config.Config) ([]ServiceRegistration, error)
type ServiceRegistrationParser ¶
type ServiceRegistrationParser struct { Name JQParser Description JQParser Owner JQParser Lifecycle JQParser Tier JQParser Product JQParser Language JQParser Framework JQParser Aliases []JQParser Tags []JQParser Tools []JQParser }
func NewParser ¶
func NewParser(c config.ServiceRegistrationConfig) *ServiceRegistrationParser
func (*ServiceRegistrationParser) Parse ¶
func (parser *ServiceRegistrationParser) Parse(data []byte) *ServiceRegistration
Click to show internal directories.
Click to hide internal directories.