Documentation ¶
Index ¶
- Constants
- type Bus
- type Context
- type DataReport
- type Dependencies
- type Gen
- type GetArgs
- type GlobalArgs
- type GlobalConfig
- type Index
- type IterateRenderContext
- type MessageReport
- type NamedBus
- type NamedContext
- type NamedUser
- type NodeFilters
- type Output
- type ProjectConfig
- type RenderContext
- type RenderTask
- type RenderTaskDependencies
- type SdkConfig
- type SdkGenerator
- type User
- type V0Global
- type V0Project
- type Version
Constants ¶
View Source
const ( FormatJson = "json" FormatYaml = "yaml" FormatDefault = FormatYaml )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus struct { CertificateAuthorityData string `json:"certificateAuthorityData,omitempty" yaml:"certificateAuthorityData,omitempty"` CertificateAuthority string `json:"certificateAuthority,omitempty" yaml:"certificateAuthority,omitempty"` Addr string `json:"addr,omitempty" yaml:"addr,omitempty"` }
type DataReport ¶
type DataReport struct { MessageReport `yaml:",omitempty,inline" json:",omitempty"` Data interface{} `yaml:",omitempty" json:"data,omitempty"` }
type Dependencies ¶
type Dependencies struct { Version Version FileSystem afero.Fs ProjectConfig *ProjectConfig GlobalConfig GlobalConfig MessageReport *MessageReport RootNode *graph.RootNode Factory generic.Factory GlobalArgs GlobalArgs }
type Gen ¶
type Gen struct { Tasks []RenderTask `json:"tasks,omitempty" yaml:"tasks,omitempty"` Sdks []SdkConfig `json:"sdks,omitempty" yaml:"sdks,omitempty"` }
type GetArgs ¶
type GetArgs struct { Host string Password string User string TypePlural string Services string Path string Search string Id string Username string Name string }
func (GetArgs) GetSvcFilter ¶
func (a GetArgs) GetSvcFilter() mql.ServiceFilter
type GlobalArgs ¶
type GlobalArgs struct { Output string VerbosityLevel int OutputFormat string GlobalConfigPath string ProjectConfigPath string Addr string Token string NoColor bool }
func (GlobalArgs) ReturnData ¶
func (a GlobalArgs) ReturnData() (b bool)
type GlobalConfig ¶
type GlobalConfig struct {
V0 V0Global
}
type IterateRenderContext ¶
type MessageReport ¶
type MessageReport struct { Debug []string `yaml:",omitempty" json:"debug,omitempty"` Info []string `yaml:",omitempty" json:"info,omitempty"` Warning []string `yaml:",omitempty" json:"warning,omitempty"` Error []string `yaml:",omitempty" json:"error,omitempty"` Hint []string `yaml:",omitempty" json:"hint,omitempty"` }
func (*MessageReport) AddDebug ¶
func (r *MessageReport) AddDebug(any interface{})
func (*MessageReport) AddError ¶
func (r *MessageReport) AddError(any interface{})
func (*MessageReport) AddHint ¶
func (r *MessageReport) AddHint(any interface{})
func (*MessageReport) AddInfo ¶
func (r *MessageReport) AddInfo(any interface{})
func (*MessageReport) AddWarning ¶
func (r *MessageReport) AddWarning(any interface{})
type NamedContext ¶
type NodeFilters ¶
type ProjectConfig ¶
type ProjectConfig struct {
V0 V0Project `json:"v0,omitempty" yaml:"v0,omitempty"`
}
type RenderContext ¶
type RenderContext struct { Version *Version Data map[string]interface{} BasicTypes graph.BasicTypeNodeMap Endpoints graph.EndpointNodeMap Enums graph.EnumNodeMap Fields graph.FieldNodeMap Relations graph.RelationNodeMap Types graph.TypeNodeMap Paths graph.PathNodeMap }
type RenderTask ¶
type RenderTask struct { Name *string `yaml:"name"` Template *string `yaml:"template"` TemplateData *string `yaml:"templateData"` Out *string `yaml:"out"` Filter *NodeFilters `yaml:"select"` Dependencies *RenderTaskDependencies `yaml:"dependencies"` Iterate *string `yaml:"iterate"` Data map[string]interface{} `yaml:"data"` Reset *bool `yaml:"reset"` }
type RenderTaskDependencies ¶
type SdkGenerator ¶
type SdkGenerator struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Description string `json:"description,omitempty" yaml:"description,omitempty"` Init func(*SdkGenerator, SdkConfig) (err error) `json:"-" yaml:"-"` Reset func(SdkConfig) (err error) `json:"-" yaml:"-"` Tasks []RenderTask `json:"tasks,omitempty" yaml:"tasks,omitempty"` Dependencies []RenderTask `json:"dependencies,omitempty" yaml:"dependencies,omitempty"` }
type User ¶
type User struct { ClientCertificate string `json:"clientCertificate,omitempty" yaml:"clientCertificate,omitempty"` ClientCertificateData string `json:"clientCertificateData,omitempty" yaml:"clientCertificateData,omitempty"` ClientToken string `json:"clientToken,omitempty" yaml:"clientToken,omitempty"` ClientTokenData string `json:"clientTokenData,omitempty" yaml:"clientTokenData,omitempty"` }
type V0Global ¶
type V0Global struct { Index Index `json:"index,omitempty" yaml:"index,omitempty"` Buses []NamedBus `json:"buses,omitempty" yaml:"buses,omitempty"` Users []NamedUser `json:"users,omitempty" yaml:"users,omitempty"` Contexts []NamedContext `json:"contexts,omitempty" yaml:"contexts,omitempty"` CurrentContext string `json:"currentContext,omitempty" yaml:"currentContext,omitempty"` }
Click to show internal directories.
Click to hide internal directories.