Documentation
¶
Index ¶
- Variables
- type Keys
- type Metadata
- type SupplyChainConfig
- func (*SupplyChainConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SupplyChainConfig) GetKeys() *Keys
- func (x *SupplyChainConfig) GetMetadata() *Metadata
- func (c *SupplyChainConfig) GetPublicKeys() ([]key.PublicKeyProvider, error)
- func (c *SupplyChainConfig) GetRepositories() []string
- func (*SupplyChainConfig) ProtoMessage()
- func (x *SupplyChainConfig) ProtoReflect() protoreflect.Message
- func (x *SupplyChainConfig) Reset()
- func (x *SupplyChainConfig) String() string
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) ProtoMessage ¶
func (*Keys) ProtoMessage()
func (*Keys) ProtoReflect ¶
func (x *Keys) ProtoReflect() protoreflect.Message
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) GetRepositories ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.