ociuploadattr

package
v0.18.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ATTR_KEY   = "github.com/mandelsoft/ocm/ociuploadrepo"
	ATTR_SHORT = "ociuploadrepo"
)

Variables

This section is empty.

Functions

func AttributeDescription

func AttributeDescription() map[string]string

func Set

func Set(ctx datacontext.Context, attr *Attribute) error

Types

type Attribute

type Attribute struct {
	Ref             string                        `json:"ociRef,omitempty"`
	Repository      *ocicpi.GenericRepositorySpec `json:"repository,omitempty"`
	NamespacePrefix string                        `json:"namespacePrefix,omitempty"`
	// contains filtered or unexported fields
}

func Get

func Get(ctx datacontext.Context) *Attribute

func New

func New(ref string) *Attribute

func (*Attribute) Close

func (a *Attribute) Close() error

func (*Attribute) GetInfo

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