Documentation
¶
Index ¶
- Constants
- type ComposeFiles
- type ContextResolver
- type EnvFile
- type ErrArgumentRequired
- type ErrCommandExecutionFailed
- type ErrConfigIsNotValidYAML
- type ErrCouldNotDetermineCurrentBranch
- type ErrCouldNotDetermineWorkspace
- type ErrDirectoryAlreadyExists
- type ErrDirectoryDoesNotMatchOrigin
- type ErrFileNotFound
- type ErrInvalidArchive
- type ErrInvalidExecutionContext
- type ErrInvalidInput
- type ErrInvalidProjectDependency
- type ErrInvalidSemVerValue
- type ErrInvalidStrategy
- type ErrInvalidValueForOverlayModifier
- type ErrNoBranchesFound
- type ErrNotImplemented
- type ErrProjectConfigNotFound
- type ErrRateLimitedByApi
- type ErrRepositoryAlreadyCloned
- type ErrTooManyArguments
- type ErrToolNotFoundOnSystem
- type ErrToolsNotFoundOnSystem
- type ErrUnexpectedApiError
- type ErrUnknownExtension
- type ErrUnknownProject
- type ErrUnknownService
- type ErrUnknownTool
- type ErrUnknownWorkspace
- type ErrUnsupportedArchitecture
- type ErrUnsupportedOS
- type ErrUnsupportedProvisioner
- type ErrUserAbortedExecution
- type ErrVersionNotFound
- type ErrWorkspaceAlreadyExists
- type ErrWorkspaceConfigNotFound
- type ExampleFileProvisioner
- type ExampleFileProvisionerType
- type ExecutionContext
- type Extension
- type ExtraComposeFile
- type LoaderCondition
- type LoaderPropertyCondition
- type NetworkOverlayConfig
- type OverlayConfig
- type Project
- type ProjectConfig
- type ProjectMeta
- type ProjectRepositoryConfig
- type ProjectRepositoryMeta
- type Property
- type Provisioner
- type UnconfiguredProject
- type UnconfiguredWorkspace
- type Workspace
- type WorkspaceMeta
Constants ¶
View Source
const DefaultProjectFileName = "orca.project.yaml"
View Source
const DefaultWorkspaceFileName = "orca.workspace.yaml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComposeFiles ¶
type ComposeFiles struct {
Primary string
Extras []ExtraComposeFile
}
type ContextResolver ¶
type ContextResolver struct {
// contains filtered or unexported fields
}
func NewContextResolver ¶
func NewContextResolver(cfg configManager, workspaceRepo workspaceRepository) *ContextResolver
func (*ContextResolver) Resolve ¶
func (c *ContextResolver) Resolve(ws string, project string) (ExecutionContext, error)
type ErrArgumentRequired ¶
func (ErrArgumentRequired) Error ¶
func (err ErrArgumentRequired) Error() string
type ErrCommandExecutionFailed ¶
type ErrCommandExecutionFailed struct {
Msg string
}
func (ErrCommandExecutionFailed) Error ¶
func (err ErrCommandExecutionFailed) Error() string
type ErrConfigIsNotValidYAML ¶
func (ErrConfigIsNotValidYAML) Error ¶
func (err ErrConfigIsNotValidYAML) Error() string
type ErrCouldNotDetermineCurrentBranch ¶
type ErrCouldNotDetermineCurrentBranch struct{}
func (ErrCouldNotDetermineCurrentBranch) Error ¶
func (err ErrCouldNotDetermineCurrentBranch) Error() string
type ErrCouldNotDetermineWorkspace ¶
type ErrCouldNotDetermineWorkspace struct {
Message string
}
func (ErrCouldNotDetermineWorkspace) Error ¶
func (err ErrCouldNotDetermineWorkspace) Error() string
type ErrDirectoryAlreadyExists ¶
type ErrDirectoryAlreadyExists struct {
Path string
}
func (ErrDirectoryAlreadyExists) Error ¶
func (err ErrDirectoryAlreadyExists) Error() string
type ErrDirectoryDoesNotMatchOrigin ¶
func (ErrDirectoryDoesNotMatchOrigin) Error ¶
func (err ErrDirectoryDoesNotMatchOrigin) Error() string
type ErrFileNotFound ¶
type ErrFileNotFound struct {
Path string
}
func (ErrFileNotFound) Error ¶
func (err ErrFileNotFound) Error() string
type ErrInvalidArchive ¶
type ErrInvalidArchive struct{}
func (ErrInvalidArchive) Error ¶
func (err ErrInvalidArchive) Error() string
type ErrInvalidExecutionContext ¶
type ErrInvalidExecutionContext struct {
Msg string
}
func (ErrInvalidExecutionContext) Error ¶
func (err ErrInvalidExecutionContext) Error() string
type ErrInvalidInput ¶
func (ErrInvalidInput) Error ¶
func (err ErrInvalidInput) Error() string
type ErrInvalidProjectDependency ¶
func (ErrInvalidProjectDependency) Error ¶
func (err ErrInvalidProjectDependency) Error() string
type ErrInvalidSemVerValue ¶
type ErrInvalidSemVerValue struct {
Value string
}
func (ErrInvalidSemVerValue) Error ¶
func (err ErrInvalidSemVerValue) Error() string
type ErrInvalidStrategy ¶
type ErrInvalidStrategy struct {
Msg string
}
func (ErrInvalidStrategy) Error ¶
func (err ErrInvalidStrategy) Error() string
type ErrInvalidValueForOverlayModifier ¶
func (ErrInvalidValueForOverlayModifier) Error ¶
func (err ErrInvalidValueForOverlayModifier) Error() string
type ErrNoBranchesFound ¶
type ErrNoBranchesFound struct{}
func (ErrNoBranchesFound) Error ¶
func (err ErrNoBranchesFound) Error() string
type ErrNotImplemented ¶
type ErrNotImplemented struct {
Msg string
}
func (ErrNotImplemented) Error ¶
func (err ErrNotImplemented) Error() string
type ErrProjectConfigNotFound ¶
type ErrProjectConfigNotFound struct {
Path string
}
func (ErrProjectConfigNotFound) Error ¶
func (err ErrProjectConfigNotFound) Error() string
type ErrRateLimitedByApi ¶
type ErrRateLimitedByApi struct {
Api string
}
func (ErrRateLimitedByApi) Error ¶
func (err ErrRateLimitedByApi) Error() string
type ErrRepositoryAlreadyCloned ¶
type ErrRepositoryAlreadyCloned struct {
RepoURL string
}
func (ErrRepositoryAlreadyCloned) Error ¶
func (err ErrRepositoryAlreadyCloned) Error() string
type ErrTooManyArguments ¶
type ErrTooManyArguments struct {
Expected int
}
func (ErrTooManyArguments) Error ¶
func (err ErrTooManyArguments) Error() string
type ErrToolNotFoundOnSystem ¶
type ErrToolNotFoundOnSystem struct {
Tool string
}
func (ErrToolNotFoundOnSystem) Error ¶
func (err ErrToolNotFoundOnSystem) Error() string
type ErrToolsNotFoundOnSystem ¶
type ErrToolsNotFoundOnSystem struct {
Errs []ErrToolNotFoundOnSystem
}
func (ErrToolsNotFoundOnSystem) Error ¶
func (err ErrToolsNotFoundOnSystem) Error() string
type ErrUnexpectedApiError ¶
type ErrUnexpectedApiError struct {
Msg string
}
func (ErrUnexpectedApiError) Error ¶
func (err ErrUnexpectedApiError) Error() string
type ErrUnknownExtension ¶
type ErrUnknownExtension struct {
Name string
}
func (ErrUnknownExtension) Error ¶
func (err ErrUnknownExtension) Error() string
type ErrUnknownProject ¶
type ErrUnknownProject struct {
Name string
}
func (ErrUnknownProject) Error ¶
func (err ErrUnknownProject) Error() string
type ErrUnknownService ¶
type ErrUnknownService struct {
Name string
}
func (ErrUnknownService) Error ¶
func (err ErrUnknownService) Error() string
type ErrUnknownTool ¶
type ErrUnknownTool struct {
Tool string
}
func (ErrUnknownTool) Error ¶
func (err ErrUnknownTool) Error() string
type ErrUnknownWorkspace ¶
type ErrUnknownWorkspace struct {
Name string
}
func (ErrUnknownWorkspace) Error ¶
func (err ErrUnknownWorkspace) Error() string
type ErrUnsupportedArchitecture ¶
type ErrUnsupportedArchitecture struct {
Arch string
}
func (ErrUnsupportedArchitecture) Error ¶
func (err ErrUnsupportedArchitecture) Error() string
type ErrUnsupportedOS ¶
type ErrUnsupportedOS struct {
OS string
}
func (ErrUnsupportedOS) Error ¶
func (err ErrUnsupportedOS) Error() string
type ErrUnsupportedProvisioner ¶
type ErrUnsupportedProvisioner struct {
Message string
}
func (ErrUnsupportedProvisioner) Error ¶
func (err ErrUnsupportedProvisioner) Error() string
type ErrUserAbortedExecution ¶
type ErrUserAbortedExecution struct{}
func (ErrUserAbortedExecution) Error ¶
func (err ErrUserAbortedExecution) Error() string
type ErrVersionNotFound ¶
type ErrVersionNotFound struct {
Version string
}
func (ErrVersionNotFound) Error ¶
func (err ErrVersionNotFound) Error() string
type ErrWorkspaceAlreadyExists ¶
type ErrWorkspaceAlreadyExists struct {
Name string
}
func (ErrWorkspaceAlreadyExists) Error ¶
func (err ErrWorkspaceAlreadyExists) Error() string
type ErrWorkspaceConfigNotFound ¶
type ErrWorkspaceConfigNotFound struct {
Path string
}
func (ErrWorkspaceConfigNotFound) Error ¶
func (err ErrWorkspaceConfigNotFound) Error() string
type ExampleFileProvisioner ¶
type ExampleFileProvisioner struct {
Src string
Target string
Type ExampleFileProvisionerType
}
type ExampleFileProvisionerType ¶
type ExampleFileProvisionerType string
const ExampleFileProvisionerTypeDotenv ExampleFileProvisionerType = "dotenv"
type ExecutionContext ¶
type ExtraComposeFile ¶
type ExtraComposeFile struct {
Path string
When []LoaderCondition
}
type LoaderCondition ¶
type LoaderCondition struct {
OS string
Arch string
Property LoaderPropertyCondition
}
type LoaderPropertyCondition ¶
type NetworkOverlayConfig ¶
type OverlayConfig ¶
type OverlayConfig struct {
Network NetworkOverlayConfig
}
type Project ¶
type Project struct {
Name string
RepositoryConfig ProjectRepositoryConfig
ProjectDir string
Requires []string
Config ProjectConfig
IsRegistered bool
}
func (Project) EnvFilePaths ¶
func (Project) GetChildren ¶
func (Project) GetParents ¶
type ProjectConfig ¶
type ProjectConfig struct {
ComposeFiles ComposeFiles
Provisioners []Provisioner
EnvFiles []EnvFile
Properties []Property
Hosts []string
TLSCertificates []string
Extensions []Extension
}
type ProjectMeta ¶
type ProjectMeta struct {
Name string
Path string
WorkspaceName string
Repository ProjectRepositoryMeta
}
type ProjectRepositoryConfig ¶
type ProjectRepositoryMeta ¶
type Provisioner ¶
type Provisioner struct {
ExampleFile *ExampleFileProvisioner
}
type UnconfiguredProject ¶
type UnconfiguredProject struct {
Name string
RepositoryConfig ProjectRepositoryConfig
}
type UnconfiguredWorkspace ¶
type UnconfiguredWorkspace struct {
Name string
ConfigPath string
Projects []UnconfiguredProject
}
type Workspace ¶
type Workspace struct {
Name string
ConfigPath string
Projects []Project
OverlayConfig OverlayConfig `yaml:"overlays"`
}
func (*Workspace) GetUniqueHosts ¶
func (*Workspace) GetUniqueTLSCertificates ¶
type WorkspaceMeta ¶
type WorkspaceMeta struct {
Name string
Path string
Projects []ProjectMeta
}
Click to show internal directories.
Click to hide internal directories.