workspace

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: BSD-3-Clause Imports: 4 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 ValidateTextContent

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

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