Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PluginManifest ¶
type PluginManifest struct {
Plugin string `json:"plugin"`
Version string `json:"version"`
KeyID string `json:"keyId"`
Time int64 `json:"time"`
Files map[string]string `json:"files"`
// V2 supported fields
ManifestVersion string `json:"manifestVersion"`
SignatureType plugins.SignatureType `json:"signatureType"`
SignedByOrg string `json:"signedByOrg"`
SignedByOrgName string `json:"signedByOrgName"`
RootURLs []string `json:"rootUrls"`
}
PluginManifest holds details for the file manifest
func ReadPluginManifest ¶
func ReadPluginManifest(body []byte) (*PluginManifest, error)
ReadPluginManifest attempts to read and verify the plugin manifest if any error occurs or the manifest is not valid, this will return an error
type UnsignedPluginAuthorizer ¶
type UnsignedPluginAuthorizer struct {
// contains filtered or unexported fields
}
func NewUnsignedAuthorizer ¶
func NewUnsignedAuthorizer(cfg *config.Cfg) *UnsignedPluginAuthorizer
func ProvideOSSAuthorizer ¶
func ProvideOSSAuthorizer(cfg *config.Cfg) *UnsignedPluginAuthorizer
func (*UnsignedPluginAuthorizer) CanLoadPlugin ¶
func (u *UnsignedPluginAuthorizer) CanLoadPlugin(p *plugins.Plugin) bool
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator(authorizer plugins.PluginLoaderAuthorizer) Validator
Click to show internal directories.
Click to hide internal directories.