iohandler

package module
v0.0.0-...-e3ccce2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IO

type IO interface {
	Write(path string, object []byte, tags []types.Tag) error
	Read(path string) ([]byte, error)
	List(path string) ([]string, error)
	Count(path string) (int, error)
}

func NewIO

func NewIO(opt string) IO

type IOAwsS3

type IOAwsS3 struct{}

func (*IOAwsS3) Count

func (c *IOAwsS3) Count(path string) (int, error)
***************************************************************

* Count the objects with the prefix "path" from S3 ***************************************************************

func (*IOAwsS3) List

func (c *IOAwsS3) List(path string) ([]string, error)
***************************************************************

* List the objects with the prefix "path" from S3 ***************************************************************

func (*IOAwsS3) Read

func (c *IOAwsS3) Read(path string) ([]byte, error)
***************************************************************

* Read an object from S3 ***************************************************************

func (*IOAwsS3) Write

func (c *IOAwsS3) Write(path string, object []byte, tags []types.Tag) error
***************************************************************

* Write an object into S3 ***************************************************************

type IOAwsSSM

type IOAwsSSM struct{}

func (*IOAwsSSM) Count

func (c *IOAwsSSM) Count(path string) (int, error)
***************************************************************

* Count the parameters in the Parameter Store in * the path "path" ***************************************************************

func (*IOAwsSSM) List

func (c *IOAwsSSM) List(path string) ([]string, error)
***************************************************************

* List all the parameters from the parameter store with the * past "path" ***************************************************************

func (*IOAwsSSM) Read

func (c *IOAwsSSM) Read(path string) ([]byte, error)
***************************************************************

* Read a parameter from the Parameter Store ***************************************************************

func (*IOAwsSSM) Write

func (c *IOAwsSSM) Write(path string, object []byte, tags []types.Tag) error
***************************************************************

* Write a parameter into the parameter store. ***************************************************************

type IOAwsSecretManager

type IOAwsSecretManager struct {
	User string `json:"user"`
	Pass string `json:"password"`
}

func (*IOAwsSecretManager) Count

func (c *IOAwsSecretManager) Count(path string) (int, error)
***************************************************************

* Count the parameters in the Parameter Store in * the path "path" ***************************************************************

func (*IOAwsSecretManager) List

func (c *IOAwsSecretManager) List(path string) ([]string, error)
***************************************************************

* List all the parameters from the parameter store with the * past "path" ***************************************************************

func (*IOAwsSecretManager) Read

func (c *IOAwsSecretManager) Read(path string) ([]byte, error)
***************************************************************

* Read a parameter from the Parameter Store ***************************************************************

func (*IOAwsSecretManager) Write

func (c *IOAwsSecretManager) Write(path string, object []byte, tags []types.Tag) error
***************************************************************

* Write a parameter into the parameter store. ***************************************************************

type IOLocal

type IOLocal struct{}

func (*IOLocal) Count

func (c *IOLocal) Count(path string) (int, error)
***************************************************************

* Count the number of element in the path "path" ***************************************************************

func (*IOLocal) List

func (c *IOLocal) List(path string) ([]string, error)
***************************************************************

* List the elements in the directory "path" ***************************************************************

func (*IOLocal) Read

func (c *IOLocal) Read(path string) ([]byte, error)
***************************************************************

* Read a file from the destiny "path" ***************************************************************

func (*IOLocal) Write

func (c *IOLocal) Write(path string, object []byte, tag []types.Tag) error
***************************************************************

* Write a file in the path "dest". * It creates the folders in case they don't exist ***************************************************************

Jump to

Keyboard shortcuts

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