validate

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 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 GetImageTagInfo

Get the image tag info and fill the image info if it is not present in the cache

Types

type InfoVersions

type InfoVersions struct {
	LatestVersion      string
	LatestMinorVersion string
	LatestPatchVersion string
}

type OrbVersionCodeActionCreator

type OrbVersionCodeActionCreator struct {
	OrbVersion     string
	CodeActionText string
}

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) Validate

func (val *Validate) Validate(inLocalOrb bool)

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
}

Jump to

Keyboard shortcuts

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