func (r *Reference) Filepath() string {
	return r.filepath
}
Filepath is the disk to write the reference, if any.
package berglas
import (
	"fmt"
	"io/ioutil"
	"net/url"
	"path/filepath"
	"strconv"
	"strings"
	"github.com/pkg/errors"
)
const (
	ReferencePrefixStorage = "berglas://"
	ReferencePrefixSecretManager = "sm://"
)
type ReferenceType int8
const (
	_ ReferenceType = iota
	ReferenceTypeSecretManager
	ReferenceTypeStorage
)
type Reference struct {
	bucket     string
	object     string
	generation int64
	project string
	name    string
	version string
	typ      ReferenceType
	filepath string
}
func (r *Reference) Bucket() string {
	return r.bucket
}
func (r *Reference) Object() string {
	return r.object
}
func (r *Reference) Generation() int64 {
	return r.generation
}
func (r *Reference) Project() string {
	return r.project
}
func (r *Reference) Name() string {
	return r.name
}
func (r *Reference) Version() string {
	return r.version
}