Skip to main content

kodo

qiniu kodo

Project#

https://github.com/beyondstorage/go-service-kodo

Config#

Servicer#

Available Pairs#

NameRequiredComments
credentialYonly support hmac protocol

Examples#

Init servicer (see this page for details)

import (    _ "github.com/beyondstorage/go-service-cos/v3"    "github.com/beyondstorage/go-storage/v4/services")
srv, err := services.NewServicerFromString("cos://?credential=hmac:<account_name>:<account_key>")if err != nil {    log.Fatalf("cos new service: %v", err)}

Storager#

Available Pairs#

NameRequiredComments
nameYbucket name
work_dirNwork dir
endpointYspecific domain to access this storager

Examples#

Init storager (see this page for details)

import (    _ "github.com/beyondstorage/go-service-kodo/v3"    "github.com/beyondstorage/go-storage/v4/services")
store, err := services.NewStoragerFromString("kodo://<container_name>/<work_dir>?credential=hmac:<account_name>:<account_key>&endpoint=http:<domain>")if err != nil {    log.Fatalf("kodo new service: %v", err)}

Implementation#

This service implements following interfaces: