Skip to content

Commit

Permalink
Add some skeleton
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com>
  • Loading branch information
pierre-emmanuelJ committed Jan 8, 2024
1 parent 6093732 commit ac9979e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions v3/credentials/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"sync"
"time"
)

var (
Expand Down Expand Up @@ -50,10 +51,33 @@ func NewCredentials(provider Provider) *Credentials {
}
}

func (c *Credentials) Expire() {
c.Lock()
defer c.Unlock()

c.credentials = Value{}

}

func (c *Credentials) ExpiresAt() (time.Time, error) {
c.RLock()
defer c.RUnlock()

return time.Time{}, fmt.Errorf("not implemented")
}

func (c *Credentials) Get() (Value, error) {
return Value{}, fmt.Errorf("not implemented")
}

func (c *Credentials) GetWithContext(ctx context.Context) (Value, error) {
return Value{}, fmt.Errorf("not implemented")
}

func (c *Credentials) IsExpired() bool {
return false
}

func (c *Credentials) retrieve(ctx context.Context) {

Check failure on line 81 in v3/credentials/credentials.go

View workflow job for this annotation

GitHub Actions / CI

func `(*Credentials).retrieve` is unused (unused)
c.Lock()
defer c.Unlock()
Expand Down

0 comments on commit ac9979e

Please sign in to comment.