Documentation
¶
Overview ¶
bbfs is a fs.FS implementation for a Bitbucket server, on premises.
Index ¶
Constants ¶
View Source
const ( // Default api path for Bitbucket Server ApiPath = "/rest/api" // API version DefaultVersion = "latest" )
Variables ¶
View Source
var (
ErrNotImplementedYet = errors.New("not implemented yet")
)
Functions ¶
Types ¶
type Bitbucket ¶
type Bitbucket interface {
}
Define the interface for accessing the Bitbucket repositories.
type Config ¶
type Config struct {
// Host is the hostname of the server
Host string
// ProjectKey is the name of the project or the user of the repo
ProjectKey string
// RepositorySlug is the name of the repository
RepositorySlug string
// Root is the root of the file system in the repo,
// must be a an existing directory
Root string
// AccessKey is an http access key for the repo or the project
AccessKey string
// At is a branch, tag or commit
At string
// ApiVersion is ignored
ApiVersion string
}
Config contains the configuration for a bitbucket file system.
type Option ¶
type Option func(*bbFS)
Options is the type for NewFS options.
func WithDisabledCache ¶ added in v0.0.5
func WithDisabledCache() Option
WithDisabledCache disables caching the requests to bitbucket
func WithMaxCachedItemSize ¶ added in v0.0.5
WithMaxCachedItemSize sets the maximum size for items in the cache.
Directories
¶
| Path | Synopsis |
|---|---|
|
bbclient exposes services to interact with a Bitbucket repository.
|
bbclient exposes services to interact with a Bitbucket repository. |
|
cloud
cloud does not work yet, do not use
|
cloud does not work yet, do not use |
|
cmd
|
|
|
bbclient
command
|
|
|
nullog contains a handler that logs nohing and is always disabled.
|
nullog contains a handler that logs nohing and is always disabled. |
Click to show internal directories.
Click to hide internal directories.