Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #21 from kaizendorks/fix-password-update
Browse files Browse the repository at this point in the history
Fix password update method.
  • Loading branch information
iorubs authored Jul 7, 2020
2 parents d8bd178 + 3f1024b commit 6e69561
Show file tree
Hide file tree
Showing 25 changed files with 100 additions and 108 deletions.
6 changes: 3 additions & 3 deletions nexus/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type AssetsAPI api

// List assets
// api endpoint: GET /v1/assets
// api endpoint: GET /v1/assets
// parameters:
// af: AssetFilter object consisting of options to filter the results by.
// responses:
Expand All @@ -35,7 +35,7 @@ func (a AssetsAPI) List(af AssetFilter) (AssetListResponse, error) {
}

// Get a single asset
// endpoint: GET /v1/assets/{id}
// endpoint: GET /v1/assets/{id}
// parameters:
// assetId: ID of the asset to get
// responses:
Expand All @@ -57,7 +57,7 @@ func (a AssetsAPI) Get(assetId string) (Asset, error) {
}

// Delete a single asset
// endpoint: DELETE /v1/assets/{id}
// endpoint: DELETE /v1/assets/{id}
// parameters:
// assetId: ID of the asset to delete
// responses:
Expand Down
6 changes: 3 additions & 3 deletions nexus/blobstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type BlobStoreAPI api

// List all blob stores
// endpoint: GET /beta/blobstores
// endpoint: GET /beta/blobstores
// responses:
// 200: successful operation returns BlobStore slice and nill error
func (a BlobStoreAPI) List() ([]BlobStore, error) {
Expand All @@ -27,7 +27,7 @@ func (a BlobStoreAPI) List() ([]BlobStore, error) {
}

// Delete a blob store by name
// endpoint: DELETE /beta/blobstores/{name}
// endpoint: DELETE /beta/blobstores/{name}
// parameters:
// blobStoreName: The name of the blob store to delete
// responses:
Expand All @@ -40,7 +40,7 @@ func (a BlobStoreAPI) Delete(blobStoreName string) error {
}

// GetQuotaStatus using a blob store name, for checking if the blob store has a quota and is in violation of that quota.
// endpoint: GET /v1/blobstores/{id}/quota-status
// endpoint: GET /v1/blobstores/{id}/quota-status
// parameters:
// blobStoreName: The name of the blob store for which to return the quota status
// responses:
Expand Down
6 changes: 3 additions & 3 deletions nexus/blobstore_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

// CreateFileStore create a new file blob store
// endpoint: POST /beta/blobstores/file
// endpoint: POST /beta/blobstores/file
// parameters:
// bs: set of config options to use when creating the new blob store
// responses:
Expand All @@ -26,7 +26,7 @@ func (a BlobStoreAPI) CreateFileStore(bs FileBlobStoreConfig) error {
}

// GetFileStore gets a file blob store configuration by name
// endpoint: GET /beta/blobstores/file/{name}
// endpoint: GET /beta/blobstores/file/{name}
// parameters:
// blobStoreName: The name of the file blob store to read
// responses:
Expand All @@ -45,7 +45,7 @@ func (a BlobStoreAPI) GetFileStore(blobStoreName string) (FileBlobStore, error)
}

// UpdateFileStore updates an existing file blob store configuration by name
// endpoint: /beta/blobstores/file/{name}
// endpoint: /beta/blobstores/file/{name}
// parameters:
// blobStoreName: The name of the file blob store to update
// bs: FileBlobStore configuration
Expand Down
6 changes: 3 additions & 3 deletions nexus/blobstore_s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package nexus
// )

// CreateS3Store creates an S3 blob store
// api endpoint: POST /beta/blobstores/s3
// api endpoint: POST /beta/blobstores/s3
// parameters:
// bs: S3BlobStore config object.
// responses:
Expand All @@ -28,7 +28,7 @@ package nexus
// }

// GetS3Store fetch a S3 blob store configuration
// api endpoint: GET /beta/blobstores/s3/{name}
// api endpoint: GET /beta/blobstores/s3/{name}
// parameters:
// blobStoreName: Name of the blob store configuration to fetch
// responses:
Expand All @@ -50,7 +50,7 @@ package nexus
// }

