source

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFileWithName

func DownloadFileWithName(uri, name string) (string, error)

DownloadFileWithName downloads a file with name

func ProcessTemplate

func ProcessTemplate(templateFile string, values interface{}) (string, []byte, error)

ProcessTemplate process the .krew.yaml template for the release request

func RenderTemplate

func RenderTemplate(templateFile string, values interface{}) ([]byte, error)

RenderTemplate process the .krew.yaml template for the release request

Types

type InvalidPluginSpecError

type InvalidPluginSpecError struct {
	Spec string
	// contains filtered or unexported fields
}

InvalidPluginSpecError is invalid plugin spec error

func (InvalidPluginSpecError) Error

func (i InvalidPluginSpecError) Error() string

type ReleaseRequest

type ReleaseRequest struct {
	TagName            string `json:"tagName"`
	PluginName         string `json:"pluginName"`
	PluginRepo         string `json:"pluginRepo"`
	PluginOwner        string `json:"pluginOwner"`
	PluginReleaseActor string `json:"pluginReleaseActor"`
	TemplateFile       string `json:"templateFile"`
	ProcessedTemplate  []byte `json:"processedTemplate"`
}

ReleaseRequest is the release request for new plugin

type Source

type Source interface {
	Parse(r *http.Request) (*ReleaseRequest, error)
}

Source is a release source interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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