types

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// DefaultReleaseLatest switch for human-readable
	DefaultReleaseLatest string = "latest"
	// DefaultReleaseStable switch for human-readable
	DefaultReleaseStable string = "stable"
)

Release related constants

View Source
const (
	// DefaultAppCrdFilename is the default App Crd filename
	DefaultAppCrdFilename string = "extension.yaml"
)

Addon related constants

Variables

View Source
var (
	// ErrExtensionNotFound is extension not found
	ErrExtensionNotFound = errors.New("extension not found")
	// ErrVersionNotFound is version not found
	ErrVersionNotFound = errors.New("version not found")
)

Functions

func CopyFile

func CopyFile(source, destination string) error

CopyFile src to dst

func Int32Ptr

func Int32Ptr(i int32) *int32

Int32Ptr int32 pointer

func RecursiveCopy

func RecursiveCopy(source, destination string) error

RecursiveCopy src to dst

Types

type Extension

type Extension struct {
	Name                   string `json:"name"`
	Description            string `json:"description,omitempty"`
	Version                string `json:"version"`
	KubernetesMinSupported string `json:"minsupported,omitempty"`
	KubernetesMaxSupported string `json:"maxsupported,omitempty"`
	Files                  []File `json:"files"`
}

Extension - yep, it's that

func (*Extension) GetFileList

func (e *Extension) GetFileList() []string

GetFileList as []string

type File

type File struct {
	Name        string `json:"filename"`
	Description string `json:"description,omitempty"`
}

File - yep, it's that

type IManager

type IManager interface {
	RawMetadata() ([]byte, error)
	InitMetadata() (*Metadata, error)
	InitRelease() (*Release, error)
}

IManager interface for Manager

type Metadata

type Metadata struct {
	Extensions      []Extension `json:"extensions"`
	Version         string      `json:"version"`
	GitHubRepo      string      `json:"repo,omitempty"`
	GitHubBranchTag string      `json:"branch,omitempty"`

	ExtensionLookup map[string]*Extension
}

Metadata outer container for metadata

func (*Metadata) GetExtension

func (m *Metadata) GetExtension(name string) (*Extension, error)

GetExtension by name

type Release

type Release struct {
	Versions []Version `json:"versions"`
	Stable   string    `json:"stable"`
	Date     string    `json:"date"`

	VersionLookup map[string]*Version
}

Release outer container for metadata

func (*Release) GetVersion

func (r *Release) GetVersion(name string) (*Version, error)

GetVersion by name

type Version

type Version struct {
	Version string `json:"version"`
	Date    string `json:"date,omitempty"`
}

Version - released version

Jump to

Keyboard shortcuts

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