vcf

package
v0.0.0-...-21a5b8d Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fthing

type Fthing struct {
	Name string
	Body string
}

type VCFSession

type VCFSession struct {
	FQDN               string           `json:"fqdn"`
	Domain             string           `json:"domain"`
	Base64AuthInfo     string           `json:"base64authinfo"`
	Logger             sl.ISimpleLogger `json:"-"`
	InsecureSkipVerify bool             `json:"insecureskipverify"`
}

func NewVCFSession

func NewVCFSession(FQDN string, Logger sl.ISimpleLogger) VCFSession

func (*VCFSession) BuildAuth

func (vmcfs *VCFSession) BuildAuth(Username string, Password string)

func (*VCFSession) GETResourceRequest

func (vmcfs *VCFSession) GETResourceRequest(Resource string) (*http.Response, bool, error)

func (*VCFSession) Load

func (vmcfs *VCFSession) Load(FilePath string, Log sl.ISimpleLogger) (*VCFSession, bool)

func (*VCFSession) LogMessage

func (vmcfs *VCFSession) LogMessage(cmd string, Message string)

func (*VCFSession) Save

func (vmcfs *VCFSession) Save(FilePath string, Log sl.ISimpleLogger) bool

func (*VCFSession) SendRequest

func (vmcfs *VCFSession) SendRequest(Resource string, ContentType string, methodin string, tosend io.Reader) (*http.Response, bool, error)

func (*VCFSession) UploadFile

func (vmcfs *VCFSession) UploadFile(Filepath string, Resource string, MethodIn string) (*http.Response, bool, error)

type VMUtil

type VMUtil struct {
	Session VCFSession
}

func (*VMUtil) TarAndZipFolder

func (util *VMUtil) TarAndZipFolder(roots []string, outputfilename string)

Jump to

Keyboard shortcuts

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