tilia

package module
v0.0.0-...-6a18b81 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUnexpectedResponseError

func NewUnexpectedResponseError(expectedStatusCode, actualStatusCode int) error

Types

type TiliaClient

type TiliaClient struct {
	// contains filtered or unexported fields
}

func NewTiliaClient

func NewTiliaClient(baseURL string) *TiliaClient

func (*TiliaClient) AddProductToProject

func (tc *TiliaClient) AddProductToProject(ctx context.Context, projectId string, body projects.AddProductToProjectRequest) (projects.StandardResponse, error)

func (*TiliaClient) ApplyPlanResult

func (tc *TiliaClient) ApplyPlanResult(ctx context.Context, projectId string, resultId int) (projects.StandardResponse, error)

func (*TiliaClient) CreateGrade

func (tc *TiliaClient) CreateGrade(ctx context.Context, stockId string, grade libraries.Grades) (projects.StandardResponse, error)

func (*TiliaClient) CreateRoll

func (tc *TiliaClient) CreateRoll(ctx context.Context, stockId, gradeId string, roll libraries.Rolls) (projects.StandardResponse, error)

func (*TiliaClient) CreateStock

func (tc *TiliaClient) CreateStock(ctx context.Context, stock libraries.Stock) (projects.StandardResponse, error)

func (*TiliaClient) CreateThing

func (tc *TiliaClient) CreateThing(ctx context.Context, thing libraries.CreateThing) (libraries.Thing, error)

func (*TiliaClient) DeleteProject

func (tc *TiliaClient) DeleteProject(ctx context.Context, id string) (projects.StandardResponse, error)

func (*TiliaClient) DeleteStock

func (tc *TiliaClient) DeleteStock(ctx context.Context, id string) (projects.StandardResponse, error)

func (*TiliaClient) DeleteThing

func (tc *TiliaClient) DeleteThing(ctx context.Context, id string) (projects.StandardResponse, error)

func (*TiliaClient) DownloadFile

func (tc *TiliaClient) DownloadFile(ctx context.Context, urlPath string, expectedStatusCodes int) (io.ReadCloser, error)

func (*TiliaClient) ExportProject

func (tc *TiliaClient) ExportProject(ctx context.Context, projectId string, format projects.ExportType, opts *projects.ExportRequest) (projects.StandardResponse, error)

func (*TiliaClient) ExportProject2

func (tc *TiliaClient) ExportProject2(ctx context.Context, projectId string, format projects.ExportType, opts *projects.ExportRequest) ([]string, error)

func (*TiliaClient) ExportProjectStream

func (tc *TiliaClient) ExportProjectStream(ctx context.Context, projectId string, format projects.ExportType, opts *projects.ExportRequest) (io.ReadCloser, int64, error)

func (*TiliaClient) ExportProjectToBytes

func (tc *TiliaClient) ExportProjectToBytes(ctx context.Context, projectId string, format projects.ExportType, opts *projects.ExportRequest) ([]byte, error)

func (*TiliaClient) GetFile

func (tc *TiliaClient) GetFile(fileUrl string) (io.ReadCloser, int64, error)

func (*TiliaClient) GetPlanStatus

func (tc *TiliaClient) GetPlanStatus(ctx context.Context, projectId string) (projects.PlanStatusResponse, error)

func (*TiliaClient) GetThing

func (tc *TiliaClient) GetThing(ctx context.Context, id string) (libraries.Thing, error)

func (*TiliaClient) GetThingByName

func (tc *TiliaClient) GetThingByName(ctx context.Context, name string) (libraries.Thing, error)

func (*TiliaClient) ListMarks

func (tc *TiliaClient) ListMarks(ctx context.Context) ([]libraries.Mark, error)

func (*TiliaClient) ListPlanResults

func (*TiliaClient) ListStockTypes

func (tc *TiliaClient) ListStockTypes(ctx context.Context) ([]libraries.StockType, error)

func (*TiliaClient) ListStocks

func (tc *TiliaClient) ListStocks(ctx context.Context) ([]libraries.StockV2, error)

func (*TiliaClient) NewProject

func (*TiliaClient) StartPlanProject

func (tc *TiliaClient) StartPlanProject(ctx context.Context, projectId string, body projects.PlanProjectRequest) (projects.StandardResponse, error)

func (*TiliaClient) StopPlanProject

func (tc *TiliaClient) StopPlanProject(ctx context.Context, projectId string) (projects.StandardResponse, error)

func (*TiliaClient) UpdateThing

func (*TiliaClient) UploadFileFromURL

func (tc *TiliaClient) UploadFileFromURL(ctx context.Context, projectId, filename, downloadFromUrl string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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