Versions in this module Expand all Collapse all v4 v4.0.2 Jul 25, 2022 v4.0.1 Jul 25, 2022 Changes in this version + func CreateMap(name string, file io.Reader) (*models.Map, error) + func ParseACLFileEntries(output string, hasID bool) (models.ACLFilesEntries, error) + func ParseMapEntries(output string, hasID bool) models.MapEntries + func ServerHealthValid(health string) bool + func ServerStateValid(state string) bool + func ServerWeightValid(weight string) bool + type ACLs interface + AddACLAtomic func(aclID string, entries models.ACLFilesEntries) error + AddACLFileEntry func(id, value string) error + DeleteACLFileEntry func(id, value string) error + GetACLFile func(id string) (files *models.ACLFile, err error) + GetACLFileEntry func(id, value string) (fileEntry *models.ACLFileEntry, err error) + GetACLFiles func() (files models.ACLFiles, err error) + GetACLFilesEntries func(id string) (files models.ACLFilesEntries, err error) + type CrtList struct + File string + type CrtListEntries []*CrtListEntry + func ParseCrtListEntries(output string) (CrtListEntries, error) + type CrtListEntry struct + File string + LineNumber int + SNIFilter []string + SSLBindConfig string + type CrtLists []*CrtList + type Frontend interface + SetFrontendMaxConn func(frontend string, maxconn int) error + type HAProxyMock struct + func NewHAProxyMock(t *testing.T) *HAProxyMock + func (haproxy *HAProxyMock) SetResponses(responses *map[string]string) + func (haproxy *HAProxyMock) Start() + func (haproxy *HAProxyMock) Stop() + type HAProxyVersion struct + Commit string + Major int + Minor int + Patch int + Version string + func (v *HAProxyVersion) IsBiggerOrEqual(minimumVersion HAProxyVersion) bool + func (v *HAProxyVersion) ParseHAProxyVersion(version string) error + type Info interface + GetInfo func() (models.ProcessInfos, error) + GetStats func() models.NativeStats + GetVersion func() (HAProxyVersion, error) + type Maps interface + AddMapEntry func(name, key, value string) error + AddMapPayload func(name, payload string) error + AddMapPayloadVersioned func(name string, entries models.MapEntries) error + ClearMap func(name string, forceDelete bool) error + CommitMap func(version, name string) error + CreateMap func(file io.Reader, header multipart.FileHeader) (*models.Map, error) + DeleteMapEntry func(name, id string) error + GetMap func(name string) (*models.Map, error) + GetMapEntry func(name, id string) (*models.MapEntry, error) + GetMapsDir func() (string, error) + GetMapsPath func(name string) (string, error) + ParseMapEntries func(output string) models.MapEntries + ParseMapEntriesFromFile func(inputFile io.Reader, hasID bool) models.MapEntries + PrepareMap func(name string) (version string, err error) + SetMapEntry func(name, id, value string) error + ShowMapEntries func(name string) (models.MapEntries, error) + ShowMaps func() (models.Maps, error) + type Raw interface + ExecuteRaw func(command string) ([]string, error) + type Runtime interface + func New(ctx context.Context, opt ...options.RuntimeOption) (Runtime, error) + type Servers interface + DisableAgentCheck func(backend, server string) error + DisableServer func(backend, server string) error + EnableAgentCheck func(backend, server string) error + EnableServer func(backend, server string) error + GetServerState func(backend, server string) (*models.RuntimeServer, error) + GetServersState func(backend string) (models.RuntimeServers, error) + SetServerAddr func(backend, server string, ip string, port int) error + SetServerAgentAddr func(backend, server string, addr string) error + SetServerAgentSend func(backend, server string, send string) error + SetServerCheckPort func(backend, server string, port int) error + SetServerHealth func(backend, server string, health string) error + SetServerState func(backend, server string, state string) error + SetServerWeight func(backend, server string, weight string) error + type SingleRuntime struct + func (s *SingleRuntime) AbortCertEntry(storageName string) error + func (s *SingleRuntime) AddACLFileEntry(aclID, value string) error + func (s *SingleRuntime) AddACLVersioned(version, aclID, value string) error + func (s *SingleRuntime) AddCrtListEntry(crtList string, entry CrtListEntry) error + func (s *SingleRuntime) AddMapEntry(name, key, value string) error + func (s *SingleRuntime) AddMapEntryVersioned(version, name, key, value string) error + func (s *SingleRuntime) AddMapPayload(name, payload string) error + func (s *SingleRuntime) AddMapPayloadVersioned(version, name, payload string) error + func (s *SingleRuntime) ClearMap(name string) error + func (s *SingleRuntime) ClearMapVersioned(name, version string) error + func (s *SingleRuntime) CommitACL(version, aclID string) error + func (s *SingleRuntime) CommitCertEntry(storageName string) error + func (s *SingleRuntime) CommitMap(version, name string) error + func (s *SingleRuntime) DeleteACLFileEntry(aclID, value string) error + func (s *SingleRuntime) DeleteCertEntry(storageName string) error + func (s *SingleRuntime) DeleteCrtListEntry(crtList, certFile string, lineNumber int) error + func (s *SingleRuntime) DeleteMapEntry(name, id string) error + func (s *SingleRuntime) DisableAgentCheck(backend, server string) error + func (s *SingleRuntime) DisableServer(backend, server string) error + func (s *SingleRuntime) EnableAgentCheck(backend, server string) error + func (s *SingleRuntime) EnableServer(backend, server string) error + func (s *SingleRuntime) Execute(command string) error + func (s *SingleRuntime) ExecuteRaw(command string) (string, error) + func (s *SingleRuntime) ExecuteWithResponse(command string) (string, error) + func (s *SingleRuntime) GetACL(storageName string) (*models.ACLFile, error) + func (s *SingleRuntime) GetACLFileEntry(aclID, value string) (*models.ACLFileEntry, error) + func (s *SingleRuntime) GetCert(storageName string) (*models.SslCertificate, error) + func (s *SingleRuntime) GetCrtList(file string) (*CrtList, error) + func (s *SingleRuntime) GetInfo() models.ProcessInfo + func (s *SingleRuntime) GetMap(name string) (*models.Map, error) + func (s *SingleRuntime) GetMapEntry(name, id string) (*models.MapEntry, error) + func (s *SingleRuntime) GetServerState(backend, server string) (*models.RuntimeServer, error) + func (s *SingleRuntime) GetServersState(backend string) (models.RuntimeServers, error) + func (s *SingleRuntime) GetStats() *models.NativeStatsCollection + func (s *SingleRuntime) GetTableEntries(name string, filter []string, key string) (models.StickTableEntries, error) + func (s *SingleRuntime) Init(ctx context.Context, socketPath string, worker int, process int) error + func (s *SingleRuntime) NewCertEntry(storageName string) error + func (s *SingleRuntime) PrepareACL(aclID string) (version string, err error) + func (s *SingleRuntime) PrepareMap(name string) (version string, err error) + func (s *SingleRuntime) SetCertEntry(storageName string, payload string) error + func (s *SingleRuntime) SetFrontendMaxConn(frontend string, maxconn int) error + func (s *SingleRuntime) SetMapEntry(name, id, value string) error + func (s *SingleRuntime) SetServerAddr(backend, server string, ip string, port int) error + func (s *SingleRuntime) SetServerAgentAddr(backend, server string, addr string) error + func (s *SingleRuntime) SetServerAgentSend(backend, server string, send string) error + func (s *SingleRuntime) SetServerCheckPort(backend, server string, port int) error + func (s *SingleRuntime) SetServerHealth(backend, server string, health string) error + func (s *SingleRuntime) SetServerState(backend, server string, state string) error + func (s *SingleRuntime) SetServerWeight(backend, server string, weight string) error + func (s *SingleRuntime) SetTableEntry(table, key string, dataType models.StickTableEntry) error + func (s *SingleRuntime) ShowACLFileEntries(storageName string) (models.ACLFilesEntries, error) + func (s *SingleRuntime) ShowACLS() (models.ACLFiles, error) + func (s *SingleRuntime) ShowCertEntry(storageName string) (*models.SslCertEntry, error) + func (s *SingleRuntime) ShowCerts() (models.SslCertificates, error) + func (s *SingleRuntime) ShowCrtListEntries(file string) (CrtListEntries, error) + func (s *SingleRuntime) ShowCrtLists() (CrtLists, error) + func (s *SingleRuntime) ShowMapEntries(name string) (models.MapEntries, error) + func (s *SingleRuntime) ShowMapEntriesVersioned(name, version string) (models.MapEntries, error) + func (s *SingleRuntime) ShowMaps() (models.Maps, error) + func (s *SingleRuntime) ShowTable(name string) (*models.StickTable, error) + func (s *SingleRuntime) ShowTables() (models.StickTables, error) + type Tables interface + GetTableEntries func(name string, process int, filter []string, key string) (models.StickTableEntries, error) + SetTableEntry func(table, key string, dataType models.StickTableEntry, process int) error + ShowTable func(name string, process int) (*models.StickTable, error) + ShowTables func(process int) (models.StickTables, error) + type Task struct + type TaskResponse struct Other modules containing this package github.com/theunknownport/client-native