Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ERFilesystemManager ¶
type ERFilesystemManager struct { Fs afero.Fs ExternalResource ExternalResource }
ERFilesystemManager represents ExternalResource information with the filesystem injected
func (*ERFilesystemManager) LoadMarkdownContent ¶
func (ef *ERFilesystemManager) LoadMarkdownContent(manifestPath string) error
LoadMarkdownContent loads and store markdown content related to external resource
type ExternalEndpoint ¶
ExternalEndpoint represents information about an endpoint
type ExternalResource ¶
type ExternalResource struct { Icon string Notes *Notes Endpoints []*ExternalEndpoint }
ExternalResource represents information on an external resource
func (*ExternalResource) SetDefaults ¶
func (er *ExternalResource) SetDefaults(externalName string)
SetDefaults creates the necessary environment variables given an external resource
func (*ExternalResource) SetURLUsingEnvironFile ¶
func (er *ExternalResource) SetURLUsingEnvironFile(name string, dynamicEnvs map[string]string) error
func (*ExternalResource) UnmarshalYAML ¶
func (er *ExternalResource) UnmarshalYAML(unmarshal func(interface{}) error) error
type K8sControl ¶
type K8sControl struct { ClientProvider func(*rest.Config) (k8s.ExternalResourceV1Interface, error) Cfg *rest.Config }
K8sControl represents the controller that performs the actions with k8s
func NewExternalK8sControl ¶
func NewExternalK8sControl(cfg *rest.Config) *K8sControl
func (*K8sControl) Deploy ¶
func (c *K8sControl) Deploy(ctx context.Context, name, ns string, er *ExternalResource) error
func (*K8sControl) List ¶
func (c *K8sControl) List(ctx context.Context, ns string, labelSelector string) ([]ExternalResource, error)
type Notes ¶
Notes represents information about the location and content of the external resource markdown
func (*Notes) MarshalYAML ¶
type Section ¶
type Section map[string]*ExternalResource
Section represents the map of external resources at a manifest
Click to show internal directories.
Click to hide internal directories.