Documentation ¶
Index ¶
- type Config
- type Provider
- func (p *Provider) GetFile(ctx context.Context, service, path string) ([]byte, error)
- func (p *Provider) GetIndex(ctx context.Context, service string) (*shared.Index, error)
- func (p *Provider) GetIndexes(ctx context.Context) ([]shared.Index, error)
- func (p *Provider) GetMarkdown(ctx context.Context, service, path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Endpoint string `json:"endpoint"` AccessKeyID string `json:"accessKeyID"` SecretAccessKey string `json:"secretAccessKey"` Bucket string `json:"bucket"` UseSSL bool `json:"useSSL"` }
Config is the structure of the configuration for the s3 provider.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the Provider interface.
func New ¶
New returns a new local provider. The local provider can be used to access TechDocs from the local file system.
func (*Provider) GetIndexes ¶
GetIndexes returns a list indexes for all services.
Click to show internal directories.
Click to hide internal directories.