Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions whisk/trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ package whisk
import (
"errors"
"fmt"
"github.com/apache/openwhisk-client-go/wski18n"
"net/http"
"net/url"
"strings"

"github.com/apache/openwhisk-client-go/wski18n"
)

type TriggerService struct {
Expand All @@ -32,7 +33,7 @@ type TriggerService struct {

type Trigger struct {
Namespace string `json:"namespace,omitempty"`
Name string `json:"name,omityempty"`
Name string `json:"name,omitempty"`
Version string `json:"version,omitempty"`
ActivationId string `json:"activationId,omitempty"`
Annotations KeyValueArr `json:"annotations,omitempty"`
Expand Down Expand Up @@ -72,7 +73,9 @@ func (trigger Trigger) ToHeaderString() string {
}

// ToSummaryRowString() returns a compound string of required parameters for printing
// from CLI command `wsk trigger list`.
//
// from CLI command `wsk trigger list`.
//
// ***Method of type Sortable***
func (trigger Trigger) ToSummaryRowString() string {
publishState := wski18n.T("private")
Expand Down