Documentation ¶
Index ¶
- Constants
- func AddDetachedAgent(agent rsc.Agent) error
- func AddNamespace(name, created string) error
- func AttachAgent(namespace, name, uuid string) error
- func DeleteDetachedAgent(name string) error
- func DeleteNamespace(name string) error
- func DetachAgent(namespace, name string) error
- func Flush() error
- func GetDefaultNamespaceName() string
- func GetDetachedAgent(name string) (rsc.Agent, error)
- func GetDetachedAgents() []rsc.Agent
- func GetNamespace(namespace string) (*rsc.Namespace, error)
- func GetNamespaces() (namespaces []string)
- func Init(configFolderArg string)
- func RenameDetachedAgent(oldName, newName string) error
- func RenameNamespace(name, newName string) error
- func SetDefaultNamespace(name string) (err error)
- func UpdateDetachedAgent(agent rsc.Agent) error
- func ValidateHeader(header *Header) error
- type Header
- type HeaderMetadata
- type Kind
Constants ¶
View Source
const ( LatestAPIVersion = apiVersionGroup + "/" + latestVersion CurrentConfigVersion = configV3 )
Variables ¶
This section is empty.
Functions ¶
func AddDetachedAgent ¶
func AddNamespace ¶
AddNamespace adds a new namespace to the config
func AttachAgent ¶
func DeleteDetachedAgent ¶
func DeleteNamespace ¶
DeleteNamespace removes a namespace including all the resources within it
func DetachAgent ¶
func GetDefaultNamespaceName ¶
func GetDefaultNamespaceName() string
func GetDetachedAgents ¶
func GetNamespace ¶
GetNamespace returns the namespace
func GetNamespaces ¶
func GetNamespaces() (namespaces []string)
GetNamespaces returns all namespaces in config
func Init ¶
func Init(configFolderArg string)
Init initializes config, namespace and unmarshalls the files
func RenameDetachedAgent ¶
func RenameNamespace ¶
RenameNamespace renames a namespace
func SetDefaultNamespace ¶
func UpdateDetachedAgent ¶
func ValidateHeader ¶
Types ¶
type Header ¶
type Header struct { APIVersion string `yaml:"apiVersion" json:"apiVersion"` Kind Kind `yaml:"kind" json:"kind"` Metadata HeaderMetadata `yaml:"metadata" json:"metadata"` Spec interface{} `yaml:"spec" json:"spec"` }
Header contains k8s yaml header
type HeaderMetadata ¶
type HeaderMetadata struct { Name string `yaml:"name" json:"name"` Namespace string `yaml:"namespace" json:"namespace"` Tags *[]string `yaml:"tags,omitempty" json:"tags,omitempty"` }
HeaderMetadata contains k8s metadata
type Kind ¶
type Kind string
const ( AgentConfigKind Kind = "AgentConfig" CatalogItemKind Kind = "CatalogItem" EdgeResourceKind Kind = "EdgeResource" RegistryKind Kind = "Registry" VolumeKind Kind = "Volume" LocalAgentKind Kind = "LocalAgent" RemoteAgentKind Kind = "Agent" KubernetesControlPlaneKind Kind = "KubernetesControlPlane" RemoteControlPlaneKind Kind = "ControlPlane" LocalControlPlaneKind Kind = "LocalControlPlane" KubernetesControllerKind Kind = "KubernetesController" RemoteControllerKind Kind = "Controller" LocalControllerKind Kind = "LocalController" MicroserviceKind Kind = Kind(apps.MicroserviceKind) ApplicationKind Kind = Kind(apps.ApplicationKind) ApplicationTemplateKind Kind = Kind(apps.ApplicationTemplateKind) RouteKind Kind = Kind(apps.RouteKind) )
Click to show internal directories.
Click to hide internal directories.