source

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package source defines the adapter boundary for infrastructure inputs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadRegularFile

func ReadRegularFile(filename string) ([]byte, error)

ReadRegularFile rejects symlinks and special files, then bound the opened regular-file read. ParseHCL/ParseJSON are used instead of their unbounded File convenience APIs.

Types

type Attribute

type Attribute struct {
	Value      any
	Literal    bool
	Raw        string
	References []string
	Bindings   map[string]string
}

Attribute retains static values and references without evaluating configuration.

type Block

type Block struct {
	Kind       string
	Labels     []string
	Attributes map[string]Attribute
	File       string
}

Block is an infrastructure declaration. Attributes include nested block paths.

type Result

type Result struct {
	Blocks   []Block
	Warnings []string
}

Result contains declarations and recoverable diagnostics.

type Source

type Source interface {
	Load(context.Context, string) (Result, error)
}

Source reads one configuration directory without credentials or execution.

Jump to

Keyboard shortcuts

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