parser

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	entity.Profile
}

func NewConfig

func NewConfig(opts ...Option) *Config

func (*Config) AddStringToConfig

func (c *Config) AddStringToConfig(inFile *os.File) string

func (*Config) CheckConfigUseFiles

func (c *Config) CheckConfigUseFiles() bool

func (*Config) CheckStringAuthUserPass

func (c *Config) CheckStringAuthUserPass() bool

func (*Config) GetAuthpathFileName

func (c *Config) GetAuthpathFileName() string

func (*Config) GetBody

func (c *Config) GetBody() string

func (*Config) GetUserAndPass

func (c *Config) GetUserAndPass() (string, string)

func (*Config) MergeCertsAndKeys

func (c *Config) MergeCertsAndKeys(key string) string

func (*Config) RemoveCertsAndKeys

func (c *Config) RemoveCertsAndKeys()

func (*Config) RemoveCommentLines

func (c *Config) RemoveCommentLines()

func (*Config) RemoveComments

func (c *Config) RemoveComments() string

func (*Config) RemoveEmptyString

func (c *Config) RemoveEmptyString()

func (*Config) RemoveNotCertsAndKeys

func (c *Config) RemoveNotCertsAndKeys()

func (*Config) RemoveSpaceLines

func (c *Config) RemoveSpaceLines()

func (*Config) SearchFilesPaths

func (c *Config) SearchFilesPaths() map[string]string

func (*Config) SetBody

func (c *Config) SetBody(body string)

func (*Config) SetPath

func (c *Config) SetPath(path string)

type Option

type Option func(*Config)

func WithBody

func WithBody(body string) Option

func WithPath

func WithPath(path string) Option

Jump to

Keyboard shortcuts

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