![]() |
STASIS
A pipeline delivery generator
|

Go to the source code of this file.
Data Structures | |
| struct | JFRT_Auth |
| JFrog Artifactory Authentication struct. More... | |
| struct | JFRT_Upload |
| JFrog Artifactory Upload struct. More... | |
| struct | JFRT_Download |
| struct | JFRT_Search |
Functions | |
| int | artifactory_download_cli (char *dest, char *jfrog_artifactory_base_url, char *jfrog_artifactory_product, char *cli_major_ver, char *version, char *os, char *arch, char *remote_filename) |
| int | jfrog_cli (struct JFRT_Auth *auth, const char *subsystem, const char *task, char *args) |
| int | jfrog_cli_rt_ping (struct JFRT_Auth *auth) |
| int | jfrog_cli_rt_upload (struct JFRT_Auth *auth, struct JFRT_Upload *ctx, char *src, char *repo_path) |
| int | jfrog_cli_rt_download (struct JFRT_Auth *auth, struct JFRT_Download *ctx, char *repo_path, char *dest) |
| int | jfrog_cli_rt_search (struct JFRT_Auth *auth, struct JFRT_Search *ctx, char *repo_path, char *pattern) |
| int | jfrog_cli_rt_build_collect_env (struct JFRT_Auth *auth, char *build_name, char *build_number) |
| int | jfrog_cli_rt_build_publish (struct JFRT_Auth *auth, char *build_name, char *build_number) |
| int | jfrt_auth_init (struct JFRT_Auth *auth_ctx) |
| void | jfrt_upload_init (struct JFRT_Upload *ctx) |
| int artifactory_download_cli | ( | char * | dest, |
| char * | jfrog_artifactory_base_url, | ||
| char * | jfrog_artifactory_product, | ||
| char * | cli_major_ver, | ||
| char * | version, | ||
| char * | os, | ||
| char * | arch, | ||
| char * | remote_filename ) |
Download the JFrog CLI tool from jfrog.com
| dest | Directory path |
| jfrog_artifactory_base_url | jfrog.com base URL |
| jfrog_artifactory_product | jfrog.com project (jfrog-cli) |
| cli_major_ver | Version series (v1, v2-jf, vX-jf) |
| version | Version to download. "[RELEASE]" will download the latest version available |
| os | Operating system name |
| arch | System CPU architecture |
| remote_filename | File to download (jf) |

| int jfrog_cli | ( | struct JFRT_Auth * | auth, |
| const char * | subsystem, | ||
| const char * | task, | ||
| char * | args ) |
JFrog CLI binding. Executes the "jf" tool with arguments.
| auth | JFRT_Auth structure |
| subsystem | "jf" tool subsystem (i.e. "rt") |
| task | "jf" tool task "upload", "download", etc |
| args | Command line arguments to pass to "jf" tool |

| int jfrog_cli_rt_build_collect_env | ( | struct JFRT_Auth * | auth, |
| char * | build_name, | ||
| char * | build_number ) |
Collect runtime data for Artifactory build object.
| auth | JFRT_Auth structure |
| build_name | Artifactory build name |
| build_number | Artifactory build number |
| int jfrog_cli_rt_build_publish | ( | struct JFRT_Auth * | auth, |
| char * | build_name, | ||
| char * | build_number ) |
Publish build object to Artifactory server
| auth | JFRT_Auth structure |
| build_name | Artifactory build name |
| build_number | Artifactory build number |
| int jfrog_cli_rt_download | ( | struct JFRT_Auth * | auth, |
| struct JFRT_Download * | ctx, | ||
| char * | repo_path, | ||
| char * | dest ) |
Download a file from an Artifactory repository
| auth | JFRT_Auth structure |
| ctx | JFRT_Download structure |
| repo_path | Remote repository w/ file pattern |
| dest | Local destination path |

| int jfrog_cli_rt_ping | ( | struct JFRT_Auth * | auth | ) |
Issue an Artifactory server ping
| auth | JFRT_Auth structure |
| int jfrog_cli_rt_search | ( | struct JFRT_Auth * | auth, |
| struct JFRT_Search * | ctx, | ||
| char * | repo_path, | ||
| char * | pattern ) |
Search for files in an Artifactory repository
| auth | JFRT_Auth structure |
| ctx | JFRT_Search structure |
| repo_path | Remote repository w/ file pattern |
| dest | Local destination path |

| int jfrog_cli_rt_upload | ( | struct JFRT_Auth * | auth, |
| struct JFRT_Upload * | ctx, | ||
| char * | src, | ||
| char * | repo_path ) |
Upload files to an Artifactory repository
| auth | JFRT_Auth structure |
| ctx | JFRT_Upload structure |
| src | local pattern to upload |
| repo_path | remote Artifactory destination path |

| int jfrt_auth_init | ( | struct JFRT_Auth * | auth_ctx | ) |
Configure JFrog CLI authentication according to STASIS specs
This function will use the STASIS_JF_* environment variables to configure the authentication context. With this in mind, if an STASIS_JF_* environment variable is not defined, the original value of the structure member will be used instead.
Use STASIS_JF_* variables to configure context
Use your own input, but let the environment take over when variables are defined
Use your own input without STASIS's help. Purely an illustrative example.
| auth_ctx |
| void jfrt_upload_init | ( | struct JFRT_Upload * | ctx | ) |
Zero-out and apply likely defaults to a JFRT_Upload structure
| ctx | JFRT_Upload structure |