Documentation ¶
Index ¶
- type InKeySearchOptions
- type IntegrationKey
- type Store
- func (s *Store) Authorize(ctx context.Context, tok authtoken.Token, t Type) (context.Context, error)
- func (s *Store) Create(ctx context.Context, i *IntegrationKey) (*IntegrationKey, error)
- func (s *Store) CreateKeyTx(ctx context.Context, tx *sql.Tx, i *IntegrationKey) (*IntegrationKey, error)
- func (s *Store) Delete(ctx context.Context, id string) error
- func (s *Store) DeleteManyTx(ctx context.Context, tx *sql.Tx, ids []string) error
- func (s *Store) DeleteTx(ctx context.Context, tx *sql.Tx, id string) error
- func (s *Store) FindAllByService(ctx context.Context, serviceID string) ([]IntegrationKey, error)
- func (s *Store) FindOne(ctx context.Context, id string) (*IntegrationKey, error)
- func (s *Store) GetServiceID(ctx context.Context, id string, t Type) (string, error)
- func (s *Store) Search(ctx context.Context, opts *InKeySearchOptions) ([]IntegrationKey, error)
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InKeySearchOptions ¶ added in v0.30.1
type InKeySearchOptions struct { Search string `json:"s,omitempty"` After string `json:"a,omitempty"` // Omit specifies a list of key ids to exclude from the results. Omit []string `json:"o,omitempty"` Limit int `json:"-"` }
InKeySearchOptions allow filtering and paginating the list of rotations.
type IntegrationKey ¶
type IntegrationKey struct { ID string `json:"id"` Name string `json:"name"` Type Type `json:"type"` ServiceID string `json:"service_id"` }
func (IntegrationKey) Normalize ¶
func (i IntegrationKey) Normalize() (*IntegrationKey, error)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Create ¶
func (s *Store) Create(ctx context.Context, i *IntegrationKey) (*IntegrationKey, error)
func (*Store) CreateKeyTx ¶
func (s *Store) CreateKeyTx(ctx context.Context, tx *sql.Tx, i *IntegrationKey) (*IntegrationKey, error)
func (*Store) DeleteManyTx ¶
func (*Store) FindAllByService ¶
func (*Store) GetServiceID ¶
func (*Store) Search ¶ added in v0.30.1
func (s *Store) Search(ctx context.Context, opts *InKeySearchOptions) ([]IntegrationKey, error)
Click to show internal directories.
Click to hide internal directories.