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.amc", token, create=TRUE, 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, 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-1 Index]