Documentation ¶
Index ¶
- Constants
- Variables
- func NewMFACodeBody(code string) []byte
- type ApiEnvelope
- type AuthFailure
- type Client
- type Errors
- type MFACode
- type MfaEnrollment
- type NotAccessible
- type NotFound
- type PostureResponse
- type PostureResponseDomain
- type PostureResponseMac
- type PostureResponseOs
- type PostureResponseProcess
- type PostureSubType
- type RestClient
Constants ¶
View Source
const ( PostureCheckTypeOs = "OS" PostureCheckTypeDomain = "DOMAIN" PostureCheckTypeProcess = "PROCESS" PostureCheckTypeMAC = "MAC" )
Variables ¶
View Source
var NotAuthorized = notAuthorized{}
Functions ¶
func NewMFACodeBody ¶ added in v0.15.12
Types ¶
type ApiEnvelope ¶ added in v0.15.12
type AuthFailure ¶
type AuthFailure struct {
// contains filtered or unexported fields
}
func (AuthFailure) Error ¶
func (e AuthFailure) Error() string
type Client ¶
type Client interface { Initialize() error GetIdentity() identity.Identity RestClient }
type MfaEnrollment ¶ added in v0.15.12
type NotAccessible ¶
type NotAccessible struct {
// contains filtered or unexported fields
}
func (NotAccessible) Error ¶
func (e NotAccessible) Error() string
type NotFound ¶ added in v0.13.35
type NotFound NotAccessible
type PostureResponse ¶ added in v0.14.5
type PostureResponse struct { Id string `json:"id"` TypeId string `json:"typeId"` PostureSubType `json:"-"` }
func (PostureResponse) MarshalJSON ¶ added in v0.14.5
func (response PostureResponse) MarshalJSON() ([]byte, error)
type PostureResponseDomain ¶ added in v0.14.5
type PostureResponseDomain struct {
Domain string `json:"domain"`
}
func (PostureResponseDomain) IsPostureSubType ¶ added in v0.14.5
func (p PostureResponseDomain) IsPostureSubType()
type PostureResponseMac ¶ added in v0.14.5
type PostureResponseMac struct {
MacAddresses []string `json:"macAddresses"`
}
func (PostureResponseMac) IsPostureSubType ¶ added in v0.14.5
func (p PostureResponseMac) IsPostureSubType()
type PostureResponseOs ¶ added in v0.14.5
type PostureResponseOs struct { Type string `json:"type"` Version string `json:"version"` Build string `json:"build"` }
func (PostureResponseOs) IsPostureSubType ¶ added in v0.14.5
func (p PostureResponseOs) IsPostureSubType()
type PostureResponseProcess ¶ added in v0.14.5
type PostureResponseProcess struct { IsRunning bool `json:"isRunning"` Hash string `json:"hash"` SignerFingerprints []string `json:"signerFingerprints"` }
func (PostureResponseProcess) IsPostureSubType ¶ added in v0.14.5
func (p PostureResponseProcess) IsPostureSubType()
type PostureSubType ¶ added in v0.14.5
type PostureSubType interface {
IsPostureSubType()
}
type RestClient ¶ added in v0.15.5
type RestClient interface { GetCurrentApiSession() *edge.ApiSession GetCurrentIdentity() (*edge.CurrentIdentity, error) Login(info map[string]interface{}) (*edge.ApiSession, error) Refresh() (*time.Time, error) GetServices() ([]*edge.Service, error) GetServiceTerminators(service *edge.Service, offset, limit int) ([]*edge.Terminator, int, error) IsServiceListUpdateAvailable() (bool, error) CreateSession(svcId string, kind edge.SessionType) (*edge.Session, error) RefreshSession(id string) (*edge.Session, error) SendPostureResponse(response PostureResponse) error SendPostureResponseBulk(responses []*PostureResponse) error AuthenticateMFA(code string) error VerifyMfa(code string) error EnrollMfa() (*MfaEnrollment, error) RemoveMfa(code string) error GenerateNewMfaRecoveryCodes(code string) error GetMfaRecoveryCodes(code string) ([]string, error) Shutdown() }
Click to show internal directories.
Click to hide internal directories.