Documentation ¶
Index ¶
- Variables
- func CommonGRPCClientOptions() []grpc.DialOption
- func DialTarget(target string, credentials string) (*grpc.ClientConn, error)
- func DialTargetWithOptions(target string, grpcsBytestream bool, credentials string, ...) (*grpc.ClientConn, error)
- type BazelCache
- type DelegatingBazelCache
- type FileBazelCache
- type RemoteBazelCache
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrScheme = errors.New("wrong or invalid scheme requested") )
Functions ¶
func CommonGRPCClientOptions ¶
func CommonGRPCClientOptions() []grpc.DialOption
func DialTarget ¶
func DialTarget(target string, credentials string) (*grpc.ClientConn, error)
func DialTargetWithOptions ¶
func DialTargetWithOptions(target string, grpcsBytestream bool, credentials string, extraOptions ...grpc.DialOption) (*grpc.ClientConn, error)
Types ¶
type BazelCache ¶
BazelCache allows reading objects directly from Bazel's caches. This might be necessary when one needs access to output files, because Bazel might not materialize the file on disk if the result is cached.
func NewDefaultDelegatingCache ¶
func NewDefaultDelegatingCache(credentials string, dialOptions ...grpc.DialOption) BazelCache
type DelegatingBazelCache ¶
type DelegatingBazelCache struct {
// contains filtered or unexported fields
}
DelegatingBazelCache consists of multiple BazelCaches, and uses the one appropriate for a given uri by looking at the scheme.
type FileBazelCache ¶
type FileBazelCache struct{}
FileBazelCache provides access to cached items with 'file://' uris.
type RemoteBazelCache ¶
type RemoteBazelCache struct { DialOptions []grpc.DialOption // contains filtered or unexported fields }
RemoteBazelCache provides access to cached items with 'bytestream://' uris.
Click to show internal directories.
Click to hide internal directories.