GetLicenseFile gets the license File for the Module, if it exists. Returns an error with fs.ErrNotExist if the license File does not exist.
(ctx context.Context, moduleReadBucket ModuleReadBucket)
| 222 | // |
| 223 | // Returns an error with fs.ErrNotExist if the license File does not exist. |
| 224 | func GetLicenseFile(ctx context.Context, moduleReadBucket ModuleReadBucket) (File, error) { |
| 225 | return moduleReadBucket.GetFile(ctx, licenseFilePath) |
| 226 | } |
| 227 | |
| 228 | // GetDocStorageReadBucket gets a storage.ReadBucket that just contains the documentation file(s). |
| 229 | // |