Documentation ¶
Index ¶
- Constants
- Variables
- func InitDriver(root, language string, opt *InitOptions) error
- func UpdateSDK(root string, opt *UpdateOptions) error
- func Verbose() bool
- type Cmd
- 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 InitOptions
- 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 InitDriver ¶
func InitDriver(root, language string, opt *InitOptions) error
InitDriver initializes a new driver in the specified root driver directory.
func UpdateSDK ¶
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 InitOptions ¶
type InitOptions struct { Debug PrintfFunc Notice PrintfFunc Warning PrintfFunc }
InitOptions is a set of options available for the driver init.
type PrintfFunc ¶
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 ¶
type UpdateOptions struct { DryRun bool Debug PrintfFunc Notice PrintfFunc Warning PrintfFunc }
UpdateOptions is a set of options available for the driver update.
Click to show internal directories.
Click to hide internal directories.