MCPcopy Index your code
hub / github.com/containerd/containerd / Validate

Method Validate

plugins/metadata/plugin.go:85–92  ·  view source on GitHub ↗

Validate validates if BoltConfig is valid

()

Source from the content-addressed store, hash-verified

83
84// Validate validates if BoltConfig is valid
85func (bc *BoltConfig) Validate() error {
86 switch bc.ContentSharingPolicy {
87 case SharingPolicyShared, SharingPolicyIsolated:
88 return nil
89 default:
90 return fmt.Errorf("unknown policy: %s: %w", bc.ContentSharingPolicy, errdefs.ErrInvalidArgument)
91 }
92}
93
94func init() {
95 registry.Register(&plugin.Registration{

Callers 15

checkBlobPathFunction · 0.45
FuzzContentStoreFunction · 0.45
ResolveMethod · 0.45
validateTargetFunction · 0.45
CreateMethod · 0.45
SetLabelMethod · 0.45
useDescriptorDataFunction · 0.45
ExportFunction · 0.45
getRecordsFunction · 0.45
manifestsRecordFunction · 0.45
resolveLayersFunction · 0.45
BuildLabelsFunction · 0.45

Calls

no outgoing calls

Tested by 2

checkBlobPathFunction · 0.36
FuzzContentStoreFunction · 0.36