instance
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- func CreateAndInit(ctx context.Context, srv rpc.ArduinoCoreServiceServer) *rpc.Instance
- func CreateAndInitWithProfile(ctx context.Context, srv rpc.ArduinoCoreServiceServer, profileName string, ...) (*rpc.Instance, *rpc.SketchProfile)
- func Init(ctx context.Context, srv rpc.ArduinoCoreServiceServer, instance *rpc.Instance)
- func InitWithProfile(ctx context.Context, srv rpc.ArduinoCoreServiceServer, instance *rpc.Instance, ...) *rpc.SketchProfile
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcCreateAndInit¶
CreateAndInit return a new initialized instance.If Create fails the CLI prints an error and exits sinceto execute further operations a valid Instance is mandatory.If Init returns errors they're printed only.
funcCreateAndInitWithProfile¶
func CreateAndInitWithProfile(ctxcontext.Context, srvrpc.ArduinoCoreServiceServer, profileNamestring, sketchPath *paths.Path) (*rpc.Instance, *rpc.SketchProfile)
CreateAndInitWithProfile returns a new initialized instance using the given profile of the given sketch.If Create fails the CLI prints an error and exits since to execute further operations a valid Instance is mandatory.If Init returns errors they're printed only.
funcInit¶
Init initializes instance by loading installed libraries and platforms.In case of loading failures return a list of errors for eachplatform or library that we failed to load.Package and library indexes files are automatically updated if theCLI is run for the first time.
funcInitWithProfile¶
func InitWithProfile(ctxcontext.Context, srvrpc.ArduinoCoreServiceServer, instance *rpc.Instance, profileNamestring, sketchPath *paths.Path) *rpc.SketchProfile
InitWithProfile initializes instance by loading libraries and platforms specified in the given profile of the given sketch.In case of loading failures return a list of errors for each platform or library that we failed to load.Required Package and library indexes files are automatically downloaded.
Types¶
This section is empty.