ltm

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LTM

type LTM struct {
	Service    *bigip.BigIP
	UploadPath string
	Host       string
}

LTM is struct containing login info

func NewSession

func NewSession(host, user, pass, uploadPath string) *LTM

NewSession creates a new LTM session

func (*LTM) CreateClientSSLProfile

func (l *LTM) CreateClientSSLProfile(ClientSSLProfileName, DefaultsFrom, Chain, CipherGroup, Ciphers, thisYear string) error

CreateClientSSLProfile creates cert and key on a client-ssl profile

func (*LTM) GetClientSSLProfile

func (l *LTM) GetClientSSLProfile(name string) (*bigip.ClientSSLProfile, error)

GetClientSSLProfile gets a client ssl profile from ltm

func (*LTM) ImportCertificate

func (l *LTM) ImportCertificate(name, thisYear string) error

ImportCertificate imports certificate to System SSL

func (*LTM) ImportKey

func (l *LTM) ImportKey(name, thisYear string) error

ImportKey Imports Key to System SSL

func (*LTM) ListClientSSLProfiles

func (l *LTM) ListClientSSLProfiles() ([]string, error)

ListClientSSLProfiles lists the client ssl profiles

func (*LTM) ModifyClientSSLProfile

func (l *LTM) ModifyClientSSLProfile(ClientSSLProfileName, DefaultsFrom, Chain, CipherGroup, Ciphers, thisYear string) error

ModifyClientSSLProfile update cert and key on a client-ssl profile

func (*LTM) RemoveCertificate added in v0.1.1

func (l *LTM) RemoveCertificate(name string) error

RemoveCertificate removes Certificate from System SSL

func (*LTM) RemoveClientSSLProfile added in v0.1.1

func (l *LTM) RemoveClientSSLProfile(ClientSSLProfileName string) error

DeleteClientSSLProfile update cert and key on a client-ssl profile

func (*LTM) RemoveKey added in v0.1.1

func (l *LTM) RemoveKey(name string) error

RemoveKey removes Key from System SSL

func (*LTM) UploadFile

func (l *LTM) UploadFile(file, name string) error

UploadFile uploads a file to an ltm

type LTMIface

type LTMIface interface {
	ListClientSSLProfiles() ([]string, error)
	GetClientSSLProfile(string) (*bigip.ClientSSLProfile, error)
	UploadFile(string, string) error
	ImportKey(string, string) error
	ImportCertificate(string, string) error
	ModifyClientSSLProfile(string, string, string, string, string, string) error
	CreateClientSSLProfile(string, string, string, string, string, string) error
	RemoveClientSSLProfile(string) error
	RemoveKey(string) error
	RemoveCertificate(string) error
}

LTMIface is abstraction for testing

Jump to

Keyboard shortcuts

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