You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
402 B
Go
21 lines
402 B
Go
// Copyright 2019 Drone.IO Inc. All rights reserved.
|
|
// Use of this source code is governed by the Parity Public License
|
|
// that can be found in the LICENSE file.
|
|
|
|
package secret
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/drone/drone-go/drone"
|
|
)
|
|
|
|
type mockProvider struct {
|
|
sec *drone.Secret
|
|
err error
|
|
}
|
|
|
|
func (p *mockProvider) Find(context.Context, *Request) (*drone.Secret, error) {
|
|
return p.sec, p.err
|
|
}
|