instance

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndInit

func CreateAndInit(ctx context.Context, srv rpc.ArduinoCoreServiceServer) *rpc.Instance

CreateAndInit return a new initialized instance. 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.

func CreateAndInitWithProfile

func CreateAndInitWithProfile(ctx context.Context, srv rpc.ArduinoCoreServiceServer, profileName string, 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.

func Init

func Init(ctx context.Context, srv rpc.ArduinoCoreServiceServer, instance *rpc.Instance)

Init initializes instance by loading installed libraries and platforms. In case of loading failures return a list of errors for each platform or library that we failed to load. Package and library indexes files are automatically updated if the CLI is run for the first time.

func InitWithProfile

func InitWithProfile(ctx context.Context, srv rpc.ArduinoCoreServiceServer, instance *rpc.Instance, profileName string, 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL