Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSpecStorage ¶
NewSpecStorage calls NewBackend and returns a spec storage from specified backend.
Types ¶
type Backend ¶
type Backend interface { // SpecStorage returns the spec storage. SpecStorage(project, stack, workspace string) spec.Storage // WorkspaceStorage returns the workspace storage and init default workspace. WorkspaceStorage() (workspace.Storage, error) // StateStorage returns the state storage. StateStorage(project, stack, workspace string) state.Storage }
Backend is used to provide the storage service for Workspace, Spec and State.
func NewBackend ¶
NewBackend creates the Backend with the configuration set in the Kusion configuration file, where the input is the configured backend name. If the backend configuration is invalid, NewBackend will get failed. If the input name is empty, use the current backend. If no current backend is specified or backends config is empty, and the input name is empty, use the default local storage.
Click to show internal directories.
Click to hide internal directories.