mygizmosummer

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mygizmosummer implements an acme:component:gizmo and depends on another custom API.

Index

Constants

This section is empty.

Variables

View Source
var Model = resource.NewModel("acme", "demo", "mygizmosummer")

Model is the full model definition.

Functions

func NewMyGizmoSummer

func NewMyGizmoSummer(
	deps resource.Dependencies,
	conf resource.Config,
	logger logging.Logger,
) (gizmoapi.Gizmo, error)

NewMyGizmoSummer returns a new mygizmosummer.

Types

type Config

type Config struct {
	Summer string `json:"Summer"`
}

Config is the gizmo model's config.

func (*Config) Validate

func (cfg *Config) Validate(path string) ([]string, error)

Validate ensures that `Summer` is a non-empty string. Validation error will stop the associated resource from building.

Jump to

Keyboard shortcuts

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