minio

package
v0.0.0-...-50cba93 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 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"`
}

func DefaultConfig

func DefaultConfig() *Config

func (*Config) Update

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

type Role

type Role struct {

	// Policy is the policy the created user will have on the
	// Minio server
	Policy string `json:"policy"`

	UserNamePrefix string `json:"user_name_prefix"`

	// DefaultTTL is the TTL which will be applied to keys if no
	// TTL is requested
	DefaultTTL time.Duration `json:"default_ttl"`

	// MaxTTL is the maximum any TTL can be for this role
	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