outputs

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package outputs handles reading and parsing Terraform-generated outputs from the .webkit/outputs.json file. This includes monitoring data (Peekaping) and Slack channel information that is written by Terraform after provisioning.

Index

Constants

View Source
const (
	// FilePath is the path to the outputs file written by Terraform.
	FilePath = ".webkit/outputs.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Type string `json:"type"`
}

Monitor represents a single Peekaping monitor.

type Peekaping

type Peekaping struct {
	Endpoint   string `json:"endpoint"`
	ProjectTag string `json:"project_tag"`
}

Peekaping contains Peekaping configuration.

type SlackOutputs

type SlackOutputs struct {
	ChannelName string `json:"channel_name"`
	ChannelID   string `json:"channel_id"`
}

SlackOutputs contains Slack channel information.

type WebkitOutputs

type WebkitOutputs struct {
	Peekaping Peekaping    `json:"peekaping"`
	Monitors  []Monitor    `json:"monitors"`
	Slack     SlackOutputs `json:"slack"`
}

WebkitOutputs represents the structure of .webkit/outputs.json generated by Terraform after infrastructure provisioning.

func Load

func Load(fs afero.Fs) *WebkitOutputs

Load attempts to load the .webkit/outputs.json file. Returns nil if the file doesn't exist or can't be parsed.

Jump to

Keyboard shortcuts

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