Documentation ¶
Index ¶
- type GetBastionRequest
- type GetBastionResponse
- type ListBastionsRequest
- type ListBastionsResponse
- type Postgres
- func (pg *Postgres) GetBastion(request *GetBastionRequest) (*GetBastionResponse, error)
- func (pg *Postgres) GetPendingTrackingStates(inactiveInterval string) (*TrackingStateResponse, error)
- func (pg *Postgres) ListBastionStates(customers []string, filters ...*opsee.Filter) (*TrackingStateResponse, error)
- func (pg *Postgres) ListBastions(request *ListBastionsRequest) (*ListBastionsResponse, error)
- func (pg *Postgres) ListTrackingStates(offset int, limit int) (*TrackingStateResponse, error)
- func (pg *Postgres) PutBastion(bastion *com.Bastion) error
- func (pg *Postgres) PutRegion(region *schema.Region) error
- func (pg *Postgres) UpdateBastion(bastion *com.Bastion) error
- func (pg *Postgres) UpdateTrackingSeen(bastionIDs []string, customerIDs []string) error
- func (pg *Postgres) UpdateTrackingState(bastionID string, newState string) error
- type Store
- type TrackingState
- type TrackingStateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetBastionRequest ¶
type GetBastionResponse ¶
type ListBastionsRequest ¶
type ListBastionsResponse ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func (*Postgres) GetBastion ¶
func (pg *Postgres) GetBastion(request *GetBastionRequest) (*GetBastionResponse, error)
func (*Postgres) GetPendingTrackingStates ¶
func (pg *Postgres) GetPendingTrackingStates(inactiveInterval string) (*TrackingStateResponse, error)
func (*Postgres) ListBastionStates ¶
func (*Postgres) ListBastions ¶
func (pg *Postgres) ListBastions(request *ListBastionsRequest) (*ListBastionsResponse, error)
func (*Postgres) ListTrackingStates ¶
func (pg *Postgres) ListTrackingStates(offset int, limit int) (*TrackingStateResponse, error)
func (*Postgres) UpdateTrackingSeen ¶
type Store ¶
type Store interface { PutBastion(*com.Bastion) error UpdateBastion(*com.Bastion) error PutRegion(*schema.Region) error GetBastion(*GetBastionRequest) (*GetBastionResponse, error) ListBastions(*ListBastionsRequest) (*ListBastionsResponse, error) UpdateTrackingSeen([]string, []string) error GetPendingTrackingStates(string) (*TrackingStateResponse, error) ListTrackingStates(int, int) (*TrackingStateResponse, error) ListBastionStates([]string, ...*opsee.Filter) (*TrackingStateResponse, error) UpdateTrackingState(string, string) error }
func NewPostgres ¶
type TrackingState ¶
type TrackingStateResponse ¶
type TrackingStateResponse struct {
States []*TrackingState
}
Click to show internal directories.
Click to hide internal directories.