attr

package
v0.18.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ATTR_KEY   = "ocm.software/signing/sigstore"
	ATTR_SHORT = "sigstore"
)

Variables

This section is empty.

Functions

func Set

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

Set sets the attributes.

Types

type Attribute

type Attribute struct {
	FulcioURL    string `json:"fulcioURL"`
	RekorURL     string `json:"rekorURL"`
	OIDCIssuer   string `json:"OIDCIssuer"`
	OIDCClientID string `json:"OIDCClientID"`
}

Attribute represents the attribute data.

func Get

func Get(ctx datacontext.Context) *Attribute

Get returns the attributes.

type AttributeType

type AttributeType struct{}

AttributeType represents the attribute functionality.

func (AttributeType) Decode

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

Decode unmarshals an attribute.

func (AttributeType) Description

func (a AttributeType) Description() string

Description returns a description of the attribute.

func (AttributeType) Encode

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

Encode marshals an attribute.

func (AttributeType) Name

func (a AttributeType) Name() string

Name returns the attribute name.

Jump to

Keyboard shortcuts

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