// UpdateS3Store updates an S3 blob store configuration
// api endpoint: PUT /beta/blobstores/s3/{name}
// api endpoint: PUT /beta/blobstores/s3/{name}
// parameters:
// bs: S3BlobStore config object
// blobStoreName: Name of the blob store to update
Expand Down
2 changes: 1 addition & 1 deletion nexus/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type RepositoriesAPI api

// List return a slice of RepositoryV1 objects
// api endpoint: GET /v1/repositories
// api endpoint: GET /v1/repositories
// responses:
// 200: successful operation returns slice of RepositoryV1 and nil error
func (a RepositoriesAPI) List() ([]RepositoryV1, error) {
Expand Down
12 changes: 6 additions & 6 deletions nexus/repository_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type RepositoryManagementAPI api

// List returns the list of repositories
// api endpoint: GET /beta/repositories
// api endpoint: GET /beta/repositories
// responses:
// 200: Return Repository slice and nil error
// 401: Authentication required
Expand All @@ -29,7 +29,7 @@ func (a RepositoryManagementAPI) List() ([]Repository, error) {
}

// Delete repository of any format
// api endpoint: DELETE /beta/repositories/{repositoryName}
// api endpoint: DELETE /beta/repositories/{repositoryName}
// parameters:
// repositoryName: Name of the repository to delete
// required: true
Expand All @@ -46,7 +46,7 @@ func (a RepositoryManagementAPI) Delete(repositoryName string) error {
}

// EnableHealthCheck enables repository health check. Proxy repositories only.
// api endpoint: POST /beta/repositories/{repositoryName}/health-check
// api endpoint: POST /beta/repositories/{repositoryName}/health-check
// parameters:
// repositoryName: Name of the repository to enable Repository Health Check for
// required: true
Expand All @@ -64,7 +64,7 @@ func (a RepositoryManagementAPI) EnableHealthCheck(repositoryName string) error
}

// DisableHealthCheck disables repository health check. Proxy repositories only.
// api endpoint: DELETE /beta/repositories/{repositoryName}/health-check
// api endpoint: DELETE /beta/repositories/{repositoryName}/health-check
// parameters:
// repositoryName: Name of the repository to disable Repository Health Check for
// required: true
Expand All @@ -81,7 +81,7 @@ func (a RepositoryManagementAPI) DisableHealthCheck(repositoryName string) error
}

// InvalidateCache invalidates repository cache. Proxy or group repositories only.
// api endpoint: POST /beta/repositories/{repositoryName}/invalidate-cache
// api endpoint: POST /beta/repositories/{repositoryName}/invalidate-cache
// parameters:
// repositoryName Name of the repository to invalidate cache
// required: true
Expand All @@ -99,7 +99,7 @@ func (a RepositoryManagementAPI) InvalidateCache(repositoryName string) error {
}

// RebuildIndex schedule a 'Repair - Rebuild repository search' Task. Hosted or proxy repositories only.
// api endpoint: POST /beta/repositories/{repositoryName}/rebuild-index
// api endpoint: POST /beta/repositories/{repositoryName}/rebuild-index
// parameters:
// repositoryName
// description: Name of the repository to rebuild index
Expand Down
8 changes: 4 additions & 4 deletions nexus/repository_management_apt.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

// CreateAPTHosted creates APT hosted repository
// endpoint: POST /beta/repositories/apt/hosted
// endpoint: POST /beta/repositories/apt/hosted
// parameters:
// r: APTHostedRepository config
// responses:
Expand All @@ -28,7 +28,7 @@ func (a RepositoryManagementAPI) CreateAPTHosted(r APTHostedRepository) error {
}

// UpdateAPTHosted updates APT hosted repository
// endpoint: PUT /beta/repositories/apt/hosted/{repositoryName}
// endpoint: PUT /beta/repositories/apt/hosted/{repositoryName}
// parameters:
// repositoryName: Name of the repository to update
// r: APTHostedRepository config
Expand All @@ -48,7 +48,7 @@ func (a RepositoryManagementAPI) UpdateAPTHosted(repositoryName string, r APTHos
}

// CreateAPTProxy creates APT proxy repository
// endpoint: POST /beta/repositories/apt/proxy
// endpoint: POST /beta/repositories/apt/proxy
// parameters:
// r: APTProxyRepository config
// responses:
Expand All @@ -66,7 +66,7 @@ func (a RepositoryManagementAPI) CreateAPTProxy(r APTProxyRepository) error {
}

// UpdateAPTProxy updates APT proxy repository
// endpoint: PUT /beta/repositories/apt/proxy/{repositoryName}
// endpoint: PUT /beta/repositories/apt/proxy/{repositoryName}
// parameters:
// repositoryName: Name of the repository to update
// r: APTProxyRepository config
Expand Down
12 changes: 6 additions & 6 deletions nexus/repository_management_bower.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

// CreateBowerGroup creates Bower group repository
// endpoint: POST /beta/repositories/bower/group
// endpoint: POST /beta/repositories/bower/group
// parameters:
// r: BowerGroupRepository config
// responses:
Expand All @@ -28,7 +28,7 @@ func (a RepositoryManagementAPI) CreateBowerGroup(r BowerGroupRepository) error
}

// UpdateBowerGroup updates Bower group repository
// endpoint: PUT /beta/repositories/bower/group/{repositoryName}
// endpoint: PUT /beta/repositories/bower/group/{repositoryName}
// parameters:
// r: BowerGroupRepository config
// repositoryName: Name of the repository to update
Expand All @@ -48,7 +48,7 @@ func (a RepositoryManagementAPI) UpdateBowerGroup(repositoryName string, r Bower
}

// CreateBowerHosted create Bower hosted repository
// endpoint: POST /beta/repositories/bower/hosted
// endpoint: POST /beta/repositories/bower/hosted
// parameters:
// r: BowerHostedRepository config
// responses:
Expand All @@ -66,7 +66,7 @@ func (a RepositoryManagementAPI) CreateBowerHosted(r BowerHostedRepository) erro
}

// UpdateBowerHosted updates Bower hosted repository
// endpoint: PUT /beta/repositories/bower/hosted/{repositoryName}
// endpoint: PUT /beta/repositories/bower/hosted/{repositoryName}
// parameters:
// r: BowerHostedRepository config
// repositoryName: Name of the repository to update
Expand All @@ -86,7 +86,7 @@ func (a RepositoryManagementAPI) UpdateBowerHosted(repositoryName string, r Bowe
}

// CreateBowerProxy creates Bower proxy repository
// endpoint: POST /beta/repositories/bower/proxy
// endpoint: POST /beta/repositories/bower/proxy
// parameters:
// r: BowerProxyRepository config
// responses:
Expand All @@ -104,7 +104,7 @@ func (a RepositoryManagementAPI) CreateBowerProxy(r BowerProxyRepository) error
}

// UpdateBowerProxy updates Bower proxy repository
// endpoint: PUT /beta/repositories/bower/proxy/{repositoryName}
// endpoint: PUT /beta/repositories/bower/proxy/{repositoryName}
// parameters:
// r: BowerProxyRepository config
// repositoryName: Name of the repository to update
Expand Down
4 changes: 2 additions & 2 deletions nexus/repository_management_conan.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

// CreateConanProxy creates new Conan proxy repository
// endpoint: POST /beta/repositories/conan/proxy
// endpoint: POST /beta/repositories/conan/proxy
// parameters:
// r: ConanProxyRepository config
// responses:
Expand All @@ -28,7 +28,7 @@ func (a RepositoryManagementAPI) CreateConanProxy(r ConanProxyRepository) error
}

// UpdateConanProxy updates Conan proxy repository
// endpoint: PUT /beta/repositories/conan/proxy/{repositoryName}
// endpoint: PUT /beta/repositories/conan/proxy/{repositoryName}
// parameters:
// repositoryName: Name of the repository to update
// r: ConanProxyRepository config
Expand Down
12 changes: 6 additions & 6 deletions nexus/repository_management_docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

// CreateDockerGroup creates Docker group repository
// endpoint: POST /beta/repositories/docker/group
// endpoint: POST /beta/repositories/docker/group
// parameters:
// r: DockerGroupRepository config
// responses:
Expand All @@ -28,7 +28,7 @@ func (a RepositoryManagementAPI) CreateDockerGroup(r DockerGroupRepository) erro
}

