Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateManifest(root, language string) error
- func UpdateSDK(root string, opt *UpdateOptions) error
- func Verbose() bool
- type Driver
- func (d *Driver) Build(imageName string) (string, error)
- func (d *Driver) FillManifest(dest string) error
- func (d *Driver) Prepare() (bool, error)
- func (d *Driver) Push(image string) error
- func (d *Driver) ScriptChanged() (bool, error)
- func (d *Driver) Test(bblfshdVers, image string, bench bool) error
- func (d *Driver) VersionTag() (string, error)
- type PrintfFunc
- type ServerInstance
- type UpdateOptions
Constants ¶
View Source
const (
ScriptName = dockerFileName
)
Variables ¶
View Source
var ErrChangesRequired = errors.New("changes are required")
ErrChangesRequired is returned by UpdateSDK in DryRun mode when changes are required.
Functions ¶
func GenerateManifest ¶ added in v2.16.0
GenerateManifest writes the manifest file to a root driver directory.
func UpdateSDK ¶ added in v2.16.0
func UpdateSDK(root string, opt *UpdateOptions) error
UpdateSDK updates SDK-managed files for the driver located at root.
If DryRun option is set, the function would not update any files, and instead will return ErrChangesRequired if there are any changes required.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) FillManifest ¶
func (*Driver) ScriptChanged ¶
func (*Driver) VersionTag ¶
type PrintfFunc ¶ added in v2.16.0
PrintfFunc is a logging function type similar to log.Printf.
type ServerInstance ¶
type ServerInstance struct {
// contains filtered or unexported fields
}
func RunWithDriver ¶
func RunWithDriver(bblfshdVers, lang, id string) (*ServerInstance, error)
RunWithDriver starts a bblfshd server and installs a specified driver to it.
func (*ServerInstance) ClientV1 ¶
func (d *ServerInstance) ClientV1(ctx context.Context) (protocol1.ProtocolServiceClient, error)
func (*ServerInstance) Close ¶
func (d *ServerInstance) Close() error
type UpdateOptions ¶ added in v2.16.0
type UpdateOptions struct { DryRun bool Debug PrintfFunc Notice PrintfFunc Warning PrintfFunc }
UpdateOptions is a set of options available for
Click to show internal directories.
Click to hide internal directories.