workspace

package
v0.0.89 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CONFIG_FILE_NAME = "leap.yaml"
View Source
const UNDEFINED_WORKSPACE_CONFIG = "undefined"

Variables

This section is empty.

Functions

func CreateCodeTemplate

func CreateCodeTemplate(codeIntegrationId, projectId, secretId, branch, outputDir string) error

func IsWorkspaceDir

func IsWorkspaceDir() bool

func OverrideWorkspaceConfig added in v0.0.32

func OverrideWorkspaceConfig(codeIntegrationId, projectId, entryFile, secretId, branch string, files []string, outputDir string) error

func SetWorkspaceConfig

func SetWorkspaceConfig(workspaceConfig *WorkspaceConfig, outputDir string) error

Types

type InitTemplateValues

type InitTemplateValues struct {
	CodeIntegrationId string
	ProjectId         string
	SecretId          string
	Branch            string
}

type WorkspaceConfig

type WorkspaceConfig struct {
	CodeIntegrationId string `yaml:"codeIntegrationId"`
	ProjectId         string `yaml:"projectId"`
	SecretId          string `yaml:"secretId"`
	Branch            string `yaml:"branch,omitempty"`
	// deprecated
	SecretManagerId string   `yaml:"secretManagerId,omitempty"`
	EntryFile       string   `yaml:"entryFile"`
	IncludePatterns []string `yaml:"include"`
}

func GetWorkspaceConfig

func GetWorkspaceConfig() (*WorkspaceConfig, error)

func NewWorkspaceConfig

func NewWorkspaceConfig(codeIntegrationId, projectId, entryFile, secretId, branch string, files []string) *WorkspaceConfig

Jump to

Keyboard shortcuts

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