v1

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_carabiner_supplychain_v1_supplychain_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Keys

type Keys struct {

	// Public is a list of public key references (inline PEM data, URLs, or file paths).
	Public []string `protobuf:"bytes,1,rep,name=public,proto3" json:"public,omitempty"`
	// contains filtered or unexported fields
}

Keys holds key material for verification.

func (*Keys) Descriptor deprecated

func (*Keys) Descriptor() ([]byte, []int)

Deprecated: Use Keys.ProtoReflect.Descriptor instead.

func (*Keys) GetPublic

func (x *Keys) GetPublic() []string

func (*Keys) ProtoMessage

func (*Keys) ProtoMessage()

func (*Keys) ProtoReflect

func (x *Keys) ProtoReflect() protoreflect.Message

func (*Keys) Reset

func (x *Keys) Reset()

func (*Keys) String

func (x *Keys) String() string

type Metadata

type Metadata struct {

	// Repositories is a list of collector repository strings.
	Repositories []string `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"`
	// contains filtered or unexported fields
}

Metadata holds the repository references for the supply chain.

func (*Metadata) Descriptor deprecated

func (*Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetRepositories

func (x *Metadata) GetRepositories() []string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type SupplyChainConfig

type SupplyChainConfig struct {

	// Metadata contains repository and source information.
	Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Keys contains cryptographic key material for verification.
	Keys *Keys `protobuf:"bytes,2,opt,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

SupplyChainConfig represents the parsed .supplychain.yaml configuration file.

func (*SupplyChainConfig) Descriptor deprecated

func (*SupplyChainConfig) Descriptor() ([]byte, []int)

Deprecated: Use SupplyChainConfig.ProtoReflect.Descriptor instead.

func (*SupplyChainConfig) GetKeys

func (x *SupplyChainConfig) GetKeys() *Keys

func (*SupplyChainConfig) GetMetadata

func (x *SupplyChainConfig) GetMetadata() *Metadata

func (*SupplyChainConfig) GetPublicKeys

func (c *SupplyChainConfig) GetPublicKeys() ([]key.PublicKeyProvider, error)

GetPublicKeys resolves all public key entries in the supply chain config and returns them as key providers. Each entry can be:

  • inline key data (PEM or GPG armored)
  • a local file path
  • a URL to fetch remotely

Remote URLs are fetched in parallel.

func (*SupplyChainConfig) GetRepositories

func (c *SupplyChainConfig) GetRepositories() []string

GetRepositories returns the collector repository strings from the config's metadata section.

func (*SupplyChainConfig) ProtoMessage

func (*SupplyChainConfig) ProtoMessage()

func (*SupplyChainConfig) ProtoReflect

func (x *SupplyChainConfig) ProtoReflect() protoreflect.Message

func (*SupplyChainConfig) Reset

func (x *SupplyChainConfig) Reset()

func (*SupplyChainConfig) String

func (x *SupplyChainConfig) String() string

Jump to

Keyboard shortcuts

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