Versions in this module Expand all Collapse all v0 v0.6.0 Jul 3, 2023 Changes in this version + var PARAMS_KEYS = []string + func AddOrbToCacheWithContent(orb ast.Orb, uri protocol.URI, content []byte, context *utils.LsContext, ...) error + func ExecQuery(node *sitter.Node, query string, fn func(match *sitter.QueryMatch)) error + func FindDeepestNode(rootNode *sitter.Node, content []byte, toFind []string) (*sitter.Node, error) + func GetBlockMappingNode(streamNode *sitter.Node) *sitter.Node + func GetChildMapping(node *sitter.Node) *sitter.Node + func GetChildOfType(node *sitter.Node, typeName string) *sitter.Node + func GetChildSequence(node *sitter.Node) *sitter.Node + func GetFirstChild(node *sitter.Node) *sitter.Node + func GetOrbInfo(orbVersionCode string, cache *utils.Cache, context *utils.LsContext) (*ast.OrbInfo, error) + func GetOrbParameters(orb *ast.OrbInfo, position protocol.Position) map[string]ast.Parameter + func GetOrbVersions(orbId string, token string, hostUrl, userId string) ([]struct{ ... }, error) + func GetRootNode(content []byte) *sitter.Node + func GetVersionInfo(versions []struct{ ... }, initialVersion string) (string, string, string) + func ParseDockerImageValue(value string) ast.DockerImageInfo + func ParseRemoteOrbs(orbs map[string]ast.Orb, cache *utils.Cache, context *utils.LsContext) + func ParseYamlAnchors(doc *YamlDocument) map[string]YamlAnchor + type JSONSchemaValidator struct + Doc YamlDocument + func (validator *JSONSchemaValidator) LoadJsonSchema(schemaLocation string) error + func (validator *JSONSchemaValidator) ValidateWithJSONSchema(rootNode *sitter.Node, content []byte) []protocol.Diagnostic + type LocalOrb struct + Name string + type ModifiedYamlDocument struct + Diff string + Document YamlDocument + Tag string + type OrbByNameResponse struct + Orb OrbGQLData + type OrbGQLData struct + ID string + Name string + func GetOrbByName(orbName string, context *utils.LsContext) (OrbGQLData, error) + type OrbQuery struct + Id string + Orb struct{ ... } + Source string + Version string + func GetRemoteOrb(orbId string, token string, hostUrl, userId string) (OrbQuery, error) + type OrbResponse struct + OrbVersion OrbQuery + type YamlAnchor struct + DefinitionRange protocol.Range + Name string + References *[]protocol.Range + ValueNode *sitter.Node + type YamlDocument struct + Commands map[string]ast.Command + CommandsRange protocol.Range + Content []byte + Context *utils.LsContext + Description string + Diagnostics *[]protocol.Diagnostic + Executors map[string]ast.Executor + ExecutorsRange protocol.Range + Jobs map[string]ast.Job + JobsRange protocol.Range + LocalOrbInfo map[string]*ast.OrbInfo + LocalOrbName string + LocalOrbs []LocalOrb + Offset protocol.Position + Orbs map[string]ast.Orb + OrbsRange protocol.Range + PipelineParameters map[string]ast.Parameter + PipelineParametersRange protocol.Range + RootNode *sitter.Node + SchemaLocation string + URI protocol.URI + Version float32 + VersionRange protocol.Range + WorkflowRange protocol.Range + Workflows map[string]ast.Workflow + YamlAnchors map[string]YamlAnchor + func ParseFile(content []byte, context *utils.LsContext) YamlDocument + func ParseFromContent(content []byte, context *utils.LsContext, URI protocol.URI, ...) (YamlDocument, error) + func ParseFromURI(URI protocol.URI, context *utils.LsContext) (YamlDocument, error) + func ParseFromUriWithCache(URI protocol.URI, cache *utils.Cache, context *utils.LsContext) (YamlDocument, error) + func (doc *YamlDocument) CouldBeOrbReference(orbReference string) (string, bool) + func (doc *YamlDocument) DoesCommandExist(commandName string) bool + func (doc *YamlDocument) DoesCommandOrJobOrExecutorExist(name string, includeCommands bool) bool + func (doc *YamlDocument) DoesExecutorExist(executorName string) bool + func (doc *YamlDocument) DoesJobExist(jobName string) bool + func (doc *YamlDocument) DoesOrbExist(orb ast.Orb, cache *utils.Cache) bool + func (doc *YamlDocument) DoesWorkflowExist(workflowName string) bool + func (doc *YamlDocument) FromOrbParsedAttributesToYamlDocument(orb ast.OrbParsedAttributes) YamlDocument + func (doc *YamlDocument) GetDefinedParams(entityName string, cache *utils.Cache) map[string]ast.Parameter + func (doc *YamlDocument) GetExecutorDefinedAtPosition(position protocol.Position) ast.Executor + func (doc *YamlDocument) GetKeyValueNodes(node *sitter.Node) (keyNode *sitter.Node, valueNode *sitter.Node) + func (doc *YamlDocument) GetNodeText(node *sitter.Node) string + func (doc *YamlDocument) GetNodeTextWithRange(node *sitter.Node) ast.TextAndRange + func (doc *YamlDocument) GetOrFetchOrbInfo(orb ast.Orb, cache *utils.Cache) (*ast.OrbInfo, error) + func (doc *YamlDocument) GetOrbDefinedParams(entityName string, cache *utils.Cache) map[string]ast.Parameter + func (doc *YamlDocument) GetOrbInfoFromName(name string, cache *utils.Cache) (*ast.OrbInfo, error) + func (doc *YamlDocument) GetOrbURLDefinition(node *sitter.Node) ast.OrbURLDefinition + func (doc *YamlDocument) GetParameterType(paramNode *sitter.Node) (paramType string, paramTypeRange protocol.Range) + func (doc *YamlDocument) GetParamsWithPosition(position protocol.Position) map[string]ast.Parameter + func (doc *YamlDocument) GetRawNodeText(node *sitter.Node) string + func (doc *YamlDocument) GetWorkflows() []ast.TextAndRange + func (doc *YamlDocument) GetYamlAnchorAtPosition(pos protocol.Position) (YamlAnchor, bool) + func (doc *YamlDocument) InsertText(pos protocol.Position, text string) (YamlDocument, error) + func (doc *YamlDocument) IsAlias(commandName string) bool + func (doc *YamlDocument) IsBuiltIn(commandName string) bool + func (doc *YamlDocument) IsFromUnfetchableOrb(name string) bool + func (doc *YamlDocument) IsGivenOrb(commandName string, orbName string) bool + func (doc *YamlDocument) IsOrbCommand(orbCommand string, cache *utils.Cache) bool + func (doc *YamlDocument) IsOrbJob(orbCommand string, cache *utils.Cache) bool + func (doc *YamlDocument) IsOrbReference(orbReference string) bool + func (doc *YamlDocument) IsSelfHostedRunner(resourceClass string) bool + func (doc *YamlDocument) IsYamlAliasPosition(pos protocol.Position) bool + func (doc *YamlDocument) ModifyTextForAutocomplete(pos protocol.Position) []ModifiedYamlDocument + func (doc *YamlDocument) NodeToRange(node *sitter.Node) protocol.Range + func (doc *YamlDocument) ParseYAML(context *utils.LsContext, offset protocol.Position) + func (doc *YamlDocument) ToOrbParsedAttributes() ast.OrbParsedAttributes + func (doc *YamlDocument) ValidateYAML()