Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // RubyVersion is the version of Ruby to search for within the wolfi // directory. Used to search for packages importing ruby-${RubyVersion} RubyVersion string // RubyUpdateVersion is the version of Ruby to update to RubyUpdateVersion string // Path is the path to the wolfi directory or a single package to check Path string // Client is the client used to communicate with Github Client *http2.RLHTTPClient // NoCache instructs the client to not use cached results NoCache bool }
func (*Options) CheckUpgrade ¶
CheckUpgrade attempts to find a gemspec for a given ruby gem and tries to extract the required_ruby_version field from it. The required_ruby_version should provide a set of constraints restricting the version of ruby a gem can run on. CheckUpgrade simply tries to make sure the given RubyUpdateVersion is within those constraints.
func (*Options) CodeSearch ¶
CodeSearch is the main search function which uses Github Code Search to run the specified query for a particular package.
func (*Options) DiscoverRubyPackages ¶
DiscoverRubyPackages searches a given path for melange yaml files using packages named ruby-${RubyVersion}. It takes a path to a directory or an individual file. A list of RubyPackages will be returned to the caller.