Skip to content

Commit

Permalink
Update Readme after New Service Manager api change
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNino authored Jan 28, 2019
1 parent 187d4ed commit 48fa640
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ The project is still relatively new, and its APIs may therefore change frequentl
The library can be used as a go-module, which should be added to your project's go.mod file. As a reference you may look at [JFrog CLI](https://github.com/jfrog/jfrog-cli-go)'s [go.mod](https://github.com/jfrog/jfrog-cli-go/blob/master/go.mod) file, which uses this library as a dependency.

## Artifactory APIs
### Creating Artifactory Details
```
### Creating a Service Manager
#### Creating Artifactory Details
```
rtDetails := auth.NewArtifactoryDetails()
rtDetails.SetUrl("http://localhost:8081/artifactory")
rtDetails.SetSshKeysPath("path/to/.ssh/")
rtDetails.SetApiKey("apikey")
rtDetails.SetUser("user")
rtDetails.SetPassword("password")
rtDetails.SetAccessToken("accesstoken")
```

### Creating a Service Manager
```
#### Creating Service Config
```
serviceConfig, err := artifactory.NewConfigBuilder().
SetArtDetails(rtDetails).
Expand All @@ -35,8 +35,10 @@ The library can be used as a go-module, which should be added to your project's
SetDryRun(false).
SetLogger(logger).
Build()
rtManager, err := artifactory.New(serviceConfig)
```
#### Creating New Service Manager
```
rtManager, err := artifactory.New(&rtDetails, serviceConfig)
```

### Using Services
Expand Down

0 comments on commit 48fa640

Please sign in to comment.