// NewAdapter creates an adapter to convert incoming DockerHub webhook events to CloudEvents and
// then sends them to the specified Sink
NewAdapter creates an adapter to convert incoming DockerHub webhook events to CloudEvents and
then sends them to the specified Sink
// NewAdapter creates an adapter to convert incoming DockerHub webhook events to CloudEvents and // then sends them to the specified Sink
func NewAdapter(ctx context.Context, aEnv adapter.EnvConfigAccessor, ceClient cloudevents.Client) adapter.Adapter {
	env := aEnv.(*envConfig) 
	logger := logging.FromContext(ctx)
	return &Adapter{
		client:         ceClient,
		logger:         logger,
		port:           env.Port,
		autoValidation: !env.DisableAutoCallback,
		eventSource:    env.EventSource,
	}
}
func NewAdapter ( ctx context . Context , aEnv adapter . EnvConfigAccessor , ceClient cloudevents . Client ) adapter . Adapter { env := aEnv . ( * envConfig ) logger := logging . FromContext ( ctx ) return & Adapter { client : ceClient , logger : logger , port : env . Port , autoValidation : ! env . DisableAutoCallback , eventSource : env . EventSource , } }
NewAdapter creates an adapter to convert incoming DockerHub webhook events to CloudEvents and
then sends them to the specified Sink
NewAdapter creates an adapter to convert incoming DockerHub webhook events to CloudEvents and then sends them to the specified Sink
// Will always be our own envConfig type