get.porter.sh/porter@v1.3.0/pkg/mixin/mixin.go (about) 1 package mixin 2 3 import ( 4 "context" 5 6 "get.porter.sh/porter/pkg/pkgmgmt" 7 ) 8 9 func IsCoreMixinCommand(value string) bool { 10 switch value { 11 case "install", "upgrade", "uninstall", "build", "lint", "schema", "version": 12 return true 13 default: 14 return false 15 } 16 } 17 18 // MixinProvider manages Porter's mixins: installing, listing, upgrading and 19 // general communication. 20 type MixinProvider interface { 21 pkgmgmt.PackageManager 22 23 // GetSchema requests the manifest schema from the mixin. 24 GetSchema(ctx context.Context, name string) (string, error) 25 }