fabric

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

mostly stolen from https://gist.github.com/crgimenes/c3b8b4fcce8529e9201f83c8da134f32

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnsupportedType is returned if the type is not implemented
	ErrUnsupportedType = errors.New("unsupported type")
)

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	SchemaVersion int    `json:"schemaVersion"`
	ID            string `json:"id"`
	Name          string `json:"name"`
	Version       string `json:"version"`
	License       string `json:"license"`
	Icon          string `json:"icon"`
	Contact       struct {
		Email    string `json:"email,omitempty"`
		Irc      string `json:"irc,omitempty"`
		Homepage string `json:"homepage,omitempty"`
		Issues   string `json:"issues,omitempty"`
		Sources  string `json:"sources,omitempty"`
	} `json:"contact"`
	Authors     []string               `json:"authors"`
	Description string                 `json:"description"`
	Environment string                 `json:"environment"`
	Entrypoints map[string]interface{} `json:"entrypoints"`
	Jars        []struct {
		File string `json:"file"`
	} `json:"jars,omitempty"`
	LanguageAdapters map[string]string   `json:"languageAdapters,omitempty"`
	Mixins           []interface{}       `json:"mixins,omitempty"`
	Depends          map[string]StrArray `json:"depends,omitempty"`
	Custom           interface{}         `json:"custom,omitempty"`
}

type StrArray added in v0.1.3

type StrArray []string

StrArray string array to be used on JSON UnmarshalJSON

func (StrArray) MarshalJSON added in v0.1.3

func (sa StrArray) MarshalJSON() ([]byte, error)

MarshalJSON convert a golang string array to a JSON object array of string or a string

func (*StrArray) UnmarshalJSON added in v0.1.3

func (sa *StrArray) UnmarshalJSON(data []byte) error

UnmarshalJSON convert JSON object array of string or a string format strings to a golang string array

Jump to

Keyboard shortcuts

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