Documentation ¶
Index ¶
Constants ¶
View Source
const ( DbgFlagNetwork = kodo.DbgFlagNetwork DbgFlagAll = kodo.DbgFlagAll )
View Source
const (
Scheme = kodoutil.Scheme
)
Variables ¶
This section is empty.
Functions ¶
func Open ¶ added in v0.9.0
Open a kodofs file system by url in form of "kodo:<bucketName>?<token>".
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
func New ¶
func New(accessKey, secretKey string, bucket string, host string, prepare PrepareOpen) *Bucket
func (*Bucket) Open ¶
Open implements net/http.FileSystem.Open (https://pkg.go.dev/net/http#FileSystem).
type Credentials ¶
type Credentials kodo.Credentials
func NewCredentials ¶
func NewCredentials(accessKey, secretKey string) *Credentials
func (*Credentials) NewBucket ¶
func (mac *Credentials) NewBucket(bucket string, host string, prepare PrepareOpen) *Bucket
type PrepareOpen ¶
type PrepareOpen = func(name string) (ctx context.Context, opener xfs.HttpOpener)
Click to show internal directories.
Click to hide internal directories.