Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidStatusCode = errors.New("invalid status code")
)
View Source
var ErrInvalidWebHookStatusCode = errors.New("invalid webhook status code")
Functions ¶
This section is empty.
Types ¶
type CheckerClient ¶
type MockSecretScanClient ¶
type MockSecretScanClient struct {
// contains filtered or unexported fields
}
func (*MockSecretScanClient) CheckTokens ¶
type MockSecretScanNotifier ¶
type MockSecretScanNotifier struct {
// contains filtered or unexported fields
}
type MockSecretScaner ¶
type MockSecretScaner struct{}
func (*MockSecretScaner) CheckTokens ¶
func (m *MockSecretScaner) CheckTokens(ctx context.Context) error
type MockTokenRetriever ¶
type MockTokenRetriever struct {
// contains filtered or unexported fields
}
func (*MockTokenRetriever) ListTokens ¶
func (m *MockTokenRetriever) ListTokens( ctx context.Context, query *serviceaccounts.GetSATokensQuery, ) ([]apikey.APIKey, error)
func (*MockTokenRetriever) RevokeServiceAccountToken ¶
func (m *MockTokenRetriever) RevokeServiceAccountToken( ctx context.Context, orgID, serviceAccountID, tokenID int64, ) error
type SATokenRetriever ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Secret Scan Service is grafana's service for checking leaked keys.
func NewService ¶
func NewService(store SATokenRetriever, cfg *setting.Cfg) (*Service, error)
func (*Service) CheckTokens ¶
CheckTokens checks for leaked tokens.
Click to show internal directories.
Click to hide internal directories.