 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func Exec(execpath string, config json.RawMessage, r io.Reader, w io.Writer, ...) ([]byte, error)
- func GetPluginInfo(execpath string) (*internal.Descriptor, error)
- func RemoveFile(file string) error
- func RemovePluginSource(dir string, name string) error
- func WritePluginSource(dir string, cv ocm.ComponentVersionAccess, rsc, name string) error
- type ConstraintRegistry
- type Plugin
- type PluginDir
- type PluginDirCache
- type PluginSource
- type PluginUpdater
- func (o *PluginUpdater) DownloadFromRepo(session ocm.Session, repo ocm.Repository, ref, name string) error
- func (o *PluginUpdater) DownloadRef(session ocm.Session, ref string, name string) error
- func (o *PluginUpdater) Remove(session ocm.Session, name string) error
- func (o *PluginUpdater) SetupCurrent(name string) error
- func (o *PluginUpdater) Update(session ocm.Session, name string) error
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var DirectoryCache = &pluginDirCache{ directories: map[string]PluginDir{}, }
Functions ¶
func GetPluginInfo ¶
func GetPluginInfo(execpath string) (*internal.Descriptor, error)
func RemoveFile ¶
func RemovePluginSource ¶
func WritePluginSource ¶
func WritePluginSource(dir string, cv ocm.ComponentVersionAccess, rsc, name string) error
Types ¶
type ConstraintRegistry ¶
type ConstraintRegistry[T any, K registry.Key[K]] struct { // contains filtered or unexported fields }
func NewConstraintRegistry ¶
func NewConstraintRegistry[T internal.Element[K], K registry.Key[K]](list []T) *ConstraintRegistry[T, K]
func (*ConstraintRegistry[T, K]) Lookup ¶
func (r *ConstraintRegistry[T, K]) Lookup(key K) []*T
func (*ConstraintRegistry[T, K]) LookupFor ¶
func (r *ConstraintRegistry[T, K]) LookupFor(name string, key K) []*T
func (*ConstraintRegistry[T, K]) LookupKeys ¶
func (r *ConstraintRegistry[T, K]) LookupKeys(key K) generics.Set[K]
func (*ConstraintRegistry[T, K]) LookupKeysFor ¶
func (r *ConstraintRegistry[T, K]) LookupKeysFor(name string, key K) generics.Set[K]
type PluginDirCache ¶
type PluginDirCache = *pluginDirCache
type PluginSource ¶
type PluginSource struct {
	Repository *cpi.GenericRepositorySpec `json:"repository"`
	Component  string                     `json:"component"`
	Version    string                     `json:"version"`
	Resource   string                     `json:"resource"`
}
    func ReadPluginSource ¶
func ReadPluginSource(dir string, name string) (*PluginSource, error)
type PluginUpdater ¶
type PluginUpdater struct {
	Context     ocm.Context
	Force       bool
	RemoveMode  bool
	UpdateMode  bool
	Describe    bool
	Constraints []*semver.Constraints
	Current string
	Printer common.Printer
}
    func NewPluginUpdater ¶
func NewPluginUpdater(ctx ocm.ContextProvider, printer common.Printer) *PluginUpdater
func (*PluginUpdater) DownloadFromRepo ¶
func (o *PluginUpdater) DownloadFromRepo(session ocm.Session, repo ocm.Repository, ref, name string) error
func (*PluginUpdater) DownloadRef ¶
func (*PluginUpdater) Remove ¶
func (o *PluginUpdater) Remove(session ocm.Session, name string) error
func (*PluginUpdater) SetupCurrent ¶
func (o *PluginUpdater) SetupCurrent(name string) error
 Click to show internal directories. 
   Click to hide internal directories.