internal/

directory
v0.0.66 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0

Directories

Path Synopsis
Package assets contains the static assets.
Package assets contains the static assets.
Package auth contains the authentication logic for the control plane
Package auth contains the authentication logic for the control plane
jwt
Package jwt provides the logic for reading and validating JWT tokens
Package jwt provides the logic for reading and validating JWT tokens
jwt/mock
Package mock_jwt is a generated GoMock package.
Package mock_jwt is a generated GoMock package.
jwt/noop
Package noop provides a no-op implementation of the Validator interface
Package noop provides a no-op implementation of the Validator interface
keycloak
Package keycloak provides an implementation of the Keycloak IdentityProvider.
Package keycloak provides an implementation of the Keycloak IdentityProvider.
keycloak/client
Package client provides primitives to interact with the openapi HTTP API.
Package client provides primitives to interact with the openapi HTTP API.
mock
Package mock_auth is a generated GoMock package.
Package mock_auth is a generated GoMock package.
Package authz provides the authorization utilities for minder
Package authz provides the authorization utilities for minder
mock
Package mock provides a no-op implementation of the minder the authorization client
Package mock provides a no-op implementation of the minder the authorization client
Package config contains the configuration for the minder cli and server
Package config contains the configuration for the minder cli and server
client
Package client contains the configuration for the minder cli
Package client contains the configuration for the minder cli
reminder
Package reminder contains configuration options for the reminder service.
Package reminder contains configuration options for the reminder service.
server
Package server contains a centralized structure for all configuration options.
Package server contains a centralized structure for all configuration options.
Package constants contains constants used throughout the application.
Package constants contains constants used throughout the application.
Package controlplane contains the gRPC server implementation for the control plane
Package controlplane contains the gRPC server implementation for the control plane
metrics
Package metrics defines the primitives available for the controlplane metrics
Package metrics defines the primitives available for the controlplane metrics
Package crypto provides cryptographic functions
Package crypto provides cryptographic functions
algorithms
Package algorithms contains implementations of various crypto algorithms for the crypto engine.
Package algorithms contains implementations of various crypto algorithms for the crypto engine.
keystores
Package keystores contains logic for loading encryption keys from a keystores
Package keystores contains logic for loading encryption keys from a keystores
keystores/mock
Package mock_keystores is a generated GoMock package.
Package mock_keystores is a generated GoMock package.
mock
Package mock_crypto is a generated GoMock package.
Package mock_crypto is a generated GoMock package.
db
embedded
Package embedded provides a test-only embedded Postgres database for testing queries.
Package embedded provides a test-only embedded Postgres database for testing queries.
fixtures
Package fixtures contains code for creating DB fixtures and is used in various parts of the code.
Package fixtures contains code for creating DB fixtures and is used in various parts of the code.
Package eea provides objects and event handlers for the EEA.
Package eea provides objects and event handlers for the EEA.
Package email provides the email utilities for minder
Package email provides the email utilities for minder
awsses
Package awsses provides the email utilities for minder
Package awsses provides the email utilities for minder
noop
Package noop provides a noop email utilities for minder
Package noop provides a noop email utilities for minder
Package engine provides an implementation of the profile-engine-related objects, interfaces and functionality.
Package engine provides an implementation of the profile-engine-related objects, interfaces and functionality.
actions
Package actions provide necessary interfaces and implementations for processing actions, such as remediation and alerts.
Package actions provide necessary interfaces and implementations for processing actions, such as remediation and alerts.
actions/alert
Package alert provides necessary interfaces and implementations for processing alerts.
Package alert provides necessary interfaces and implementations for processing alerts.
actions/alert/noop
Package noop provides a fallback alert engine for cases where no alert is set.
Package noop provides a fallback alert engine for cases where no alert is set.
actions/alert/security_advisory
Package security_advisory provides necessary interfaces and implementations for creating alerts of type security advisory.
Package security_advisory provides necessary interfaces and implementations for creating alerts of type security advisory.
actions/remediate
Package remediate provides necessary interfaces and implementations for remediating rules.
Package remediate provides necessary interfaces and implementations for remediating rules.
actions/remediate/gh_branch_protect
Package gh_branch_protect provides the github branch protection remediation engine
Package gh_branch_protect provides the github branch protection remediation engine
actions/remediate/noop
Package noop provides a fallback remediation engine for cases where no remediation is set.
Package noop provides a fallback remediation engine for cases where no remediation is set.
actions/remediate/pull_request
Package pull_request provides the pull request remediation engine
Package pull_request provides the pull request remediation engine
actions/remediate/rest
Package rest provides the REST remediation engine
Package rest provides the REST remediation engine
engcontext
Package engcontext defines the EngineContext type.
Package engcontext defines the EngineContext type.
entities
Package entities contains internal helper functions to deal with, validate and print the Entity protobuf enum.
Package entities contains internal helper functions to deal with, validate and print the Entity protobuf enum.
errors
Package errors provides errors for the evaluator engine
Package errors provides errors for the evaluator engine
eval
Package eval provides necessary interfaces and implementations for evaluating rules.
Package eval provides necessary interfaces and implementations for evaluating rules.
eval/homoglyphs/application
Package application contains the application logic for the homoglyphs rule type
Package application contains the application logic for the homoglyphs rule type
eval/homoglyphs/communication
Package communication contains the communication logic for the homoglyphs rule type
Package communication contains the communication logic for the homoglyphs rule type
eval/homoglyphs/domain
Package domain contains the domain logic for the homoglyphs rule type
Package domain contains the domain logic for the homoglyphs rule type
eval/homoglyphs/domain/resources
Package resources contains resources used by the homoglyphs evaluators.
Package resources contains resources used by the homoglyphs evaluators.
eval/homoglyphs/util
Package util contains utility functions for the homoglyphs evaluation engine
Package util contains utility functions for the homoglyphs evaluation engine
eval/jq
Package jq provides the jq profile evaluator
Package jq provides the jq profile evaluator
eval/pr_actions
Package pr_actions contains shared code to take on PRs
Package pr_actions contains shared code to take on PRs
eval/rego
Package rego provides the rego rule evaluator
Package rego provides the rego rule evaluator
eval/templates
Package templates contains template strings for evaluation details.
Package templates contains template strings for evaluation details.
eval/trusty
Package trusty provides an evaluator that uses the trusty API
Package trusty provides an evaluator that uses the trusty API
eval/vulncheck
Package vulncheck provides the vulnerability check evaluator
Package vulncheck provides the vulnerability check evaluator
ingestcache
Package ingestcache a cache that is used to cache the results of ingesting data.
Package ingestcache a cache that is used to cache the results of ingesting data.
ingester
Package ingester provides necessary interfaces and implementations for ingesting data for rules.
Package ingester provides necessary interfaces and implementations for ingesting data for rules.
ingester/artifact
Package artifact provides the artifact ingestion engine
Package artifact provides the artifact ingestion engine
ingester/builtin
Package builtin provides the builtin ingestion engine
Package builtin provides the builtin ingestion engine
ingester/diff
Package diff provides the diff rule data ingest engine
Package diff provides the diff rule data ingest engine
ingester/git
Package git provides the git rule data ingest engine
Package git provides the git rule data ingest engine
ingester/rest
Package rest provides the REST rule data ingest engine
Package rest provides the REST rule data ingest engine
interfaces
Package interfaces provides necessary interfaces and implementations for implementing engine plugins
Package interfaces provides necessary interfaces and implementations for implementing engine plugins
mock
Package mock_engine is a generated GoMock package.
Package mock_engine is a generated GoMock package.
options
Package options provides necessary interfaces and implementations for implementing evaluator configuration options.
Package options provides necessary interfaces and implementations for implementing evaluator configuration options.
rtengine
Package rtengine contains the rule type engine
Package rtengine contains the rule type engine
selectors
Package selectors provides utilities for selecting entities based on profiles using CEL
Package selectors provides utilities for selecting entities based on profiles using CEL
selectors/mock
Package mock_selectors is a generated GoMock package.
Package mock_selectors is a generated GoMock package.
entities
checkpoints
Package checkpoints contains logic relating to checkpoint management for entities
Package checkpoints contains logic relating to checkpoint management for entities
handlers
Package handlers contains the message handlers for entities.
Package handlers contains the message handlers for entities.
handlers/message
Package message contains the message creation strategies
Package message contains the message creation strategies
handlers/strategies
Package strategies contains the message creation strategies for entities and messages
Package strategies contains the message creation strategies for entities and messages
handlers/strategies/entity
Package entity contains the entity creation strategies
Package entity contains the entity creation strategies
handlers/strategies/message
Package message contains the message creation strategies
Package message contains the message creation strategies
models
Package models contains domain models for entities
Package models contains domain models for entities
properties
Package properties provides a simple way to access properties of an entity
Package properties provides a simple way to access properties of an entity
properties/service
Package service provides a service to interact with properties of an entity
Package service provides a service to interact with properties of an entity
properties/service/mock
Package mock_service is a generated GoMock package.
Package mock_service is a generated GoMock package.
properties/service/mock/fixtures
Package fixtures contains code for creating RepositoryService fixtures and is used in various parts of the code.
Package fixtures contains code for creating RepositoryService fixtures and is used in various parts of the code.
Package events provides the eventer object which is responsible for setting up the watermill router and handling the incoming events
Package events provides the eventer object which is responsible for setting up the watermill router and handling the incoming events
common
Package common contains common interfaces and types used by the eventer.
Package common contains common interfaces and types used by the eventer.
gochannel
Package gochannel provides a gochannel implementation of the eventer
Package gochannel provides a gochannel implementation of the eventer
mock
Package mock_events is a generated GoMock package.
Package mock_events is a generated GoMock package.
nats
Package nats provides a nants+cloudevents implementation of the eventer interface
Package nats provides a nants+cloudevents implementation of the eventer interface
sql
Package sql provides the eventer implementation for the SQL database.
Package sql provides the eventer implementation for the SQL database.
stubs
Package stubs contains stubs for the eventer package
Package stubs contains stubs for the eventer package
Package flags containts utilities for managing feature flags.
Package flags containts utilities for managing feature flags.
Package history contains logic for tracking evaluation history
Package history contains logic for tracking evaluation history
mock
Package mock_history is a generated GoMock package.
Package mock_history is a generated GoMock package.
Package invites provides the invite utilities for minder
Package invites provides the invite utilities for minder
mock
Package mock_invites is a generated GoMock package.
Package mock_invites is a generated GoMock package.
Package logger provides a general logging tools
Package logger provides a general logging tools
Package marketplaces holds logic for the importing rule types and profiles from bundles into projects.
Package marketplaces holds logic for the importing rule types and profiles from bundles into projects.
bundles/mock
Package mockbundle is a generated GoMock package.
Package mockbundle is a generated GoMock package.
bundles/mock/fixtures
Package fixtures contains code for creating bundle fixtures and is used in various parts of the code.
Package fixtures contains code for creating bundle fixtures and is used in various parts of the code.
namespaces
Package namespaces contains logic relating to the namespacing of Rule Types and Profiles
Package namespaces contains logic relating to the namespacing of Rule Types and Profiles
subscriptions
Package subscriptions contains logic relating to the concept of `subscriptions` - which describe a linkage between a project and a marketplace bundle
Package subscriptions contains logic relating to the concept of `subscriptions` - which describe a linkage between a project and a marketplace bundle
subscriptions/mock
Package mock_subscriptions is a generated GoMock package.
Package mock_subscriptions is a generated GoMock package.
subscriptions/mock/fixtures
Package fixtures contains code for creating subscription fixtures and is used in various parts of the code.
Package fixtures contains code for creating subscription fixtures and is used in various parts of the code.
metrics
meters
Package meters contains the OpenTelemetry meter factories.
Package meters contains the OpenTelemetry meter factories.
Package profiles contains business logic relating to the Profile entity in Minder
Package profiles contains business logic relating to the Profile entity in Minder
mock
Package mock_profiles is a generated GoMock package.
Package mock_profiles is a generated GoMock package.
mock/fixtures
Package fixtures contains code for creating ProfileService fixtures and is used in various parts of the code.
Package fixtures contains code for creating ProfileService fixtures and is used in various parts of the code.
models
Package models contains domain models for profiles
Package models contains domain models for profiles
Package projects contains utilities for working with projects.
Package projects contains utilities for working with projects.
features
Package features provides the features checks for the projects
Package features provides the features checks for the projects
Package providers contains general utilities for interacting with providers.
Package providers contains general utilities for interacting with providers.
artifact
Package artifact provides functions and utilities for artifact providers
Package artifact provides functions and utilities for artifact providers
credentials
Package credentials provides the implementations for the credentials
Package credentials provides the implementations for the credentials
dockerhub
Package dockerhub provides a client for interacting with Docker Hub
Package dockerhub provides a client for interacting with Docker Hub
git
Package git provides a client for interacting with Git providers
Package git provides a client for interacting with Git providers
git/memboxfs
Package memboxfs provides a billy.Fs-compatible filesystem implementation which limits the maxiumum size of the in-memory filesystem.
Package memboxfs provides a billy.Fs-compatible filesystem implementation which limits the maxiumum size of the in-memory filesystem.
github
Package github provides a client for interacting with the GitHub API
Package github provides a client for interacting with the GitHub API
github/clients
Package clients contains github client logic
Package clients contains github client logic
github/clients/mock
Package mock_clients is a generated GoMock package.
Package mock_clients is a generated GoMock package.
github/common
Package common provides common utilities for the GitHub provider
Package common provides common utilities for the GitHub provider
github/ghcr
Package ghcr provides a client for interacting with the GitHub Container Registry
Package ghcr provides a client for interacting with the GitHub Container Registry
github/installations
Package installations contains logic relating to GitHub provider installations
Package installations contains logic relating to GitHub provider installations
github/manager
Package manager contains the GitHubProviderClassManager
Package manager contains the GitHubProviderClassManager
github/mock
Package mock_github is a generated GoMock package.
Package mock_github is a generated GoMock package.
github/mock/fixtures
Package fixtures contains code for creating ProfileService fixtures and is used in various parts of the code.
Package fixtures contains code for creating ProfileService fixtures and is used in various parts of the code.
github/properties
Package properties provides utility functions for fetching and managing properties
Package properties provides utility functions for fetching and managing properties
github/service
Package service contains the GitHubProviderService
Package service contains the GitHubProviderService
github/service/mock
Package mock_service is a generated GoMock package.
Package mock_service is a generated GoMock package.
github/webhook
Package webhook implements github webhook handlers for the github provider
Package webhook implements github webhook handlers for the github provider
gitlab
Package gitlab provides the GitLab OAuth provider implementation
Package gitlab provides the GitLab OAuth provider implementation
gitlab/manager
Package manager contains the GitLabProviderClassManager
Package manager contains the GitLabProviderClassManager
gitlab/webhooksecret
Package webhooksecret provides a way to generate and verify secrets for GitLab webhooks.
Package webhooksecret provides a way to generate and verify secrets for GitLab webhooks.
http
Package http implements an HTTP client for interacting with an HTTP API.
Package http implements an HTTP client for interacting with an HTTP API.
manager
Package manager contains logic for creating Provider instances
Package manager contains logic for creating Provider instances
manager/mock
Package mock_manager is a generated GoMock package.
Package mock_manager is a generated GoMock package.
manager/mock/fixtures
Package fixtures contains code for creating ProfileService fixtures and is used in various parts of the code.
Package fixtures contains code for creating ProfileService fixtures and is used in various parts of the code.
mock
Package mock_providers is a generated GoMock package.
Package mock_providers is a generated GoMock package.
mock/fixtures
Package fixtures contains code for creating ProviderStore fixtures and is used in various parts of the code.
Package fixtures contains code for creating ProviderStore fixtures and is used in various parts of the code.
noop
Package noop provides a no-op provider implementation.
Package noop provides a no-op provider implementation.
oci
Package oci provides a client for interacting with OCI registries
Package oci provides a client for interacting with OCI registries
ratecache
Package ratecache provides a cache for the REST clients
Package ratecache provides a cache for the REST clients
ratecache/mock
Package mock_ratecache is a generated GoMock package.
Package mock_ratecache is a generated GoMock package.
selectors
Package selectors provides the conversion of entities to SelectorEntities
Package selectors provides the conversion of entities to SelectorEntities
session
Package session contains the business logic for creating providers from session state.
Package session contains the business logic for creating providers from session state.
session/mock
Package mock_session is a generated GoMock package.
Package mock_session is a generated GoMock package.
telemetry
Package telemetry provides the telemetry interfaces and implementations for providers
Package telemetry provides the telemetry interfaces and implementations for providers
testproviders
Package testproviders provides test implementations of the provider interfaces.
Package testproviders provides test implementations of the provider interfaces.
Package reconcilers contains the reconcilers for the various types of entities in minder.
Package reconcilers contains the reconcilers for the various types of entities in minder.
messages
Package messages contains messages structs and builders for events handled by reconcilers.
Package messages contains messages structs and builders for events handled by reconcilers.
Package reminder sends reminders to the minder server to process entities in background.
Package reminder sends reminders to the minder server to process entities in background.
logger
Package logger provides the configuration for the reminder logger
Package logger provides the configuration for the reminder logger
messages
Package messages contains the messages used by the reminder service
Package messages contains the messages used by the reminder service
Package reminderprocessor processes the incoming reminders
Package reminderprocessor processes the incoming reminders
Package repositories contains logic relating to the repository entity type
Package repositories contains logic relating to the repository entity type
mock
Package mock_repositories is a generated GoMock package.
Package mock_repositories is a generated GoMock package.
mock/fixtures
Package fixtures contains code for creating RepositoryService fixtures and is used in various parts of the code.
Package fixtures contains code for creating RepositoryService fixtures and is used in various parts of the code.
Package roles contains the logic for managing user roles within a Minder project
Package roles contains the logic for managing user roles within a Minder project
mock
Package mock_roles is a generated GoMock package.
Package mock_roles is a generated GoMock package.
Package ruletypes contains logic relating to the management of rule types in minder
Package ruletypes contains logic relating to the management of rule types in minder
mock
Package mock_ruletypes is a generated GoMock package.
Package mock_ruletypes is a generated GoMock package.
mock/fixtures
Package fixtures contains code for creating ProfileService fixtures and is used in various parts of the code.
Package fixtures contains code for creating ProfileService fixtures and is used in various parts of the code.
Package service contains the business logic for the minder services.
Package service contains the business logic for the minder services.
Package util provides helper functions for the minder CLI.
Package util provides helper functions for the minder CLI.
cache
Package cache contains cache utilities and implementations
Package cache contains cache utilities and implementations
cli
Package cli contains utility for the cli
Package cli contains utility for the cli
cli/table
Package table contains utilities for rendering tables
Package table contains utilities for rendering tables
cli/table/layouts
Package layouts defines the available table layouts
Package layouts defines the available table layouts
cli/table/simple
Package simple contains a simple table
Package simple contains a simple table
cli/useragent
Package useragent contains utilities for setting up the CLI's user agent
Package useragent contains utilities for setting up the CLI's user agent
cursor
Package cursor provides a way to encode and decode cursors for paginated queries
Package cursor provides a way to encode and decode cursors for paginated queries
jsonyaml
Package jsonyaml contains utility functions for converting to/from json and yaml
Package jsonyaml contains utility functions for converting to/from json and yaml
ptr
Package ptr contains the Ptr function
Package ptr contains the Ptr function
rand
Package rand contains utility functions largely for unit testing.
Package rand contains utility functions largely for unit testing.
schemaupdate
Package schemaupdate contains utility functions to compare two schemas for updates
Package schemaupdate contains utility functions to compare two schemas for updates
testqueue
Package testqueue contains queue utilities for testing
Package testqueue contains queue utilities for testing
Package verifier provides a client for verifying various types of artifacts against various provenance mechanisms
Package verifier provides a client for verifying various types of artifacts against various provenance mechanisms
sigstore
Package sigstore provides a client for verifying artifacts using sigstore
Package sigstore provides a client for verifying artifacts using sigstore
sigstore/container
Package container provides the tools to verify a container artifact using sigstore
Package container provides the tools to verify a container artifact using sigstore
verifyif
Package verifyif provides the interface for artifact verifiers, including the Result type
Package verifyif provides the interface for artifact verifiers, including the Result type
verifyif/mock
Package mock_verifyif is a generated GoMock package.
Package mock_verifyif is a generated GoMock package.

Jump to

Keyboard shortcuts

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