// UpdateDockerGroup updates Docker group repository
// endpoint: PUT /beta/repositories/docker/group/{repositoryName}
// endpoint: PUT /beta/repositories/docker/group/{repositoryName}
// parameters:
// r: DockerGroupRepository config
// repositoryName: Name of the repository to update
Expand All @@ -48,7 +48,7 @@ func (a RepositoryManagementAPI) UpdateDockerGroup(repositoryName string, r Dock
}

// CreateDockerHosted create Docker hosted repository
// endpoint: POST /beta/repositories/docker/hosted
// endpoint: POST /beta/repositories/docker/hosted
// parameters:
// r: DockerHostedRepository config
// responses:
Expand All @@ -66,7 +66,7 @@ func (a RepositoryManagementAPI) CreateDockerHosted(r DockerHostedRepository) er
}

// UpdateDockerHosted updates Docker hosted repository
// endpoint: PUT /beta/repositories/docker/hosted/{repositoryName}
// endpoint: PUT /beta/repositories/docker/hosted/{repositoryName}
// parameters:
// r: DockerHostedRepository config
// repositoryName: Name of the repository to update
Expand All @@ -86,7 +86,7 @@ func (a RepositoryManagementAPI) UpdateDockerHosted(repositoryName string, r Doc
}

// CreateDockerProxy creates Docker proxy repository
// endpoint: POST /beta/repositories/docker/proxy
// endpoint: POST /beta/repositories/docker/proxy
// parameters:
// r: DockerProxyRepository config
// responses:
Expand All @@ -104,7 +104,7 @@ func (a RepositoryManagementAPI) CreateDockerProxy(r DockerProxyRepository) erro
}

// UpdateDockerProxy updates Docker proxy repository
// endpoint: PUT /beta/repositories/docker/proxy/{repositoryName}
// endpoint: PUT /beta/repositories/docker/proxy/{repositoryName}
// parameters:
// r: DockerProxyRepository config
// repositoryName: Name of the repository to update
Expand Down
4 changes: 2 additions & 2 deletions nexus/repository_management_gitlfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

// CreateGitLFSHosted create GitLFS hosted repository
// endpoint: POST /beta/repositories/gitlfs/hosted
// endpoint: POST /beta/repositories/gitlfs/hosted
// parameters:
// r: GitLFSHostedRepository config
// responses:
Expand All @@ -28,7 +28,7 @@ func (a RepositoryManagementAPI) CreateGitLFSHosted(r GitLFSHostedRepository) er
}

// UpdateGitLFSHosted updates GitLFS hosted repository
// endpoint: PUT /beta/repositories/gitlfs/hosted/{repositoryName}
// endpoint: PUT /beta/repositories/gitlfs/hosted/{repositoryName}
// parameters:
// r: GitLFSHostedRepository config
// repositoryName: Name of the repository to update
Expand Down
8 changes: 4 additions & 4 deletions nexus/repository_management_golang.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

// CreateGolangGroup creates Golang group repository
// endpoint: POST /beta/repositories/go/group
// endpoint: POST /beta/repositories/go/group
// parameters:
// r: GolangGroupRepository config
// responses:
Expand All @@ -28,7 +28,7 @@ func (a RepositoryManagementAPI) CreateGolangGroup(r GolangGroupRepository) erro
}

// UpdateGolangGroup updates Golang group repository
// endpoint: PUT /beta/repositories/go/group/{repositoryName}
// endpoint: PUT /beta/repositories/go/group/{repositoryName}
// parameters:
// r: GolangGroupRepository config
// repositoryName: Name of the repository to update
Expand All @@ -48,7 +48,7 @@ func (a RepositoryManagementAPI) UpdateGolangGroup(repositoryName string, r Gola
}

// CreateGolangProxy creates Golang proxy repository
// endpoint: POST /beta/repositories/go/proxy
// endpoint: POST /beta/repositories/go/proxy
// parameters:
// r: GolangProxyRepository config
// responses:
Expand All @@ -66,7 +66,7 @@ func (a RepositoryManagementAPI) CreateGolangProxy(r GolangProxyRepository) erro
}

// UpdateGolangProxy updates Golang proxy repository
// endpoint: PUT /beta/repositories/go/proxy/{repositoryName}
// endpoint: PUT /beta/repositories/go/proxy/{repositoryName}
// parameters:
// r: GolangProxyRepository config
// repositoryName: Name of the repository to update
Expand Down
Loading

0 comments on commit 6e69561

Please sign in to comment.