api

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotAuthorized = notAuthorized{}

Functions

This section is empty.

Types

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
}

func NewLazyClient added in v0.15.1

func NewLazyClient(config *config.Config, initCallback func(Client) error) Client

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

func (NotFound) Error added in v0.13.35

func (e NotFound) Error() string

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{}, configTypes []string) (*edge.ApiSession, error)
	Refresh() (*time.Time, error)
	GetServices() ([]*edge.Service, error)
	CreateSession(svcId string, kind edge.SessionType) (*edge.Session, error)
	RefreshSession(id string) (*edge.Session, error)
	SendPostureResponse(response PostureResponse) error
}

func NewClient

func NewClient(ctrl *url.URL, tlsCfg *tls.Config) (RestClient, error)

Jump to

Keyboard shortcuts

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