state

package
v0.0.0-...-1087858 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptedResource

type AcceptedResource struct {
	Kind string `json:"kind"`
	Name string `json:"name"`
	Hash string `json:"hash"`
}

type Applier

type Applier struct {
	// contains filtered or unexported fields
}

func NewApplier

func NewApplier(db *sql.DB, blobs *blob.Store) (*Applier, error)

func (*Applier) Apply

func (a *Applier) Apply(ctx context.Context, websiteName, envName string, b bundle.Bundle, dryRun bool) (ApplyResult, error)

type ApplyResult

type ApplyResult struct {
	Accepted []AcceptedResource `json:"acceptedResources"`
	Warnings []string           `json:"warnings,omitempty"`
	Changes  ChangeSummary      `json:"changes"`
}

type BadRequestError

type BadRequestError struct {
	// contains filtered or unexported fields
}

func (*BadRequestError) Error

func (e *BadRequestError) Error() string

type ChangeSummary

type ChangeSummary struct {
	Created int `json:"created"`
	Updated int `json:"updated"`
	Deleted int `json:"deleted"`
}

Jump to

Keyboard shortcuts

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