user

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceHaproxyUser

func DataSourceHaproxyUser() *schema.Resource

func ResourceHaproxyUser

func ResourceHaproxyUser() *schema.Resource

Types

type ConfigUser

type ConfigUser struct {
	Username string
	Password string
	BaseURL  string
	SSL      bool
}

Config defines variable for haproxy configuration

func (*ConfigUser) AddUsersConfiguration

func (c *ConfigUser) AddUsersConfiguration(payload []byte, TransactionID string, UserList string) (*http.Response, []byte, error)

AddUsersConfiguration adds a Users configuration.

func (*ConfigUser) DeleteUsersConfiguration

func (c *ConfigUser) DeleteUsersConfiguration(UsersName string, TransactionID string, UserList string) (*http.Response, []byte, error)

DeleteUsersConfiguration deletes a Users configuration.

func (*ConfigUser) GetAUsersConfiguration

func (c *ConfigUser) GetAUsersConfiguration(UsersName string, TransactionID string, UserList string) (*http.Response, []byte, error)

GetAUsersConfiguration returns the configuration of a Users.

func (*ConfigUser) UpdateUsersConfiguration

func (c *ConfigUser) UpdateUsersConfiguration(UsersName string, payload []byte, TransactionID string, UserList string) (*http.Response, []byte, error)

UpdateUsersConfiguration updates a Users configuration.

type UserPayload

type UserPayload struct {
	Username       string `json:"username"`
	Password       string `json:"password"`
	SecurePassword bool   `json:"secure_password"`
	Groups         string `json:"groups"`
}

Jump to

Keyboard shortcuts

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