complete

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BUILT_IN_ENV = []string{
	"CI",
	"CIRCLECI",
	"CIRCLE_BRANCH",
	"CIRCLE_BUILD_NUM",
	"CIRCLE_BUILD_URL",
	"CIRCLE_JOB",
	"CIRCLE_NODE_INDEX",
	"CIRCLE_NODE_TOTAL",
	"CIRCLE_OIDC_TOKEN",
	"CIRCLE_PR_NUMBER",
	"CIRCLE_PR_REPONAME",
	"CIRCLE_PR_USERNAME",
	"CIRCLE_PREVIOUS_BUILD_NUM",
	"CIRCLE_PROJECT_REPONAME",
	"CIRCLE_PROJECT_USERNAME",
	"CIRCLE_PULL_REQUEST",
	"CIRCLE_PULL_REQUESTS",
	"CIRCLE_REPOSITORY_URL",
	"CIRCLE_SHA1",
	"CIRCLE_TAG",
	"CIRCLE_USERNAME",
	"CIRCLE_WORKFLOW_ID",
	"CIRCLE_WORKFLOW_JOB_ID",
	"CIRCLE_WORKFLOW_WORKSPACE_ID",
	"CIRCLE_WORKING_DIRECTORY",
}

Functions

This section is empty.

Types

type CompletionHandler

type CompletionHandler struct {
	Params protocol.CompletionParams

	Doc     yamlparser.YamlDocument
	DocTag  string
	DocDiff string

	Items   []protocol.CompletionItem
	Cache   *utils.Cache
	Context *utils.LsContext
}

func (*CompletionHandler) GetCompletionItems

func (ch *CompletionHandler) GetCompletionItems()

func (*CompletionHandler) GetOrbInfo

func (ch *CompletionHandler) GetOrbInfo(orb ast.Orb) *ast.OrbInfo

type NamespaceOrbResponse

type NamespaceOrbResponse struct {
	RegistryNamespace struct {
		ID   string
		Name string
		Orbs struct {
			Edges []struct {
				Cursor string
				Node   OrbGQLData
			}
			TotalCount int
			PageInfo   struct {
				HasNextPage bool
			}
		}
	}
}

type OrbCache

type OrbCache struct {
	// contains filtered or unexported fields
}

func (*OrbCache) GetOrbsOfRegistry

func (cache *OrbCache) GetOrbsOfRegistry(registry, hostUrl, token, userId string) (*NamespaceOrbResponse, error)

func (*OrbCache) GetVersionsOfOrb

func (cache *OrbCache) GetVersionsOfOrb(orbName, hostUrl, token, userId string) (*OrbGQLData, error)

type OrbGQLData

type OrbGQLData struct {
	ID       string       `json:"id"`
	Name     string       `json:"name"`
	Versions []OrbVersion `json:"versions"`
}

type OrbVersion

type OrbVersion struct {
	Version string `json:"version"`
}

type RequestConfig

type RequestConfig struct {
	HostUrl  string
	Token    string
	UserId   string
	Query    string
	Params   map[string]interface{}
	Response interface{}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL