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.
17 lines
499 B
Go
17 lines
499 B
Go
// Copyright 2017 Drone.IO Inc. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package scm
|
|
|
|
import "context"
|
|
|
|
// Linker provides deep links to resources.
|
|
type Linker interface {
|
|
// Resource returns a link to the resource.
|
|
Resource(ctx context.Context, repo string, ref Reference) (string, error)
|
|
|
|
// Diff returns a link to the diff.
|
|
Diff(ctx context.Context, repo string, source, target Reference) (string, error)
|
|
}
|