integrationloader

package
v0.0.0-...-913a81e Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dashboards

type Dashboards map[string]string

type GitLoader

type GitLoader struct {
	// contains filtered or unexported fields
}

func NewGitLoader

func NewGitLoader(repo *git.Repository, ref string, integrationPath string) GitLoader

func (GitLoader) GetFileContentsAsBytes

func (l GitLoader) GetFileContentsAsBytes(relativePath string) ([]byte, error)

func (GitLoader) GetFileContentsAsString

func (l GitLoader) GetFileContentsAsString(relativePath string) (string, error)

func (GitLoader) LoadChangelog

func (l GitLoader) LoadChangelog() (string, error)

func (GitLoader) LoadConfig

func (l GitLoader) LoadConfig() (catalogv1.Integration, error)

func (GitLoader) LoadDashboards

func (l GitLoader) LoadDashboards() (Dashboards, error)

func (GitLoader) LoadImages

func (l GitLoader) LoadImages() (Images, error)
func (l GitLoader) LoadLogo() (string, error)

func (GitLoader) LoadReadme

func (l GitLoader) LoadReadme() (string, error)

func (GitLoader) LoadResources

func (l GitLoader) LoadResources() (string, error)

type Images

type Images map[string]string

type Loader

type Loader interface {
	LoadConfig() (catalogv1.Integration, error)
	LoadChangelog() (string, error)
	LoadDashboards() (Dashboards, error)
	LoadImages() (Images, error)
	LoadReadme() (string, error)
	LoadResources() (string, error)
	GetFileContentsAsBytes(string) ([]byte, error)
	GetFileContentsAsString(string) (string, error)
}

type PathLoader

type PathLoader struct {
	// contains filtered or unexported fields
}

func NewPathLoader

func NewPathLoader(integrationPath string) PathLoader

func (PathLoader) GetFileContentsAsBytes

func (l PathLoader) GetFileContentsAsBytes(relativePath string) ([]byte, error)

func (PathLoader) GetFileContentsAsString

func (l PathLoader) GetFileContentsAsString(relativePath string) (string, error)

func (PathLoader) LoadChangelog

func (l PathLoader) LoadChangelog() (string, error)

func (PathLoader) LoadConfig

func (l PathLoader) LoadConfig() (catalogv1.Integration, error)

func (PathLoader) LoadDashboards

func (l PathLoader) LoadDashboards() (Dashboards, error)

func (PathLoader) LoadImages

func (l PathLoader) LoadImages() (Images, error)
func (l PathLoader) LoadLogo() (string, error)

func (PathLoader) LoadReadme

func (l PathLoader) LoadReadme() (string, error)

func (PathLoader) LoadResources

func (l PathLoader) LoadResources() (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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