backupbinding

package
v0.39.9 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package backupbinding is the public producer contract for StackKits' provider-free external Cloud backup target handshake. It never provisions a provider resource or accepts provider, endpoint, account, bucket, credential, lease, or resource lifecycle fields.

Index

Constants

View Source
const (
	RequirementAPIVersion = "stackkit.backup-target-requirement/v1"
	BindingAPIVersion     = "stackkit.external-backup-target-binding/v1"
	Capability            = "offsite-object-backup"
	MaxValidity           = 24 * time.Hour
)

Variables

This section is empty.

Functions

func ComputeHash

func ComputeHash(binding Document) (string, error)

func OpaqueReference

func OpaqueReference(scheme string, evidence []byte) (string, error)

func Validate

func Validate(binding, requirement Document) error

Types

type Document

type Document map[string]any

func Build

func Build(requirement Document, input Input) (Document, error)

type Input

type Input struct {
	BindingRef            string
	BackupTargetRef       string
	CustodyAttestationRef string
	StackKitsVersion      string
	CandidateDigest       string
	IssuedAt              time.Time
	ValidUntil            time.Time
}

Jump to

Keyboard shortcuts

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