dummy

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ParamsFixture = `"params": {"param": "test1234"}`
View Source
const SourceFixture = `
"source": {
"uri": "git://some-uri",
"branch": "develop",
"private_key": "..."
}`
View Source
const VersionFixture = `"version": { "ref": "61cbef" }`

Variables

View Source
var CheckOutput = types.CheckOutput{
	version{Ref: "61cbef"},
	version{Ref: "d74e01"},
	version{Ref: "7154fe"},
}
View Source
var InOutput = types.InOutput{
	Version:  version{Ref: "61cbef"},
	Metadata: map[string]any{"test": "value"},
}
View Source
var ParamsExpected = params{Param: "test1234"}
View Source
var SourceExpected = Config{
	URI:        "git://some-uri",
	Branch:     "develop",
	PrivateKey: "...",
}
View Source
var VersionExpected = version{Ref: "61cbef"}

Functions

func New

func New(config Config) (any, error)

Types

type Config

type Config struct {
	URI        string `json:"uri"`
	Branch     string `json:"branch"`
	PrivateKey string `json:"private_key"`
}

Jump to

Keyboard shortcuts

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