yq_provider

package
v0.0.0-...-51a951f Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	APIVERSION         = "apiVersion"
	KIND               = "kind"
	GITHUB_K8S_API_URL = "https://api.github.com/repos/kubernetes/kubernetes/releases"
)

Variables

View Source
var SubstitutionTable = map[string]map[string]string{
	"python": {

		"{\"cells\":[{\"language\":\"python\"}]}": "[{\"cells\":[{\"language\":\"python\"}]}]",
	},
}

2-tiered table for each language and their respective fixes we may need to apply

Functions

func NaiveFixResponse

func NaiveFixResponse(language string, resp string) string

Uses SubstitutionTable to replace every occurance of the offending part. Not very efficent, may have to investigate alternatives. Fails silently.

func NewYqProvider

func NewYqProvider() *yqProvider

Types

type Release

type Release struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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