credentials

package
v0.0.140 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package credentials provides functions to store and read content of some files in environment variables

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Key string
}

func (*Data) GetBytes

func (d *Data) GetBytes() ([]byte, error)

func (*Data) GetFile

func (d *Data) GetFile() (string, error)

func (*Data) GetString

func (d *Data) GetString() (string, error)

type EnvCred

type EnvCred interface {
	GetBytes() ([]byte, error)
	GetString() (string, error)
	GetFile() (string, error)
}

func New

func New(key string) EnvCred

Jump to

Keyboard shortcuts

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