Documentation ¶
Index ¶
- Constants
- Variables
- func ConstructGetLastestKernelsFunc(ksrc *Manager) func(ctx context.Context) (CalVer, error)
- func IsCompatibilityKernel(x Mode) bool
- func KernelSuffix(mode Mode) string
- type AdvancedArgs
- type Bundle
- func (bundle *Bundle) EarliestCompatibleCompiler() string
- func (bundle *Bundle) Files() []BundleFileMetadata
- func (bundle *Bundle) FilesList(tags ...string) []string
- func (bundle *Bundle) Reader(tags ...string) io.ReadCloser
- func (bundle *Bundle) Size(tags ...string) int64
- func (bundle *Bundle) Version() CalVer
- type BundleFileMetadata
- type BundleMetadata
- type CLIArgs
- type CLIRemoteManager
- type CalVer
- func (v CalVer) Less(version CalVer) bool
- func (v CalVer) LessEq(version CalVer) bool
- func (v CalVer) Major() int
- func (v CalVer) MarshalJSON() ([]byte, error)
- func (v CalVer) MarshalText() (text []byte, err error)
- func (v CalVer) Minor() int
- func (v CalVer) Modifier() string
- func (v CalVer) Month() int
- func (v CalVer) Patch() int
- func (v CalVer) String() string
- func (v *CalVer) UnmarshalJSON(data []byte) error
- func (v *CalVer) UnmarshalText(text []byte) error
- func (v CalVer) Year() int
- type CalVers
- type CompoundManager
- type List
- type LocalManager
- type ManagedBundle
- type Manager
- type Mode
- type RemoteManager
- type Tuple
Constants ¶
View Source
const ( Performance = Mode("perf") Compatibility = Mode("compat") )
..
View Source
const ManifestName = "manifest"
ManifestName ..
Variables ¶
View Source
var CLIUpdateInterval time.Duration = time.Hour * 24
View Source
var ErrInvalidCalVer = errors.New("invalid version string")
ErrInvalidCalVer ..
View Source
var Logger = func(fmt string, x ...interface{}) {
return
}
Logger ..
Functions ¶
func ConstructGetLastestKernelsFunc ¶
ConstructGetLastestKernelsFunc : Given a Kernel Manager will construct a function that returns the latest Kernel Version
Types ¶
type AdvancedArgs ¶
type AdvancedArgs struct { Directory string `toml:"directory"` DropPath string `toml:"drop-path"` RemoteRepositories []string `toml:"remote-repositories"` }
AdvancedArgs ..
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
Bundle ..
func (*Bundle) EarliestCompatibleCompiler ¶
EarliestCompatibleCompiler ..
type BundleFileMetadata ¶
type BundleFileMetadata struct { Name string `json:"name"` Size int64 `json:"size"` Tags []string `json:"tags,omitempty"` }
BundleFileMetadata ..
type BundleMetadata ¶
type BundleMetadata struct { Version CalVer `json:"version"` EarliestCompatibleCompiler string `json:"compiler"` Files []BundleFileMetadata `json:"files"` }
BundleMetadata ..
func (*BundleMetadata) Marshal ¶
func (metadata *BundleMetadata) Marshal() ([]byte, error)
Marshal ..
func (*BundleMetadata) Unmarshal ¶
func (metadata *BundleMetadata) Unmarshal(data []byte) error
Unmarshal ..
type CLIRemoteManager ¶
type CLIRemoteManager struct {
// contains filtered or unexported fields
}
func NewCLIRemoteManager ¶
func NewCLIRemoteManager(url, dir string, logger elog.View) (*CLIRemoteManager, error)
func (*CLIRemoteManager) Get ¶
func (mgr *CLIRemoteManager) Get(ctx context.Context, version CalVer) (*ManagedBundle, error)
func (*CLIRemoteManager) Latest ¶
func (mgr *CLIRemoteManager) Latest() (out string, err error)
type CompoundManager ¶
type CompoundManager struct {
// contains filtered or unexported fields
}
CompoundManager ..
func NewCompoundManager ¶
func NewCompoundManager(mgrs ...Manager) (*CompoundManager, error)
NewCompoundManager ..
func (*CompoundManager) Get ¶
func (mgr *CompoundManager) Get(ctx context.Context, version CalVer) (*ManagedBundle, error)
Get ..
type LocalManager ¶
type LocalManager struct {
// contains filtered or unexported fields
}
LocalManager ..
func (*LocalManager) Get ¶
func (mgr *LocalManager) Get(ctx context.Context, version CalVer) (*ManagedBundle, error)
Get ..
type ManagedBundle ¶
type ManagedBundle struct {
// contains filtered or unexported fields
}
ManagedBundle ..
type Manager ¶
type Manager interface { Get(ctx context.Context, version CalVer) (*ManagedBundle, error) List(ctx context.Context) (List, error) Latest() (string, error) }
Manager ..
var Global Manager
Global ..
type RemoteManager ¶
type RemoteManager struct {
// contains filtered or unexported fields
}
RemoteManager ..
func NewRemoteManager ¶
func NewRemoteManager(url, dir string) (*RemoteManager, error)
NewRemoteManager ..
func (*RemoteManager) Get ¶
func (mgr *RemoteManager) Get(ctx context.Context, version CalVer) (*ManagedBundle, error)
Get ..
Click to show internal directories.
Click to hide internal directories.