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

workspace

package
v2.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMaxFileSizeMB = 10

Variables

This section is empty.

Functions

func EffectiveMaxFileSizeMB

func EffectiveMaxFileSizeMB(configured int) int

func IsTextContent

func IsTextContent(content []byte) bool

func MaxFileSizeBytes

func MaxFileSizeBytes(configuredMB int) int64

func ValidateContentSize added in v2.11.0

func ValidateContentSize(content []byte, maxBytes int64) error

ValidateContentSize enforces the per-file workspace upload limit. Content may be any bytes: text and binary files are both allowed.

func ValidateUpdateManifest

func ValidateUpdateManifest(fileTreeRevision string, fileChangeCount, maxFileChanges int) error

func ValidateUploadIndices

func ValidateUploadIndices(changes []UploadReference, uploadCount int, createFileOperation, updateFileOperation string) error

Types

type UploadReference

type UploadReference struct {
	Operation     string
	UploadIndex   *int
	BaselineIndex *int
}

Jump to

Keyboard shortcuts

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