Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: colin-nolan/drone-secrets-sync
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.4.1
Choose a base ref
...
head repository: colin-nolan/drone-secrets-sync
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 3 commits
  • 2 files changed
  • 1 contributor

Commits on Sep 21, 2023

  1. Copy the full SHA
    5bb1baa View commit details
  2. Copy the full SHA
    d704c87 View commit details

Commits on Oct 6, 2023

  1. Fixes documentation TODO

    colin-nolan committed Oct 6, 2023
    Copy the full SHA
    20ea1d9 View commit details
Showing with 16 additions and 3 deletions.
  1. +2 −2 README.md
  2. +14 −1 pkg/secrets/common.go
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://nobadkitty.tplinkdns.com:8900/api/badges/colin-nolan/drone-secrets-sync/status.svg)](https://nobadkitty.tplinkdns.com:8900/colin-nolan/drone-secrets-sync)
[![Build Status](https://ci.colinnolan.uk/api/badges/colin-nolan/drone-secrets-sync/status.svg)](https://ci.colinnolan.uk/colin-nolan/drone-secrets-sync)
[![Code Coverage](https://codecov.io/gh/colin-nolan/drone-secrets-sync/graph/badge.svg?token=MS3WG5C1W5)](https://codecov.io/gh/colin-nolan/drone-secrets-sync)

## About
@@ -65,7 +65,7 @@ chmod +x /usr/local/bin/drone-secrets-sync
### From GitHub

```shell
go install github.com/colin-nolan/drone-secrets-sync/cmd/drone-secrets-sync@
go install github.com/colin-nolan/drone-secrets-sync/cmd/drone-secrets-sync@latest
```

### From Source
15 changes: 14 additions & 1 deletion pkg/secrets/common.go
Original file line number Diff line number Diff line change
@@ -8,11 +8,24 @@ import (
"github.com/rs/zerolog/log"
)

// TODO: document
type GenericSecretsManager interface {
// Return a list of all secret names.
// It returns a slice of strings representing the names of the secrets and an error if any occurs.
List() ([]string, error)

// Creates a new secret with the given name and value.
// It takes two parameters: secretName (name of the secret) and secretValue (value of the secret).
// It returns an error if the creation process fails.
Create(secretName string, secretValue string) error

// Updates an existing secret with the given name and new value.
// It takes two parameters: secretName (name of the secret) and secretValue (new value of the secret).
// It returns an error if the update operation fails.
Update(secretName string, secretValue string) error

// Deletes an existing secret based on its name.
// It takes one parameter: secretName (name of the secret).
// It returns an error if the deletion process fails.
Delete(secretName string) error
}