dataprofile

package
v0.80.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0, Apache-2.0 Imports: 14 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

Code generated by project-data-profile.mjs; DO NOT EDIT. Source 22de9f4b94243c4dc7e34cf87d8f38a5ca98f5c0; Apache-2.0. Comments and import paths adapted for distribution.

Code generated by project-data-profile.mjs; DO NOT EDIT. Source 22de9f4b94243c4dc7e34cf87d8f38a5ca98f5c0; Apache-2.0. Comments and import paths adapted for distribution.

Index

Constants

View Source
const (
	ResidencyGlobal Residency = "global"
	ResidencyEU     Residency = "eu"

	RetentionStandard Retention = "standard"
	RetentionZero     Retention = "zero"

	LocalityHosted Locality = "hosted"
	LocalityLocal  Locality = "local"

	ScopeAccount      Scope = "account"
	ScopeOrganization Scope = "organization"
	ScopeWorkspace    Scope = "workspace"
	ScopeSession      Scope = "session"
	ScopeEdition      Scope = "edition"
)
View Source
const (
	ReasonUnresolvable        = "data_profile_unresolvable"
	ReasonCapabilityDenied    = "data_profile_capability_denied"
	ReasonProcessorIneligible = "data_profile_processor_ineligible"
)
View Source
const BootEnvVar = "KOMBIFY_DATA_PROFILE"
View Source
const FullLocal = "full-local"
View Source
const ReasonFullLocal = "data_profile_full_local"
View Source
const Version = 1

Variables

This section is empty.

Functions

func CapabilityDenial

func CapabilityDenial(requestID, capability, providerID string, p Profile) denial.Envelope

func GuardTransport

func GuardTransport(t *http.Transport)

func IsDenied

func IsDenied(err error) bool

func LocalAddr

func LocalAddr(addr netip.Addr) bool

func LocalDestinationPolicy

func LocalDestinationPolicy() (prefixes []netip.Prefix, excluded []netip.Addr)

func LocalResolver

func LocalResolver() *net.Resolver

func UnresolvableDenial

func UnresolvableDenial(requestID string) denial.Envelope

func WithProfile

func WithProfile(ctx context.Context, p Profile) context.Context

Types

type DeniedError

type DeniedError struct {
	Host string
}

func (*DeniedError) Error

func (e *DeniedError) Error() string

type DialFunc

type DialFunc = func(ctx context.Context, network, address string) (net.Conn, error)

func GuardDial

func GuardDial(next DialFunc) DialFunc

type Locality

type Locality string

type Profile

type Profile struct {
	V     int       `json:"v"`
	Res   Residency `json:"res"`
	Ret   Retention `json:"ret"`
	Loc   Locality  `json:"loc"`
	Scope Scope     `json:"scope"`
	Rev   int64     `json:"rev"`
	TS    int64     `json:"ts"`
}

func Decode

func Decode(encoded string) (Profile, error)

func FromBoot

func FromBoot(e edition.Edition, value string) (Profile, error)

func FromBootEnv

func FromBootEnv() (Profile, error)

func FromContext

func FromContext(ctx context.Context) (Profile, bool)

func Meet

func Meet(profiles ...Profile) (Profile, error)

func Standard

func Standard() Profile

func (Profile) Canonical

func (p Profile) Canonical() (string, error)

func (Profile) Describe

func (p Profile) Describe() string

func (Profile) EU

func (p Profile) EU() bool

func (Profile) Encode

func (p Profile) Encode() (string, error)

func (Profile) EnforceEgress

func (p Profile) EnforceEgress() error

func (Profile) Local

func (p Profile) Local() bool

func (Profile) Validate

func (p Profile) Validate() error

func (Profile) Zero

func (p Profile) Zero() bool

type Residency

type Residency string

type Retention

type Retention string

type Scope

type Scope string

Jump to

Keyboard shortcuts

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