Versions in this module Expand all Collapse all v0 v0.6.0 Jul 3, 2023 Changes in this version + const CIRCLE_CI_APP_HOST_URL + var Commit = "dirty-local-tree" + var ValidARMOrMachineImages = append(ValidARMOrMachineImagesUbuntu2004, ValidARMOrMachineImagesUbuntu2204) + var ValidARMOrMachineImagesUbuntu2004 = []string + var ValidARMOrMachineImagesUbuntu2204 = []string + var Version = "0.0.0-dev" + func AddOffsetToRange(rng protocol.Range, offset protocol.Position) protocol.Range + func AllLineContentRange(lineIndexes []int, content []byte) []protocol.Range + func ArePositionEqual(a protocol.Position, b protocol.Position) bool + func AreRangeEqual(a protocol.Range, b protocol.Range) bool + func CheckIfMatrixParamIsPartiallyReferenced(content string) bool + func CheckIfOnlyParamUsed(content string) bool + func CheckIfParamIsPartiallyReferenced(content string) (bool, bool) + func ComparePosition(a protocol.Position, b protocol.Position) int + func CreateCodeActionTextEdit(title string, textDocumentUri uri.URI, textEdits []protocol.TextEdit, ...) protocol.CodeAction + func CreateDiagnosticFromRange(rng protocol.Range, severity protocol.DiagnosticSeverity, msg string, ...) protocol.Diagnostic + func CreateEmptyAssignationWarning(rng protocol.Range) protocol.Diagnostic + func CreateErrorDiagnosticFromNode(node *sitter.Node, msg string) protocol.Diagnostic + func CreateErrorDiagnosticFromRange(rng protocol.Range, msg string) protocol.Diagnostic + func CreateHintDiagnosticFromRange(rng protocol.Range, msg string) protocol.Diagnostic + func CreateInformationDiagnosticFromRange(rng protocol.Range, msg string) protocol.Diagnostic + func CreateWarningDiagnosticFromNode(node *sitter.Node, msg string) protocol.Diagnostic + func CreateWarningDiagnosticFromRange(rng protocol.Range, msg string) protocol.Diagnostic + func ExtractParameterName(parameter string) (string, string) + func FindInArray(array []T, elem T) int + func GetAllContext(lsContext *LsContext, organization string, vcs string, cache *Cache) error + func GetAllProjectEnvVariables(lsContext *LsContext, cache *Cache, cachedFile *CachedFile) + func GetClient() *http.Client + func GetLatestUbuntu2204Image() string + func GetMachineTrueMessage(img string) string + func GetOrbCacheFSPath(orbYaml string) string + func GetParamNameDefinedAtPos(parameters map[string]ast.Parameter, pos protocol.Position) string + func GetParamNameUsedAtPos(content []byte, position protocol.Position) (string, bool) + func GetParamsInString(content string) ([]struct{ ... }, error) + func GetProjectOrg(projectSlug string) string + func GetProjectSlug(configPath string) string + func GetReferencesOfParamInRange(content []byte, paramName string, rng protocol.Range) ([][]int, error) + func GetYAMLBooleanValue(str string) bool + func HasStoreTestResultStep(step []ast.Step) bool + func IndexToPos(index int, content []byte) protocol.Position + func IsDefaultRange(rng protocol.Range) bool + func IsValidYAMLBooleanValue(str string) bool + func LineContentRange(lineIndex int, content []byte) protocol.Range + func NodeAtPos(rootNode *sitter.Node, pos protocol.Position) (*sitter.Node, []*sitter.Node, error) + func PackageManager() string + func PosInRange(rng protocol.Range, pos protocol.Position) bool + func PosToIndex(pos protocol.Position, content []byte) int + func ToDiagnosticMessage(message string) string + type ApiContext struct + HostUrl string + Token string + func (apiContext ApiContext) GetUserId() string + func (apiContext ApiContext) IsLoggedIn() bool + func (apiContext ApiContext) UseDefaultInstance() bool + type Cache struct + ContextCache ContextCache + DockerCache DockerCache + DockerTagsCache DockerTagsCache + FileCache FileCache + OrbCache OrbCache + ResourceClassCache ResourceClassCache + func CreateCache() *Cache + func (c *Cache) RemoveOrbFiles() + func (cache *Cache) ClearHostData() + type CachedDockerImage struct + Checked bool + Exists bool + type CachedDockerTags struct + CheckedTags map[string]bool + Recommended string + type CachedFile struct + EnvVariables []string + Project Project + TextDocument protocol.TextDocumentItem + type Client struct + Debug bool + Endpoint string + Host string + Token string + func NewClient(host, endpoint, token string, debug bool) *Client + func (cl *Client) Reset(host, endpoint, token string, debug bool) + func (cl *Client) Run(request *Request, resp interface{}) error + type Context struct + CreatedAt string + Id string + Name string + type ContextCache struct + func (c *ContextCache) AddEnvVariableToOrganizationContext(organizationId string, name string, envVariable string) + func (c *ContextCache) GetAllContextOfOrganization(organizationId string) map[string]*Context + func (c *ContextCache) GetOrganizationContext(organizationId string, name string) *Context + func (c *ContextCache) RemoveOrganizationContext(organizationId string, name string) + func (c *ContextCache) SetOrganizationContext(organizationId string, ctx *Context) *Context + type ContextEnvVariable struct + AssociatedContext string + Name string + func GetAllContextEnvVariables(lsContext *LsContext, cache *Cache, organizationId string, contexts []string) []ContextEnvVariable + type DockerCache struct + func (c *DockerCache) Add(name string, exists bool) *CachedDockerImage + func (c *DockerCache) Get(name string) *CachedDockerImage + func (c *DockerCache) Remove(name string) + type DockerTagsCache struct + func (c *DockerTagsCache) Add(namespace, image string, value CachedDockerTags) + func (c *DockerTagsCache) Get(namespace, image string) *CachedDockerTags + type FileCache struct + func (c *FileCache) AddEnvVariableToProjectLinkedToFile(uri protocol.URI, envVariable string) + func (c *FileCache) AddProjectSlugToFile(uri protocol.URI, project Project) + func (c *FileCache) GetFile(uri protocol.URI) *CachedFile + func (c *FileCache) GetFiles() map[protocol.URI]*CachedFile + func (c *FileCache) RemoveFile(uri protocol.URI) + func (c *FileCache) SetFile(cachedFile CachedFile) CachedFile + func (c *FileCache) UpdateTextDocument(uri protocol.URI, textDocument protocol.TextDocumentItem) + type GetAllContextRes struct + Organization struct{ ... } + type LsContext struct + Api ApiContext + IsCciExtension bool + UserIdForTelemetry string + type MeRes struct + Id string + Login string + Name string + type OrbCache struct + func (c *OrbCache) GetOrb(orbID string) *ast.OrbInfo + func (c *OrbCache) HasOrb(orbID string) bool + func (c *OrbCache) RemoveOrb(orbID string) + func (c *OrbCache) RemoveOrbs() + func (c *OrbCache) SetOrb(orb *ast.OrbInfo, orbID string) ast.OrbInfo + func (c *OrbCache) UpdateOrbParsedAttributes(orbID string, parsedOrbAttributes ast.OrbParsedAttributes) ast.OrbParsedAttributes + type Project struct + Id string + Name string + OrganizationId string + OrganizationName string + OrganizationSlug string + Slug string + VcsInfo struct{ ... } + func GetProjectId(projectSlug string, lsContext *LsContext) (Project, error) + type ProjectEnvVariableRes struct + Items []struct{ ... } + NextPageToken string + type Request struct + Header http.Header + Query string + Variables map[string]interface{} + func NewRequest(query string) *Request + func (request *Request) Encode() (bytes.Buffer, error) + func (request *Request) SetToken(token string) + func (request *Request) SetUserId(userId string) + func (request *Request) Var(key string, value interface{}) + type ResourceClassCache struct + func (c *ResourceClassCache) GetResourceClassOfFile(uri protocol.URI) []string + func (c *ResourceClassCache) SetResourceClassForFile(uri protocol.URI, resourceClass *[]string) *[]string + type Response struct + Data interface{} + Errors ResponseErrorsCollection + type ResponseError struct + Extensions struct{ ... } + Locations []struct{ ... } + Message string + type ResponseErrorsCollection []ResponseError + func (errs ResponseErrorsCollection) Error() string