internal

package
v0.0.0-...-0d89779 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeChecksum

func ComputeChecksum(filePath string) (string, error)

ComputeChecksum computes the SHA256 checksum of a file

func CopyFile

func CopyFile(source, target string) error

CopyFile copies a file from source to destination

func InferOSArch

func InferOSArch(filename string) (string, error)

InferOSArch infers OS/ARCH from a artifact filename

Types

type ExtensionSchema

type ExtensionSchema struct {
	Id           string                           `yaml:"id"           json:"id"`
	Namespace    string                           `yaml:"namespace"    json:"namespace,omitempty"`
	EntryPoint   string                           `yaml:"entryPoint"   json:"entryPoint,omitempty"`
	Version      string                           `yaml:"version"      json:"version"`
	DisplayName  string                           `yaml:"displayName"  json:"displayName"`
	Description  string                           `yaml:"description"  json:"description"`
	Usage        string                           `yaml:"usage"        json:"usage"`
	Examples     []extensions.ExtensionExample    `yaml:"examples"     json:"examples"`
	Tags         []string                         `yaml:"tags"         json:"tags,omitempty"`
	Dependencies []extensions.ExtensionDependency `yaml:"dependencies" json:"dependencies,omitempty"`
	Platforms    map[string]map[string]any        `yaml:"platforms"    json:"platforms,omitempty"`
}

ExtensionMetadata represents the structure of extension.yaml

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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