Documentation ¶
Index ¶
- type AddDeviceParams
- type AddGatewayAccessGroupIDParams
- type AddGatewayParams
- type AddGatewayRouteParams
- type AddSessionAccessGroupIDParams
- type AddSessionParams
- type DBTX
- type Device
- type Gateway
- type GatewayAccessGroupID
- type GatewayRoute
- type GetDeviceBySerialAndPlatformParams
- type GetGatewayRoutesRow
- type GetKolideIssuesForDeviceRow
- type GetKolideIssuesRow
- type GetMostRecentDeviceSessionRow
- type GetPeersRow
- type GetSessionByKeyRow
- type GetSessionsRow
- type KolideCheck
- type KolideIssue
- type Querier
- type Queries
- func (q *Queries) AddDevice(ctx context.Context, arg AddDeviceParams) error
- func (q *Queries) AddGateway(ctx context.Context, arg AddGatewayParams) error
- func (q *Queries) AddGatewayAccessGroupID(ctx context.Context, arg AddGatewayAccessGroupIDParams) error
- func (q *Queries) AddGatewayRoute(ctx context.Context, arg AddGatewayRouteParams) error
- func (q *Queries) AddSession(ctx context.Context, arg AddSessionParams) error
- func (q *Queries) AddSessionAccessGroupID(ctx context.Context, arg AddSessionAccessGroupIDParams) error
- func (q *Queries) Close() error
- func (q *Queries) DeleteGatewayAccessGroupIDs(ctx context.Context, gatewayName string) error
- func (q *Queries) DeleteGatewayRoutes(ctx context.Context, gatewayName string) error
- func (q *Queries) DeleteKolideIssuesForDevice(ctx context.Context, deviceID string) error
- func (q *Queries) GetDeviceByExternalID(ctx context.Context, externalID sql.NullString) (*Device, error)
- func (q *Queries) GetDeviceByID(ctx context.Context, id int64) (*Device, error)
- func (q *Queries) GetDeviceByPublicKey(ctx context.Context, publicKey string) (*Device, error)
- func (q *Queries) GetDeviceBySerialAndPlatform(ctx context.Context, arg GetDeviceBySerialAndPlatformParams) (*Device, error)
- func (q *Queries) GetDevices(ctx context.Context) ([]*Device, error)
- func (q *Queries) GetGatewayAccessGroupIDs(ctx context.Context, gatewayName string) ([]string, error)
- func (q *Queries) GetGatewayByName(ctx context.Context, name string) (*Gateway, error)
- func (q *Queries) GetGatewayRoutes(ctx context.Context, gatewayName string) ([]*GetGatewayRoutesRow, error)
- func (q *Queries) GetGateways(ctx context.Context) ([]*Gateway, error)
- func (q *Queries) GetKolideCheck(ctx context.Context, id int64) (*KolideCheck, error)
- func (q *Queries) GetKolideChecks(ctx context.Context) ([]*KolideCheck, error)
- func (q *Queries) GetKolideIssues(ctx context.Context) ([]*GetKolideIssuesRow, error)
- func (q *Queries) GetKolideIssuesForDevice(ctx context.Context, deviceID string) ([]*GetKolideIssuesForDeviceRow, error)
- func (q *Queries) GetLastUsedIPV6(ctx context.Context) (string, error)
- func (q *Queries) GetMostRecentDeviceSession(ctx context.Context, sessionDeviceID int64) (*GetMostRecentDeviceSessionRow, error)
- func (q *Queries) GetPeers(ctx context.Context) ([]*GetPeersRow, error)
- func (q *Queries) GetSessionByKey(ctx context.Context, sessionKey string) (*GetSessionByKeyRow, error)
- func (q *Queries) GetSessionGroupIDs(ctx context.Context, sessionKey string) ([]string, error)
- func (q *Queries) GetSessions(ctx context.Context) ([]*GetSessionsRow, error)
- func (q *Queries) RemoveExpiredSessions(ctx context.Context) error
- func (q *Queries) SetKolideCheck(ctx context.Context, arg SetKolideCheckParams) error
- func (q *Queries) SetKolideIssue(ctx context.Context, arg SetKolideIssueParams) error
- func (q *Queries) TruncateKolideIssues(ctx context.Context) error
- func (q *Queries) UpdateDevice(ctx context.Context, arg UpdateDeviceParams) error
- func (q *Queries) UpdateGateway(ctx context.Context, arg UpdateGatewayParams) error
- func (q *Queries) UpdateGatewayDynamicFields(ctx context.Context, arg UpdateGatewayDynamicFieldsParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Session
- type SessionAccessGroupID
- type SetKolideCheckParams
- type SetKolideIssueParams
- type UpdateDeviceParams
- type UpdateGatewayDynamicFieldsParams
- type UpdateGatewayParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddDeviceParams ¶
type AddGatewayParams ¶
type AddGatewayRouteParams ¶
type AddSessionParams ¶
type Device ¶
type Device struct { ID int64 Username string Serial string Platform string Healthy bool LastUpdated sql.NullString PublicKey string Ipv4 string Ipv6 string LastSeen sql.NullString ExternalID sql.NullString }
type GatewayAccessGroupID ¶
type GatewayRoute ¶
type GetGatewayRoutesRow ¶
type GetKolideIssuesRow ¶
type GetPeersRow ¶
type GetSessionByKeyRow ¶
type GetSessionsRow ¶
type KolideCheck ¶
type KolideIssue ¶
type Querier ¶
type Querier interface { AddDevice(ctx context.Context, arg AddDeviceParams) error AddGateway(ctx context.Context, arg AddGatewayParams) error AddGatewayAccessGroupID(ctx context.Context, arg AddGatewayAccessGroupIDParams) error AddGatewayRoute(ctx context.Context, arg AddGatewayRouteParams) error AddSession(ctx context.Context, arg AddSessionParams) error AddSessionAccessGroupID(ctx context.Context, arg AddSessionAccessGroupIDParams) error DeleteGatewayAccessGroupIDs(ctx context.Context, gatewayName string) error DeleteGatewayRoutes(ctx context.Context, gatewayName string) error DeleteKolideIssuesForDevice(ctx context.Context, deviceID string) error GetDeviceByExternalID(ctx context.Context, externalID sql.NullString) (*Device, error) GetDeviceByID(ctx context.Context, id int64) (*Device, error) GetDeviceByPublicKey(ctx context.Context, publicKey string) (*Device, error) GetDeviceBySerialAndPlatform(ctx context.Context, arg GetDeviceBySerialAndPlatformParams) (*Device, error) GetDevices(ctx context.Context) ([]*Device, error) GetGatewayAccessGroupIDs(ctx context.Context, gatewayName string) ([]string, error) GetGatewayByName(ctx context.Context, name string) (*Gateway, error) GetGatewayRoutes(ctx context.Context, gatewayName string) ([]*GetGatewayRoutesRow, error) GetGateways(ctx context.Context) ([]*Gateway, error) GetKolideCheck(ctx context.Context, id int64) (*KolideCheck, error) GetKolideChecks(ctx context.Context) ([]*KolideCheck, error) GetKolideIssues(ctx context.Context) ([]*GetKolideIssuesRow, error) GetKolideIssuesForDevice(ctx context.Context, deviceID string) ([]*GetKolideIssuesForDeviceRow, error) GetLastUsedIPV6(ctx context.Context) (string, error) GetMostRecentDeviceSession(ctx context.Context, sessionDeviceID int64) (*GetMostRecentDeviceSessionRow, error) GetPeers(ctx context.Context) ([]*GetPeersRow, error) GetSessionByKey(ctx context.Context, sessionKey string) (*GetSessionByKeyRow, error) GetSessionGroupIDs(ctx context.Context, sessionKey string) ([]string, error) GetSessions(ctx context.Context) ([]*GetSessionsRow, error) RemoveExpiredSessions(ctx context.Context) error SetKolideCheck(ctx context.Context, arg SetKolideCheckParams) error SetKolideIssue(ctx context.Context, arg SetKolideIssueParams) error TruncateKolideIssues(ctx context.Context) error UpdateDevice(ctx context.Context, arg UpdateDeviceParams) error UpdateGateway(ctx context.Context, arg UpdateGatewayParams) error UpdateGatewayDynamicFields(ctx context.Context, arg UpdateGatewayDynamicFieldsParams) error }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddDevice ¶
func (q *Queries) AddDevice(ctx context.Context, arg AddDeviceParams) error
func (*Queries) AddGateway ¶
func (q *Queries) AddGateway(ctx context.Context, arg AddGatewayParams) error
func (*Queries) AddGatewayAccessGroupID ¶
func (q *Queries) AddGatewayAccessGroupID(ctx context.Context, arg AddGatewayAccessGroupIDParams) error
func (*Queries) AddGatewayRoute ¶
func (q *Queries) AddGatewayRoute(ctx context.Context, arg AddGatewayRouteParams) error
func (*Queries) AddSession ¶
func (q *Queries) AddSession(ctx context.Context, arg AddSessionParams) error
func (*Queries) AddSessionAccessGroupID ¶
func (q *Queries) AddSessionAccessGroupID(ctx context.Context, arg AddSessionAccessGroupIDParams) error
func (*Queries) DeleteGatewayAccessGroupIDs ¶
func (*Queries) DeleteGatewayRoutes ¶
func (*Queries) DeleteKolideIssuesForDevice ¶
func (*Queries) GetDeviceByExternalID ¶
func (*Queries) GetDeviceByID ¶
func (*Queries) GetDeviceByPublicKey ¶
func (*Queries) GetDeviceBySerialAndPlatform ¶
func (*Queries) GetGatewayAccessGroupIDs ¶
func (*Queries) GetGatewayByName ¶
func (*Queries) GetGatewayRoutes ¶
func (*Queries) GetGateways ¶
func (*Queries) GetKolideCheck ¶
func (*Queries) GetKolideChecks ¶
func (q *Queries) GetKolideChecks(ctx context.Context) ([]*KolideCheck, error)
func (*Queries) GetKolideIssues ¶
func (q *Queries) GetKolideIssues(ctx context.Context) ([]*GetKolideIssuesRow, error)
func (*Queries) GetKolideIssuesForDevice ¶
func (*Queries) GetLastUsedIPV6 ¶
func (*Queries) GetMostRecentDeviceSession ¶
func (*Queries) GetSessionByKey ¶
func (*Queries) GetSessionGroupIDs ¶
func (*Queries) GetSessions ¶
func (q *Queries) GetSessions(ctx context.Context) ([]*GetSessionsRow, error)
func (*Queries) RemoveExpiredSessions ¶
func (*Queries) SetKolideCheck ¶
func (q *Queries) SetKolideCheck(ctx context.Context, arg SetKolideCheckParams) error
func (*Queries) SetKolideIssue ¶
func (q *Queries) SetKolideIssue(ctx context.Context, arg SetKolideIssueParams) error
func (*Queries) TruncateKolideIssues ¶
func (*Queries) UpdateDevice ¶
func (q *Queries) UpdateDevice(ctx context.Context, arg UpdateDeviceParams) error
func (*Queries) UpdateGateway ¶
func (q *Queries) UpdateGateway(ctx context.Context, arg UpdateGatewayParams) error
func (*Queries) UpdateGatewayDynamicFields ¶
func (q *Queries) UpdateGatewayDynamicFields(ctx context.Context, arg UpdateGatewayDynamicFieldsParams) error
type SessionAccessGroupID ¶
type SetKolideCheckParams ¶
type SetKolideIssueParams ¶
type UpdateDeviceParams ¶
type UpdateDeviceParams struct { ExternalID sql.NullString Healthy bool LastUpdated sql.NullString LastSeen sql.NullString Serial string Platform string }
Click to show internal directories.
Click to hide internal directories.