Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrOrgNil = errors.New("organization is nil") ErrOrgNameEmpty = errors.New("organization must have a name") ErrOrgOwnerNil = errors.New("org must have at least one owner") ErrWorkspaceNil = errors.New("workspace is nil") ErrWorkspaceNameEmpty = errors.New("workspace must have a name") ErrWorkspaceBackendNil = errors.New("workspace must have a backend") ErrWorkspaceOwnerNil = errors.New("workspace must have at least one owner") ErrBackendNil = errors.New("backend is nil") ErrBackendNameEmpty = errors.New("backend must have a name") ErrBackendTypeEmpty = errors.New("backend must have a type") )
View Source
var ( ErrProjectNil = errors.New("project is nil") ErrProjectName = errors.New("project must have a name") ErrProjectSource = errors.New("project must have a source") ErrProjectSourceProvider = errors.New("project source must have a source provider") ErrProjectRemote = errors.New("project source must have a remote") ErrProjectCreationTimestamp = errors.New("project must have a creation timestamp") ErrProjectUpdateTimestamp = errors.New("project must have a update timestamp") ErrProjectPath = errors.New("project must have a path") )
View Source
var ( ErrSourceNil = errors.New("source is nil") ErrDirectoryToCleanupEmpty = errors.New("temp kcp-kusion directory to clean up is empty") )
View Source
var ( ErrStackNil = errors.New("stack is nil") ErrStackName = errors.New("stack must have a name") ErrStackPath = errors.New("stack must have a path") ErrStackFrameworkType = errors.New("stack must have a framework type") ErrStackDesiredVersion = errors.New("stack must have a desired version") ErrStackSource = errors.New("stack must have a source") ErrStackSourceProvider = errors.New("stack source must have a source provider") ErrStackRemote = errors.New("stack source must have a remote") ErrStackSyncState = errors.New("stack must have a sync state") ErrStackLastSyncTimestamp = errors.New("stack must have a last sync timestamp") ErrStackCreationTimestamp = errors.New("stack must have a creation timestamp") ErrStackUpdateTimestamp = errors.New("stack must have a update timestamp") ErrStackHasNilProject = errors.New("stack must have a project") )
Functions ¶
This section is empty.
Types ¶
type SourceProviderType ¶
type SourceProviderType string
SourceProviderType represents the type of varying source providers, source provider is the general abstraction of version control systems (VCS), also known as source control systems (SCM).
const ( // SourceProviderTypeGit represents git source provider type. SourceProviderTypeGit SourceProviderType = "git" // SourceProviderTypeGithub represents github source provider type. SourceProviderTypeGithub SourceProviderType = "github" // SourceProviderTypeOCI represents oci source provider type. SourceProviderTypeOCI SourceProviderType = "oci" // SourceProviderTypeLocal represents local source provider type. SourceProviderTypeLocal SourceProviderType = "local" )
func ParseSourceProviderType ¶
func ParseSourceProviderType(s string) (SourceProviderType, error)
ParseSourceProviderType parses a string into a SourceProviderType. If the string is not a valid SourceProviderType, it returns an error.
type StackState ¶
type StackState string
StackState represents the state of a stack.
const ( // StackStateUnSynced represents state of stack has not been synced with the remote runtime. StackStateUnSynced StackState = "UnSynced" // StackStateSynced represents state of stack is synced with the remote runtime. StackStateSynced StackState = "Synced" // StackStateOutOfSync represents state of stack has out of sync from the remote runtime. StackStateOutOfSync StackState = "OutOfSync" )
These constants represent the possible states of a stack.
func ParseStackState ¶
func ParseStackState(s string) (StackState, error)
ParseStackState parses a string into a StackState. If the string is not a valid StackState, it returns an error.
Click to show internal directories.
Click to hide internal directories.