Help us shape the future of Go! Take the 2026 Go Developer Survey

grants

package
v3.0.36 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Effect

type Effect string
const (
	EffectRead    Effect = "read"
	EffectWrite   Effect = "write"
	EffectExecute Effect = "execute"
	EffectDelete  Effect = "delete"
	EffectAdmin   Effect = "admin"
)

type HandleGrant

type HandleGrant struct {
	HandleGrantID       string    `json:"handle_grant_id"`
	GrantID             string    `json:"grant_id"`
	ResourceKind        string    `json:"resource_kind"`
	ResourceID          string    `json:"resource_id"`
	RuntimeGenerationID string    `json:"runtime_generation_id"`
	ExpiresAt           time.Time `json:"expires_at"`
}

type PolicyGrantBundle

type PolicyGrantBundle struct {
	GrantID                 string         `json:"grant_id"`
	PluginInstanceID        string         `json:"plugin_instance_id"`
	DescriptorHash          string         `json:"descriptor_hash"`
	TargetClassifierVersion string         `json:"target_classifier_version"`
	PolicyRevision          uint64         `json:"policy_revision"`
	RevokeEpoch             uint64         `json:"revoke_epoch"`
	Targets                 []TargetPolicy `json:"targets"`
	ExpiresAt               time.Time      `json:"expires_at"`
}

type TargetPolicy

type TargetPolicy struct {
	Scheme      string   `json:"scheme"`
	HostPattern string   `json:"host_pattern"`
	Ports       []int    `json:"ports,omitempty"`
	Effects     []Effect `json:"effects"`
}

Jump to

Keyboard shortcuts

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