internal

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendFile

func AppendFile(fileName string, zipw *zip.Writer) error

func AskInput

func AskInput(Message string, PageSize int) (string, error)

func AskMultiSelect

func AskMultiSelect(Message string, Options []string) ([]string, error)

func AskSelect

func AskSelect(Message string, Options []string) (string, error)

func CountPemBlock added in v1.0.0

func CountPemBlock(bytes []byte) int

func CrtToCertificate added in v1.3.4

func CrtToCertificate(FileName string, bytes []byte) error

func DistinguishCertificate

func DistinguishCertificate(p *Pem, _ *CertFile, pemBlockCount int) (string, error)

func DistinguishCertificateWithConnection added in v1.3.1

func DistinguishCertificateWithConnection(cert *x509.Certificate) string

func DownloadCertificate added in v1.3.3

func DownloadCertificate(url string, out string) error

func GetCertExtension

func GetCertExtension(c *CertFile) string

func GetCertificate added in v1.3.1

func GetCertificate(domain, ip string) error

func GetCertificateInfo added in v1.0.3

func GetCertificateInfo(ip string, domain string) error

func GetHost added in v1.2.11

func GetHost(domainName string) error

func GetRecordIPv4 added in v1.0.5

func GetRecordIPv4(domainName string) ([]string, error)

func GetSubjectCNandIssuerCN added in v1.4.6

func GetSubjectCNandIssuerCN(pem *pem.Block) ([]string, error)

func ParsingYaml added in v1.3.3

func ParsingYaml(yamlObject *RootYaml) error

func PrintFunc added in v1.0.0

func PrintFunc(field, value string)

func PrintSplitFunc added in v1.0.0

func PrintSplitFunc(field, value string)

func PrivateToRsaPrivate added in v1.0.5

func PrivateToRsaPrivate(newFileName string, pemBlock *pem.Block) error

func SetCertExtension

func SetCertExtension(c *CertFile, file string)

func SetTransport added in v1.0.3

func SetTransport(domainName, ip string) http.Transport

func UnZip added in v1.0.4

func UnZip(targetDirectory, newFileName string) error

Types

type Answer

type Answer struct {
	Name string
}

type AnswerList

type AnswerList struct {
	Name []string
}

type CertFile

type CertFile struct {
	Name      []string
	Extension string
}

func DirGrepX509 added in v1.0.4

func DirGrepX509() (*CertFile, error)

type Connection added in v1.0.3

type Connection struct {
	// contains filtered or unexported fields
}

type ExtensionX509 added in v1.0.4

type ExtensionX509 struct {
	// contains filtered or unexported fields
}

type ExtensionZip added in v1.0.4

type ExtensionZip struct {
	// contains filtered or unexported fields
}

type Md5

type Md5 struct {
	Certificate   string
	RsaPrivateKey string
}

func GetMd5FromCertificate

func GetMd5FromCertificate(p *Pem) (*Md5, error)

func GetMd5FromRsaPrivateKey

func GetMd5FromRsaPrivateKey(p *Pem) (*Md5, error)

type Metadata added in v1.3.3

type Metadata struct {
	Name string `yaml:"name"`
	Url  string `yaml:"url"`
}

type Pem

type Pem struct {
	Type  string
	Data  []byte
	Block *pem.Block
}

func GetPemType

func GetPemType(file string) (*Pem, error)

type ReturnType

type ReturnType interface {
	Answer | AnswerList
}

type RootYaml added in v1.3.1

type RootYaml struct {
	Root YamlData `yaml:"root"`
}

type Wrapper

type Wrapper[T any] struct {
	// contains filtered or unexported fields
}

type YamlData added in v1.3.1

type YamlData struct {
	LastModified int        `yaml:"lastModified"`
	Metadata     []Metadata `yaml:"metadata"`
}

func (YamlData) FindURL added in v1.3.3

func (y YamlData) FindURL(name string) string

func (YamlData) GetNameListOwnURL added in v1.3.3

func (y YamlData) GetNameListOwnURL() []string

func (YamlData) GetURLListOwnURL added in v1.3.3

func (y YamlData) GetURLListOwnURL() []string

type ZipFile added in v1.0.4

type ZipFile struct {
	Name []string
}

func DirGrepZip added in v1.0.4

func DirGrepZip() (*ZipFile, error)

Jump to

Keyboard shortcuts

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