package auth import ( "github.com/caos/logging" "github.com/golang/protobuf/ptypes" usr_model "github.com/caos/zitadel/internal/user/model" "github.com/caos/zitadel/pkg/grpc/auth" ) func machineViewFromModel(machine *usr_model.MachineView) *auth.MachineView { lastKeyAdded, err := ptypes.TimestampProto(machine.LastKeyAdded) logging.Log("MANAG-wGcAQ").OnError(err).Debug("unable to parse date") return &auth.MachineView{ Description: machine.Description, Name: machine.Name, LastKeyAdded: lastKeyAdded, } }