compositionmodeattr

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ATTR_KEY   = "ocm.software/compositionmode"
	ATTR_SHORT = "compositionmode"
)
View Source
const UseCompositionMode = false

UseCompositionMode enables the support of the new Composition mode for Component versions. It disabled the direct write-through and update-on-close to the underlying repository. Instead, an explicit call to AddVersion call s required to persist a composed change on a new as well as queried component version object.

Variables

This section is empty.

Functions

func Get

func Get(ctx datacontext.Context) bool

func Set

func Set(ctx datacontext.Context, flag bool) error

Types

type AttributeType

type AttributeType struct{}

func (AttributeType) Decode

func (a AttributeType) Decode(data []byte, unmarshaller runtime.Unmarshaler) (interface{}, error)

func (AttributeType) Description

func (a AttributeType) Description() string

func (AttributeType) Encode

func (a AttributeType) Encode(v interface{}, marshaller runtime.Marshaler) ([]byte, error)

func (AttributeType) Name

func (a AttributeType) Name() string

Jump to

Keyboard shortcuts

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