push {acumos}R Documentation

Push a component into the Acumos repository

Description

push pushes a component into the Acumos repository.

auth obtains an authentication token to be used with push where required.

Usage

push(url, file = "component.zip", token, create=TRUE, deploy=FALSE, license,
     headers, ...)
auth(url, user, password)

Arguments

url

URL for the POST request

file

component bundle file as created by compose

token

token obtained from auth (optional)

create

logical, isCreateMicroservice parameter. If TRUE the model Docker image is automatically created by the Acumos platform. See Acumos onboarding documentation.

deploy

logical. If TRUE the model is automatically deployed by the Acumos platform based on an external jenkins server configuration. This parameter cannot take the value TRUE, when the parameter create takes the value FALSE. See Acumos onboarding documentation.

license

optional string, name of a file to supply as the license. If not specified push() will also try to locate a license.json file in the component bundle if present.

headers

optional, named list or named character vector of HTTP headers that are to be added to the request. NOTE: the meaning of optional headers depends on the onboarding server so consult the documentation of the onboarding server for supported additional headers and their meaning.

user

user name to use for authentication

password

password to use for authentication

...

any additional form entries to push as body content. If the entry is to be passed as a file upload, use upload_file(<file>, <mime-type>).

Value

push: invisibly, result of the request (may change in the future)

auth: authentication token

Author(s)

Simon Urbanek

See Also

compose


[Package acumos version 0.4-4 Index]