Documentation ¶
Index ¶
- Variables
- func DiagnosticVersion(version string, infoVersions InfoVersions) (string, protocol.DiagnosticSeverity)
- func DoesDockerImageExists(img *ast.DockerImage, cache *utils.DockerCache, api dockerhub.DockerHubAPI) bool
- func DoesTagExist(img *ast.DockerImage, searchedTag string, cache *utils.DockerTagsCache, ...) bool
- func GetImageTagActions(doc *parser.YamlDocument, img *ast.DockerImage, cache *utils.DockerTagsCache, ...) []protocol.CodeAction
- func GetImageTagInfo(img *ast.DockerImage, cache *utils.DockerTagsCache, api dockerhub.DockerHubAPI) *utils.CachedDockerTags
- type InfoVersions
- type OrbVersionCodeActionCreator
- type RegistryNamespace
- type Validate
- func (val Validate) CheckIfParamsExist()
- func (val Validate) CheckNames()
- func (val *Validate) Validate(inLocalOrb bool)
- func (val Validate) ValidateAnchors()
- func (val Validate) ValidateCommands()
- func (val Validate) ValidateExecutors()
- func (val Validate) ValidateJobs()
- func (val Validate) ValidateLocalOrbs()
- func (val Validate) ValidateOrbs()
- func (val Validate) ValidatePipelineParameters()
- func (val Validate) ValidateWorkflows()
- type ValidateAPIs
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidARMResourceClasses = []string{
"arm.medium",
"arm.large",
"arm.xlarge",
"arm.2xlarge",
}
View Source
var ValidDockerResourceClasses = []string{
"small",
"medium",
"medium+",
"large",
"xlarge",
"2xlarge",
"2xlarge+",
}
View Source
var ValidLinuxResourceClasses = []string{
"medium",
"large",
"xlarge",
"2xlarge",
"2xlarge+",
}
View Source
var ValidMacOSResourceClasses = []string{
"medium",
"macos.x86.medium.gen2",
"large",
"macos.m1.medium.gen1",
"macos.m1.large.gen1",
"macos.x86.metal.gen1",
}
View Source
var ValidNvidiaGPUResourceClasses = []string{
"gpu.nvidia.small",
"gpu.nvidia.medium",
"gpu.nvidia.large",
"windows.gpu.nvidia.medium",
}
View Source
var ValidWindowsResourceClasses = []string{
"medium",
"large",
"xlarge",
"2xlarge",
}
View Source
var ValidXCodeVersions = []string{
"14.3.1",
"14.2.0",
"14.1.0",
"14.0.1",
"13.4.1",
"13.3.1",
"13.2.1",
"13.1.0",
"13.0.0",
"12.5.1",
"11.7.0",
}
View Source
var WHEN_KEYWORDS = []string{
"on_success",
"always",
"on_fail",
}
Functions ¶
func DiagnosticVersion ¶
func DiagnosticVersion(version string, infoVersions InfoVersions) (string, protocol.DiagnosticSeverity)
*
- Calculate diagnostic information about a package version.
- version: Version of the package to diagnostic
- infoVersions: Several information about the given package
func DoesDockerImageExists ¶
func DoesDockerImageExists(img *ast.DockerImage, cache *utils.DockerCache, api dockerhub.DockerHubAPI) bool
func DoesTagExist ¶
func DoesTagExist(img *ast.DockerImage, searchedTag string, cache *utils.DockerTagsCache, api dockerhub.DockerHubAPI) bool
func GetImageTagActions ¶
func GetImageTagActions(doc *parser.YamlDocument, img *ast.DockerImage, cache *utils.DockerTagsCache, api dockerhub.DockerHubAPI) []protocol.CodeAction
func GetImageTagInfo ¶
func GetImageTagInfo(img *ast.DockerImage, cache *utils.DockerTagsCache, api dockerhub.DockerHubAPI) *utils.CachedDockerTags
Get the image tag info and fill the image info if it is not present in the cache
Types ¶
type InfoVersions ¶
type RegistryNamespace ¶
type RegistryNamespace struct { RegistryNameSpace *struct { Name string } }
type Validate ¶
type Validate struct { APIs ValidateAPIs Diagnostics *[]protocol.Diagnostic Doc parser.YamlDocument Cache *utils.Cache Context *utils.LsContext }
func (Validate) CheckIfParamsExist ¶
func (val Validate) CheckIfParamsExist()
func (Validate) CheckNames ¶
func (val Validate) CheckNames()
func (Validate) ValidateAnchors ¶
func (val Validate) ValidateAnchors()
func (Validate) ValidateCommands ¶
func (val Validate) ValidateCommands()
func (Validate) ValidateExecutors ¶
func (val Validate) ValidateExecutors()
func (Validate) ValidateJobs ¶
func (val Validate) ValidateJobs()
func (Validate) ValidateLocalOrbs ¶
func (val Validate) ValidateLocalOrbs()
func (Validate) ValidateOrbs ¶
func (val Validate) ValidateOrbs()
func (Validate) ValidatePipelineParameters ¶
func (val Validate) ValidatePipelineParameters()
func (Validate) ValidateWorkflows ¶
func (val Validate) ValidateWorkflows()
type ValidateAPIs ¶
type ValidateAPIs struct {
DockerHub dockerhub.DockerHubAPI
}
Click to show internal directories.
Click to hide internal directories.