website: imageoptim
This commit is contained in:
parent
c84a9bcaed
commit
e473c655ac
|
@ -22,6 +22,14 @@ func (c *UnsealCommand) Run(args []string) int {
|
|||
return 1
|
||||
}
|
||||
|
||||
client, err := c.Client()
|
||||
if err != nil {
|
||||
c.Ui.Error(fmt.Sprintf(
|
||||
"Error initializing client: %s", err))
|
||||
return 2
|
||||
}
|
||||
|
||||
fmt.Printf("Key (will be hidden): ")
|
||||
value, err := password.Read(os.Stdin)
|
||||
if err != nil {
|
||||
c.Ui.Error(fmt.Sprintf(
|
||||
|
@ -34,7 +42,23 @@ func (c *UnsealCommand) Run(args []string) int {
|
|||
return 1
|
||||
}
|
||||
|
||||
c.Ui.Output(value)
|
||||
status, err := client.Sys().Unseal(strings.TrimSpace(value))
|
||||
if err != nil {
|
||||
c.Ui.Error(fmt.Sprintf(
|
||||
"Error attempting unseal: %s", err))
|
||||
return 1
|
||||
}
|
||||
|
||||
c.Ui.Output(fmt.Sprintf(
|
||||
"Sealed: %v\n"+
|
||||
"Key Shares: %d\n"+
|
||||
"Key Threshold: %d\n"+
|
||||
"Unseal Progress: %d",
|
||||
status.Sealed,
|
||||
status.N,
|
||||
status.T,
|
||||
status.Progress,
|
||||
))
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
BIN
website/source/assets/images/bg-icons.png (Stored with Git LFS)
BIN
website/source/assets/images/bg-icons.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/bg-icons@2x.png (Stored with Git LFS)
BIN
website/source/assets/images/bg-icons@2x.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/graphic-audit.png (Stored with Git LFS)
BIN
website/source/assets/images/graphic-audit.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/graphic-audit@2x.png (Stored with Git LFS)
BIN
website/source/assets/images/graphic-audit@2x.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/graphic-crud.png (Stored with Git LFS)
BIN
website/source/assets/images/graphic-crud.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/graphic-crud@2x.png (Stored with Git LFS)
BIN
website/source/assets/images/graphic-crud@2x.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/graphic-key.png (Stored with Git LFS)
BIN
website/source/assets/images/graphic-key.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/graphic-key@2x.png (Stored with Git LFS)
BIN
website/source/assets/images/graphic-key@2x.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/hero.png (Stored with Git LFS)
BIN
website/source/assets/images/hero.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/hero@2x.png (Stored with Git LFS)
BIN
website/source/assets/images/hero@2x.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/icon-hashicorp-logo.png (Stored with Git LFS)
BIN
website/source/assets/images/icon-hashicorp-logo.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/icon-hashicorp-logo@2x.png (Stored with Git LFS)
BIN
website/source/assets/images/icon-hashicorp-logo@2x.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/icon-terminal.png (Stored with Git LFS)
BIN
website/source/assets/images/icon-terminal.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/icon-terminal@2x.png (Stored with Git LFS)
BIN
website/source/assets/images/icon-terminal@2x.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/logo-icon-large.png (Stored with Git LFS)
BIN
website/source/assets/images/logo-icon-large.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/logo-icon-large@2x.png (Stored with Git LFS)
BIN
website/source/assets/images/logo-icon-large@2x.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/logo-icon.png (Stored with Git LFS)
BIN
website/source/assets/images/logo-icon.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/logo-icon@2x.png (Stored with Git LFS)
BIN
website/source/assets/images/logo-icon@2x.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/logo-lockup.png (Stored with Git LFS)
BIN
website/source/assets/images/logo-lockup.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/logo-lockup@2x.png (Stored with Git LFS)
BIN
website/source/assets/images/logo-lockup@2x.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/triangle-sprite.png (Stored with Git LFS)
BIN
website/source/assets/images/triangle-sprite.png (Stored with Git LFS)
Binary file not shown.
BIN
website/source/assets/images/triangle-sprite@2x.png (Stored with Git LFS)
BIN
website/source/assets/images/triangle-sprite@2x.png (Stored with Git LFS)
Binary file not shown.
Loading…
Reference in New Issue