auth

package
v0.0.0-...-6f62517 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthTypeUsernamePassword = 1
	AuthTypeXAuthToken       = 2
	AuthTypeBearerToken      = 3
)
View Source
const (
	UNKNOWN = disc.UNKNOWN
	MSM     = disc.MSM
	EC      = disc.EC
	IDRAC   = disc.IDRAC
)
View Source
const (
	RESEND        = "resend"
	ADDSERVICE    = "addservice"
	DELETESERVICE = "deleteservice"
	TERMINATE     = "terminate"
	SPLUNKADDHEC  = "splunkaddhec"
	GETHECCONFIG  = "gethecconfig"
)
View Source
const (
	CommandQueue = "/authorization/command"
	EventQueue   = "/authorization"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationClient

type AuthorizationClient struct {
	Bus messagebus.Messagebus
}

func (*AuthorizationClient) AddService

func (d *AuthorizationClient) AddService(service Service) error

func (*AuthorizationClient) DeleteService

func (d *AuthorizationClient) DeleteService(service Service) error

func (*AuthorizationClient) GetHECConfig

func (d *AuthorizationClient) GetHECConfig()

func (*AuthorizationClient) GetService

func (d *AuthorizationClient) GetService(services chan<- *Service)

func (*AuthorizationClient) ResendAll

func (d *AuthorizationClient) ResendAll()

func (*AuthorizationClient) SendCommand

func (d *AuthorizationClient) SendCommand(command Command) error

func (*AuthorizationClient) SendCommandString

func (d *AuthorizationClient) SendCommandString(command string)

func (*AuthorizationClient) SplunkAddHEC

func (d *AuthorizationClient) SplunkAddHEC(SplunkHttp SplunkConfig) error

type AuthorizationService

type AuthorizationService struct {
	Bus messagebus.Messagebus
}

func (*AuthorizationService) ReceiveCommand

func (d *AuthorizationService) ReceiveCommand(commands chan<- *Command) error

func (*AuthorizationService) SendService

func (d *AuthorizationService) SendService(service Service) error

func (*AuthorizationService) Sendconfig

func (d *AuthorizationService) Sendconfig(config SplunkConfig) error

type Command

type Command struct {
	Command      string       `json:"command"`
	SplunkConfig SplunkConfig `json:"Splunkconfig",omitempty"`
	Service      Service      `json:"service,omitempty"`
}

type Service

type Service struct {
	ServiceType int               `json:"serviceType"`
	Ip          string            `json:"ip"`
	AuthType    int               `json:"authType"`
	Auth        map[string]string `json:"auth"`
}

type SplunkConfig

type SplunkConfig struct {
	Url   string `json:"url,omitempty"`
	Key   string `json:"key,omitempty"`
	Index string `json:"index,omitempty"`
}

Jump to

Keyboard shortcuts

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