externalresource

package
v0.0.0-...-fa857ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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

type ExternalEndpoint struct {
	Name string
	Url  string
}

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

type Notes struct {
	Path     string
	Markdown string // base64 encoded content of the path
}

Notes represents information about the location and content of the external resource markdown

func (*Notes) MarshalYAML

func (notes *Notes) MarshalYAML() (interface{}, error)

type Section

type Section map[string]*ExternalResource

Section represents the map of external resources at a manifest

Directories

Path Synopsis
k8s

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL