Skip to content

Commit

Permalink
Add type documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bzed committed Jan 27, 2025
1 parent 28c57f6 commit 1b6ef48
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/algorithm.pp
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Algorithms supported by dehydrated/letsencrypt
type Dehydrated::Algorithm = Pattern[/^(rsa|prime256v1|secp384r1)$/]
1 change: 1 addition & 0 deletions types/challengetype.pp
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Valid challenge types for letsencrypt
type Dehydrated::Challengetype = Pattern[/^(http-01|dns-01|tls-alpn-01)$/]
1 change: 1 addition & 0 deletions types/crt.pp
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# PEM Certificate
type Dehydrated::CRT = Pattern[/(?m:.*-+BEGIN CERTIFICATE-+.*-+END CERTIFICATE-+.*)/]
1 change: 1 addition & 0 deletions types/csr.pp
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# PEM CSR
type Dehydrated::CSR = Pattern[/(?m:.*-+BEGIN CERTIFICATE REQUEST-+.*-+END CERTIFICATE REQUEST-+.*)/]
1 change: 1 addition & 0 deletions types/email.pp
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# match an email address
type Dehydrated::Email = Pattern[/^(?i:[A-Z0-9_%+"-]+[A-Z0-9._%+"-]+@[A-Z0-9.-]+\.[A-Z]{2,})$/]
1 change: 1 addition & 0 deletions types/gitsshurl.pp
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Match ssh URLs for git
type Dehydrated::GitSSHUrl = Pattern[/(?i:^(ssh:\/\/([^\/@]+@)?[^\/]+\/.*|([^@:]+@)?[^:]+:.*))/]
1 change: 1 addition & 0 deletions types/hook.pp
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Match a filename for a hook, don not follow paths.
type Dehydrated::Hook = Pattern[/^[^\\\/]+$/]

0 comments on commit 1b6ef48

Please sign in to comment.