minio

package
v0.0.0-...-2725d6f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRoleNotFound = errors.New("role not found")
)

Functions

func Backend

func Backend() *backend

Backend returns a configured minio backend

func Factory

Factory returns a configured instance of the minio backend

Types

type Config

type Config struct {
	Endpoint        string `json:"endpoint"`
	AccessKeyId     string `json:"accessKeyId"`
	SecretAccessKey string `json:"secretAccessKey"`
	UseSSL          bool   `json:"useSSL"`
	Configured      bool   `json:"is_configured"`
}

The stored plugin configuration

func DefaultConfig

func DefaultConfig() *Config

A default, empty configuration

func (*Config) Update

func (c *Config) Update(d *framework.FieldData) (bool, error)

Update the configuration with new values

type Role

type Role struct {
	Policy         string        `json:"policy"`
	UserNamePrefix string        `json:"user_name_prefix"`
	DefaultTTL     time.Duration `json:"default_ttl"`
	MaxTTL         time.Duration `json:"max_ttl"`
}

A role stored in the storage backend

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL