package
0.0.0-20241018223127-a062be16fda2
Repository: https://github.com/activestate/cli.git
Documentation: pkg.go.dev

# Functions

AddLockInfo adds the lock field to activestate.yaml.
CleanProjectMapping removes projects that no longer exist on a user's filesystem from the projects config entry.
Create will create a new activestate.yaml with a projectURL for the given details.
FromEnv returns the project configuration based on environment information (env vars, cwd, etc).
FromExactPath will return the projectfile that's located at the given path without walking up the directory tree.
FromPath will return the projectfile that's located at the given path (this will walk up the directory tree until it finds the project).
No description provided by the author
No description provided by the author
GetProjectFilePath returns the path to the project activestate.yaml It considers projects in the following order: 1.
No description provided by the author
GetProjectPaths returns the paths of all projects associated with the namespace.
GetStaleProjectMapping returns a project mapping from the last time the state tool was run.
MakeConstantsFromConstrainedEntities unboxes ConstraintedEntities as Constants.
MakeEventsFromConstrainedEntities unboxes ConstraintedEntities as Events.
MakePackagesFromConstrainedEntities unboxes ConstraintedEntities as Packages.
MakeScriptsFromConstrainedEntities unboxes ConstraintedEntities as Scripts.
MakeSecretsFromConstrainedEntities unboxes ConstraintedEntities as Secrets.
No description provided by the author
No description provided by the author
Parse the given filepath, which should be the full path to an activestate.yaml file.
No description provided by the author
ParseVersionInfo parses the lock field from the projectfile and updates the activestate.yaml if an older version representation is present.
No description provided by the author
No description provided by the author
No description provided by the author
StoreProjectMapping associates the namespace with the project path in the config.
ValidateProjectURL validates the configured project URL.

# Constants

No description provided by the author
No description provided by the author

# Variables

CommitURLRe Regex used to validate commit info /commit/someUUID.
ProjectURLRe Regex used to validate project fields /orgname/projectname[?commitID=someUUID].

# Structs

Constant covers the constant structure, which goes under Project.
ConstantFields are the common fields for the Constant type.
CreateParams are parameters that we create a custom activestate.yaml file from.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Event covers the event structure, which goes under Project.
EventFields are the common fields for the Event type.
Job covers the job structure, which goes under Project.
No description provided by the author
Package covers the package structure, which goes under the language struct.
Project covers the top level project structure of our yaml.
ProjectSimple reflects a bare basic project structure.
Script covers the script structure, which goes under Project.
ScriptFields are the common fields for the Script type.
Secret covers the variable structure, which goes under Project.
SecretScopes holds secret scopes, scopes define what the secrets belong to.
VersionInfo is used in cases where we only care about parsing the version and channel fields.

# Interfaces

No description provided by the author
ConstrainedEntity is an entity in a project file that can be filtered with constraints.

# Type aliases

Build covers the build map, which can go under languages or packages Build can hold variable keys, so we cannot predict what they are, hence why it is a map.
Conditional is an `if` conditional that when evalutes to true enables the entity its under it is meant to replace Constraints.
Constants is a slice of constant values.
Events is a slice of Event definitions.
Jobs is a slice of jobs.
No description provided by the author
Packages is a slice of Package configurations.
Scripts is a slice of scripts.
Secrets is a slice of Secret definitions.