Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CAA record #44

Merged
merged 9 commits into from
Nov 8, 2018
Merged

Add CAA record #44

merged 9 commits into from
Nov 8, 2018

Conversation

pierre-emmanuelJ
Copy link
Member

Fix #42

Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
@pierre-emmanuelJ pierre-emmanuelJ added the WIP 🚧 Work in progress label Nov 2, 2018
Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
@pierre-emmanuelJ pierre-emmanuelJ removed the WIP 🚧 Work in progress label Nov 2, 2018
@pierre-emmanuelJ pierre-emmanuelJ requested a review from a user November 2, 2018 15:37
@greut
Copy link
Contributor

greut commented Nov 2, 2018

A small entry in the changelog would be greatly appreciated

Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
cmd/dns_records_add.go Outdated Show resolved Hide resolved
Aaron Groom and others added 3 commits November 2, 2018 17:34
Co-Authored-By: pierre-emmanuelJ <pierre-emmanuel.jacquier@epitech.eu>
Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
@@ -56,7 +56,7 @@ func init() {
dnsAddCmd.AddCommand(dnsACmd)
dnsACmd.Flags().StringP("name", "n", "", "Leave this blank to create a record for <domain name>, You may use the '*' wildcard here.")
dnsACmd.Flags().StringP("address", "a", "", "Example: 127.0.0.1")
dnsACmd.Flags().IntP("ttl", "t", 3600, "The time in second to leave (refresh rate) of the record.")
dnsACmd.Flags().IntP("ttl", "t", 3600, "The time in seconds to live (refresh rate) of the record.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

@greut
Copy link
Contributor

greut commented Nov 5, 2018

% exo dns add CAA yoanyoanyoan.io --tag issue,letsencrypt.org
Record "CAA" was created successfully to "yoanyoanyoan.io"

% exo dns show yoanyoanyoan.io CAA
TYPE NAME CONTENT TTL PRIO ID
CAA 0 issue "letsencrypt.org" 3600 0 14763952

copy(types, args[1:])
} else {
types = append(types, "")
types = []string{""}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the dst was empty, nothing was copied.

Copy returns the number of elements copied, which will be the minimum of len(src) and len(dst).

https://golang.org/pkg/builtin/#copy

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks :)

pierre-emmanuelJ and others added 2 commits November 5, 2018 15:12
Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
@greut
Copy link
Contributor

greut commented Nov 5, 2018

(rebased)

What is a flag? <https://tools.ietf.org/html/rfc6844#section-3>
`,
RunE: func(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe != 1 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not mandatory a the moment, because in other exo cmd it's like that for non fixed parameters and fixed parameters. So maybe another PR to refacto that. thank you

Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
@@ -4,6 +4,7 @@
- feature new API call updateVmNicIp call
- feature sos download has a progress bar
- feature sos listings `--short`
- feature dns CAA record
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rebase and put that into 1.0.4

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@greut greut merged commit 2cd1d9e into master Nov 8, 2018
@greut greut deleted the dns-caa branch November 8, 2018 15:03
greut pushed a commit that referenced this pull request Nov 8, 2018
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants