_infrastructure

package
v0.4.1-beta Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateADRDirectoryRepository

func CreateADRDirectoryRepository(directory string) adr.Repository

CreateADRDirectoryRepository creates an instance of domain.Repository repository that finds ADRs in a directory

func CreateConfigFileManager

func CreateConfigFileManager(directory string) config.Manager

CreateConfigFileManager creates an instance of domain.Manager that manages the configuration in a config file

func CreateCustomTemplateContentFileReader

func CreateCustomTemplateContentFileReader(
	config config.Config,
) template.CustomContentReader

CreateCustomTemplateContentFileReader creates an domain.CustomContentReader that reads a template content from a file

func CreateFileADRWriter

func CreateFileADRWriter(directory string) adr.Writer

CreateFileADRWriter creates a domain.Writer instance that persist ADR Files in a directory

func CreateTemplateFileWriter

func CreateTemplateFileWriter(config config.Config) template.Writer

CreateTemplateFileWriter creates an domain.Writer that writes the template content in a file

func FilterADR

func FilterADR(adr adr.ADR, filterParams map[string][]string) bool

func GetFileContent

func GetFileContent(filepath string) (string, error)

GetFileContent get the content of a file

func ParseFilterParams

func ParseFilterParams(filterQuery string) (map[string][]string, error)

func WriteFile

func WriteFile(filename string, content string) error

WriteFile writes a file in disk, overwriting the previous content

Types

This section is empty.

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

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