# Functions
GetCapabilitiesFromCluster will get capability from K8s cluster.
GetDescription get description from annotation.
GetInstalledCapabilityWithCapName will get cap by alias.
GetSubDir will get dir for capability.
GetTraitsFromCluster will get capability from K8s cluster.
GetWorkloadsFromCluster will get capability from K8s cluster.
HandleDefinition will handle definition to capability.
HandleTemplate will handle definition template to capability.
LoadAllInstalledCapability will list all capability.
LoadCapabilityByName will load capability from local by name.
LoadCapabilityFromSyncedCenter will load capability from dir.
LoadInstalledCapabilityWithType will load cap list by type.
LoadRepos will load all cap center repos TODO(wonderflow): we can make default(built-in) repo configurable, then we should make default inside the answer.
NewCenterClient create a client from type.
NewGithubCenter will create client by github center implementation.
Parse will parse config from address.
ParseAndSyncCapability will convert config from remote center to capability.
RemoveLegacyTemps will remove capability definitions under `dir` but not included in `retainedTemps`.
SinkTemp2Local will sink template to local file.
StoreRepos will store cap center repo locally.
SyncDefinitionsToLocal sync definitions to local.
SyncDefinitionToLocal sync definitions to local.
# Constants
BaseRefPath is the target path for reference docs.
DescriptionUndefined indicates the description is not defined.
ReferenceSourcePath is the location for source reference.
TraitPath is the URL path for trait typed capability.
TypeGithub represents github.
TypeUnknown represents parse failed.
WorkloadTypePath is the URL path for workload typed capability.
# Variables
ConfigurationYamlSample stores the configuration yaml sample for capabilities.
# Structs
CapCenterConfig is used to store cap center config in file.
ConsoleReference is the struct for capability information in console.
GithubCenter implementation of cap center.
GithubContent for cap center.
MarkdownReference is the struct for capability information in.
ParseReference is used to include the common function `parseParameter`.
ReferenceParameter is the parameter section of CUE template.
RemoteCapability defines the capability discovered from remote cap center.
# Interfaces
CenterClient defines an interface for cap center client.
Reference is the struct for capability information.
# Type aliases
BoolType is bool type.
Int64Type is int64 type.
RemoteCapabilities is slice of cap center.
StringType is string type.