Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterApplier(a ...cfgcpi.ConfigApplier)
- func Set(ctx ContextProvider, attribute *Attribute) error
- type Appliers
- type Attribute
- type AttributeType
- type Config
- func (a *Config) AddRootCertificate(chain signutils.GenericCertificateChain) error
- func (a *Config) AddRootCertificateData(data []byte)
- func (a *Config) AddRootCertificateFile(name string, fss ...vfs.FileSystem)
- func (a *Config) ApplyTo(ctx cfgcpi.Context, target interface{}) error
- func (a *Config) ApplyToAttribute(attr *Attribute) error
- func (a *Config) GetType() string
- type Context
- type ContextProvider
Constants ¶
View Source
const ( ATTR_KEY = "github.com/mandelsoft/ocm/rootcerts" ATTR_SHORT = "rootcerts" )
View Source
const ( ConfigType = "rootcerts" + cfgcpi.OCM_CONFIG_TYPE_SUFFIX ConfigTypeV1 = ConfigType + runtime.VersionSeparator + "v1" )
Variables ¶
View Source
var DefaultAppliers = &Appliers{}
Functions ¶
func RegisterApplier ¶
func RegisterApplier(a ...cfgcpi.ConfigApplier)
func Set ¶
func Set(ctx ContextProvider, attribute *Attribute) error
Types ¶
type Appliers ¶
type Appliers struct {
// contains filtered or unexported fields
}
func (*Appliers) Register ¶
func (r *Appliers) Register(a ...cfgcpi.ConfigApplier)
type Attribute ¶
type Attribute struct {
// contains filtered or unexported fields
}
func Get ¶
func Get(ctx ContextProvider) *Attribute
func (*Attribute) HasRootCertificates ¶
func (*Attribute) RegisterRootCertificates ¶
func (a *Attribute) RegisterRootCertificates(cert signutils.GenericCertificateChain) error
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
type Config ¶
type Config struct { runtime.ObjectVersionedType `json:",inline"` RootCertificates []cfgcpi.ContentSpec `json:"rootCertificates,omitempty"` }
Config describes a memory based repository interface.
func (*Config) AddRootCertificate ¶
func (a *Config) AddRootCertificate(chain signutils.GenericCertificateChain) error
func (*Config) AddRootCertificateData ¶
func (*Config) AddRootCertificateFile ¶
func (a *Config) AddRootCertificateFile(name string, fss ...vfs.FileSystem)
func (*Config) ApplyToAttribute ¶
type Context ¶
type Context = datacontext.AttributesContext
type ContextProvider ¶
type ContextProvider = datacontext.ContextProvider
Click to show internal directories.
Click to hide internal directories.