gen

package
v0.0.0-...-7c366a7 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Code generated from Pkl module `Data`. DO NOT EDIT.

Code generated from Pkl module `Data`. DO NOT EDIT.

Code generated from Pkl module `Data`. DO NOT EDIT.

Code generated from Pkl module `Data`. DO NOT EDIT.

Code generated from Pkl module `Data`. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Name string `pkl:"name"`

	Description string `pkl:"description"`

	Url string `pkl:"url"`
}

type Data

type Data struct {
	Title string `pkl:"title"`

	Env string `pkl:"env"`

	Groups []*Group `pkl:"groups"`
}

func Load

func Load(ctx context.Context, evaluator pkl.Evaluator, source *pkl.ModuleSource) (*Data, error)

Load loads the pkl module at the given source and evaluates it with the given evaluator into a Data

func LoadFromPath

func LoadFromPath(ctx context.Context, path string) (ret *Data, err error)

LoadFromPath loads the pkl module at the given path and evaluates it into a Data

type Group

type Group struct {
	Name string `pkl:"name"`

	Sort int `pkl:"sort"`

	Cols int `pkl:"cols"`

	Services []*Service `pkl:"services"`
}

type Service

type Service struct {
	Name string `pkl:"name"`

	Description string `pkl:"description"`

	Url string `pkl:"url"`

	Components []*Component `pkl:"components"`
}

Jump to

Keyboard shortcuts

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